<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:06:57 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-14114] LNet: print device status in net show command</title>
                <link>https://jira.whamcloud.com/browse/LU-14114</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;A device can be in fatal state, if the cable was disconnected, or the port brought down on the switch side. In these cases, the LND (o2iblnd for now), will flag the device in fatal state. That device will not be used any further. However, it&apos;s health will not be decremented. This causes some confusion when examining the state of the node.&lt;/p&gt;

&lt;p&gt;It is better to print the device status in the output of the &lt;tt&gt;lnetctl net show&lt;/tt&gt; command.&lt;/p&gt;

&lt;p&gt;Basically we need to propagate this value:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
 lnet_ni-&amp;gt;ni_fatal_error_on&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;up to user space when we show the net.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;lustre_lnet_show_net()&lt;/tt&gt; and &lt;tt&gt;lnet_get_ni_config()&lt;/tt&gt; need to be modified to propagate and print this value.&lt;/p&gt;

&lt;p&gt;There is space in &lt;tt&gt;lnet_ioctl_config_ni&lt;/tt&gt; to add this value without having to add more data structures to the IOCTL API.&lt;/p&gt;</description>
                <environment></environment>
        <key id="61543">LU-14114</key>
            <summary>LNet: print device status in net show command</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="cbordage">Cyril Bordage</assignee>
                                    <reporter username="ashehata">Amir Shehata</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Nov 2020 21:38:09 +0000</created>
                <updated>Fri, 30 Jul 2021 17:43:01 +0000</updated>
                            <resolved>Thu, 22 Jul 2021 03:44:31 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="284283" author="adilger" created="Wed, 4 Nov 2020 22:38:23 +0000"  >&lt;p&gt;Does it make sense from a usability POV to decrement or immediately set the health down to 0 in this case, so that there is no confusion?&lt;/p&gt;</comment>
                            <comment id="284287" author="ashehata" created="Wed, 4 Nov 2020 23:22:18 +0000"  >&lt;p&gt;Health value was meant to track intermittent errors. Fatal is meant to track the case when the HW tells us that the HCA is not usable. I think it&apos;s important to maintain the distinction in the code. I understand though that it might be clearer from a user&apos;s perspective. So I don&apos;t mind setting that value to 0 when we display it in lnetctl/liblnetconfig user space. But I would rather maintain the distinction in the LNet code. Also it will still be ambiguous if we only display health as 0. Does it mean we&apos;ve had a series of intermittent failure on that NI and we&apos;re currently recovering it? Or does it mean it is in fatal state? If we are in fatal state we don&apos;t attempt to recover the NI, because we rely on the HW to tell us when it&apos;s up again.&lt;/p&gt;

&lt;p&gt;Printing out the state of the device in the show output breaks this ambiguity.&lt;/p&gt;</comment>
                            <comment id="306458" author="gerrit" created="Wed, 7 Jul 2021 13:33:43 +0000"  >&lt;p&gt;Cyril Bordage (cbordage@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/44169&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44169&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14114&quot; title=&quot;LNet: print device status in net show command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14114&quot;&gt;&lt;del&gt;LU-14114&lt;/del&gt;&lt;/a&gt; lnet: print device status in net show command&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1807c9fd9ce9d72028c6624ff6a9f0f9c1d1d919&lt;/p&gt;</comment>
                            <comment id="308048" author="gerrit" created="Thu, 22 Jul 2021 01:50:25 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/44169/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44169/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14114&quot; title=&quot;LNet: print device status in net show command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14114&quot;&gt;&lt;del&gt;LU-14114&lt;/del&gt;&lt;/a&gt; lnet: print device status in net show command&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f75ff33d9fbefd6995a26693032a32a0ba211b51&lt;/p&gt;</comment>
                            <comment id="308064" author="pjones" created="Thu, 22 Jul 2021 03:44:31 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </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_10092" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>LU-13422</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i01een:</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>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>