<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:26:19 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-16357] a mechanism to inform other nodes to dump debug log</title>
                <link>https://jira.whamcloud.com/browse/LU-16357</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Now we can call &lt;tt&gt;libcfs_debug_dumplog()&lt;/tt&gt; in the code to dump debug log of this node to help debug, but often we want to dump debug logs of other nodes as well because the symptom is on this node, but it may be caused by bug on other nodes.&lt;/p&gt;

&lt;p&gt;Having a mechanism to trigger debug log dumping on remote nodes would greatly simplify cross-node debugging.  It should be possible to call something like &quot;&lt;tt&gt;lctl dk --client[=NID&lt;span class=&quot;error&quot;&gt;&amp;#91;,NID&amp;#93;&lt;/span&gt;]&lt;/tt&gt;&quot; to have a user trigger a local debug log dump and/or on the specified remote NIDs.  It should also be possible to run &quot;&lt;tt&gt;lctl dk --mds[=IDX&lt;span class=&quot;error&quot;&gt;&amp;#91;,IDX&amp;#93;&lt;/span&gt;]&lt;/tt&gt;&quot; to dump logs on all or some MDS nodes, and &quot;&lt;tt&gt;lctl dk --oss[=IDX&lt;span class=&quot;error&quot;&gt;&amp;#91;,IDX&amp;#93;&lt;/span&gt;]&lt;/tt&gt;&quot; to do the same on all or some OSS nodes.  This would provide a powerful debugging feature to help isolate issues on multiple remote nodes, especially if they are not directly accessible from the server or client, and SSH into the server is not allowed from the client.&lt;/p&gt;

&lt;p&gt;There should be some parameter to control log dumping on the server, like &lt;tt&gt;debug_enable_remote&lt;/tt&gt; to prevent malicious users from dumping the server logs and filling up the local storage.  Similarly, a mechanism to avoid multiple logdumps for the same reason, so a unique ID in the RPC would be useful to have, and clients would cache this for a minute and drop any logdump RPCs with this same ID.&lt;/p&gt;

&lt;p&gt;There should also be a tunable parameter which allows non-root users to trigger the debug log dump, though not actually access the log file for security reasons.  This allows log dumping to be triggered directly by the application or job scheduler in case of an application-level error, without the need to run as root or wait for an admin to become available.  One option would be something like &lt;tt&gt;debug_gid=0&lt;/tt&gt; by default for root-only log dumping, &lt;tt&gt;debug_gid=&lt;em&gt;GID&lt;/em&gt;&lt;/tt&gt; for an administrative group, or &lt;tt&gt;debug_gid=-1&lt;/tt&gt; to allow all users to do this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="73456">LU-16357</key>
            <summary>a mechanism to inform other nodes to dump debug log</summary>
                <type id="2" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11311&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="laisiyao">Lai Siyao</assignee>
                                    <reporter username="laisiyao">Lai Siyao</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Dec 2022 01:30:42 +0000</created>
                <updated>Sat, 20 Jan 2024 05:41:14 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="354761" author="gerrit" created="Thu, 1 Dec 2022 01:47:15 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49290&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49290&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16357&quot; title=&quot;a mechanism to inform other nodes to dump debug log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16357&quot;&gt;LU-16357&lt;/a&gt; obdclass: dump debug log on remote node&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0403a216c840c0d01b718a1b9b2cb878c4970d73&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="80133">LU-17446</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i036wn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>