<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:03:02 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-13648] Route status can be set incorrectly via lnet_notify()</title>
                <link>https://jira.whamcloud.com/browse/LU-13648</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Found an issue when testing my patch to skip health/resends for single rail config - &lt;a href=&quot;https://review.whamcloud.com/#/c/38448&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/38448&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Problem is in lnet_notify(). LND tells us some nid went down. But we calculate aliveness based on health values and NI status as reported by discovery:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;        /* recalculate aliveness */
        alive = lnet_is_peer_ni_alive(lpni);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;static inline bool
lnet_is_peer_ni_alive(struct lnet_peer_ni *lpni)
{
        bool halive = false;

        halive = (atomic_read(&amp;amp;lpni-&amp;gt;lpni_healthv) &amp;gt;=
                 (LNET_MAX_HEALTH_VALUE * router_sensitivity_percentage / 100));

        return halive &amp;amp;&amp;amp; lpni-&amp;gt;lpni_ns_status == LNET_NI_STATUS_UP;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And then use that to set routes up/down:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;                lp = lpni-&amp;gt;lpni_peer_net-&amp;gt;lpn_peer;
                lp-&amp;gt;lp_alive = alive;
                list_for_each_entry(route, &amp;amp;lp-&amp;gt;lp_routes, lr_gwlist)
                        lnet_set_route_aliveness(route, alive);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But, at least with gnilnd, we can get notification from LND before any tx sent to the router has failed. So health may not have been ding&apos;d yet. This can lead to routes in the wrong up/down state.&lt;/p&gt;</description>
                <environment></environment>
        <key id="59482">LU-13648</key>
            <summary>Route status can be set incorrectly via lnet_notify()</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="hornc">Chris Horn</assignee>
                                    <reporter username="hornc">Chris Horn</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Jun 2020 14:14:30 +0000</created>
                <updated>Sat, 11 Jul 2020 16:00:31 +0000</updated>
                            <resolved>Sat, 11 Jul 2020 16:00:31 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="272254" author="gerrit" created="Mon, 8 Jun 2020 14:19:57 +0000"  >&lt;p&gt;Chris Horn (chris.horn@hpe.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38862&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38862&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13648&quot; title=&quot;Route status can be set incorrectly via lnet_notify()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13648&quot;&gt;&lt;del&gt;LU-13648&lt;/del&gt;&lt;/a&gt; lnet: Set remote NI status in lnet_notify&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2f33fcb3ea98fd9fd48d38d4af548f85168bdfc7&lt;/p&gt;</comment>
                            <comment id="275002" author="gerrit" created="Fri, 10 Jul 2020 16:52:41 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38862/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38862/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13648&quot; title=&quot;Route status can be set incorrectly via lnet_notify()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13648&quot;&gt;&lt;del&gt;LU-13648&lt;/del&gt;&lt;/a&gt; lnet: Set remote NI status in lnet_notify&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8010dbb6607664a613e6496d42ee70d40a15dc6a&lt;/p&gt;</comment>
                            <comment id="275174" author="pjones" created="Sat, 11 Jul 2020 16:00:31 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                    <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|i01273:</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>