<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:27:14 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-16462] conf-sanity sles12.5 test_43a: lctl: attr.c:201: validate_nla: Assertion `0&apos; failed.</title>
                <link>https://jira.whamcloud.com/browse/LU-16462</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run on sles12.5 clients:&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/258bf667-e863-4adb-af68-213f7877b909&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/258bf667-e863-4adb-af68-213f7877b909&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/e3b187ad-af69-4bd1-b43c-583da240aef3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/e3b187ad-af69-4bd1-b43c-583da240aef3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;test_43a failed with the following error:&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;lctl dl
BUG at file position attr.c:201:validate_nla
lctl: attr.c:201: validate_nla: Assertion `0&apos; failed.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The same failure exists in a number of other subtests that also use &quot;&lt;tt&gt;lctl dl&lt;/tt&gt;&quot;:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;sanity: test_33i, test_104d, test_154d&lt;/li&gt;
	&lt;li&gt;conf-sanity: test_43b, test_70c, test_91&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It looks like the &lt;tt&gt;validate_nla()&lt;/tt&gt; function is part of libnl (netlink), so very likely relates to the new usage of netlink in &quot;&lt;tt&gt;lctl dl&lt;/tt&gt;&quot; to get the device list.&lt;/p&gt;





&lt;p&gt;VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV&lt;br/&gt;
conf-sanity test_70c - set  deactivate failed&lt;/p&gt;</description>
                <environment></environment>
        <key id="73947">LU-16462</key>
            <summary>conf-sanity sles12.5 test_43a: lctl: attr.c:201: validate_nla: Assertion `0&apos; failed.</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="simmonsja">James A Simmons</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Jan 2023 23:52:36 +0000</created>
                <updated>Fri, 21 Jul 2023 04:17:52 +0000</updated>
                            <resolved>Mon, 1 May 2023 06:27:50 +0000</resolved>
                                    <version>Lustre 2.16.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="358715" author="adilger" created="Thu, 12 Jan 2023 00:53:39 +0000"  >&lt;p&gt;James, can you please take a look.&lt;/p&gt;

&lt;p&gt;I don&apos;t think SLES12 clients are in such heavy usage that they need to get the latest netlink functionality, but at one point at least Cray was heavily based on SLES for their client distro, so at least we shouldn&apos;t break it gratuitously.  If there isn&apos;t a straight forward way to fix it, I&apos;d be fine with just configuring out the netlink functionality and always using ioctl/debugfs in this case (which isn&apos;t worse than what was available before).&lt;/p&gt;</comment>
                            <comment id="358729" author="simmonsja" created="Thu, 12 Jan 2023 02:21:23 +0000"  >&lt;p&gt;What version of libnl is installed? Do we have a special Test-parameter tag for SUSE12. I suspect that the libnl library is older so its lacking proper support for NLA_S64.&lt;/p&gt;</comment>
                            <comment id="358733" author="gerrit" created="Thu, 12 Jan 2023 02:59:55 +0000"  >&lt;p&gt;&quot;James Simmons &amp;lt;jsimmons@infradead.org&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49608&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49608&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16462&quot; title=&quot;conf-sanity sles12.5 test_43a: lctl: attr.c:201: validate_nla: Assertion `0&amp;#39; failed.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16462&quot;&gt;&lt;del&gt;LU-16462&lt;/del&gt;&lt;/a&gt; utils: handle lack of NLA_S64&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a6780268c84f876b98f8d31a6830dcb9acf16077&lt;/p&gt;</comment>
                            <comment id="360589" author="adilger" created="Fri, 27 Jan 2023 03:20:47 +0000"  >&lt;p&gt;This is preventing patches on e2fsprogs from passing testing, since they run with sles12sp5 clients. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://testing.whamcloud.com/test_sessions/96f8909f-bbaa-40f2-b969-f261d4b0398f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sessions/96f8909f-bbaa-40f2-b969-f261d4b0398f&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sessions/1f946f9d-86de-401d-9c45-b3b445eb10b4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sessions/1f946f9d-86de-401d-9c45-b3b445eb10b4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="365031" author="adilger" created="Mon, 6 Mar 2023 23:54:44 +0000"  >&lt;p&gt;Comment from Dongyang in the 49608 patch that explains the issue:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;lctl dl is triggering assert inside libnl3 because we use &lt;tt&gt;NLA_NUL_STRING&lt;/tt&gt;.&lt;br/&gt;
in the old libnl3, we don&apos;t have &lt;tt&gt;NLA_NUL_STRING&lt;/tt&gt; and &lt;tt&gt;NLA_S8|16|32|64&lt;/tt&gt;:&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;enum {
	NLA_UNSPEC,	/**&amp;lt; Unspecified type, binary data chunk */
	NLA_U8,		/**&amp;lt; 8 bit integer */
	NLA_U16,	/**&amp;lt; 16 bit integer */
	NLA_U32,	/**&amp;lt; 32 bit integer */
	NLA_U64,	/**&amp;lt; 64 bit integer */
	NLA_STRING,	/**&amp;lt; NUL terminated character string */
	NLA_FLAG,	/**&amp;lt; Flag */
	NLA_MSECS,	/**&amp;lt; Micro seconds (64bit) */
	NLA_NESTED,	/**&amp;lt; Nested attributes */
	__NLA_TYPE_MAX,
};

#define NLA_TYPE_MAX (__NLA_TYPE_MAX - 1)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and if we try to use any &lt;tt&gt;NLA_TYPE&lt;/tt&gt; greater than &lt;tt&gt;NLA_TYPE_MAX&lt;/tt&gt;, it will trigger the assert in &lt;tt&gt;validate_nla()&lt;/tt&gt;.&lt;br/&gt;
Do we have to use &lt;tt&gt;NLA_NUL_STRING&lt;/tt&gt; instead of &lt;tt&gt;NLA_STRING&lt;/tt&gt;, and the signed nla types?&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="368711" author="adilger" created="Thu, 6 Apr 2023 19:25:05 +0000"  >&lt;p&gt;Hi James, any thought on how to make progress on this issue?&lt;/p&gt;

&lt;p&gt;We have e2fsck fixes blocked from landing for a couple of months because the netlink patch has broken &quot;&lt;tt&gt;lctl dl&lt;/tt&gt;&quot; on SLES12 clients.  I don&apos;t think we need to retroactively add support for SLES12 clients to allow non-root users to run &quot;&lt;tt&gt;lctl dl&lt;/tt&gt;&quot;, so it would be fine if the netlink code was completely disabled for older clients that don&apos;t have &lt;tt&gt;NLA_S32&lt;/tt&gt; or &lt;tt&gt;NLA_NUL_STRING&lt;/tt&gt; and only the ioctl fallback was used.  It just needs to not break the old code.&lt;/p&gt;</comment>
                            <comment id="368723" author="adilger" created="Thu, 6 Apr 2023 22:33:40 +0000"  >&lt;p&gt;I&apos;m going to push a patch that disables yaml netlink usage if &lt;tt&gt;NLA_NUL_STRING&lt;/tt&gt; is not defined.  This works fine for &quot;&lt;tt&gt;lctl dl&lt;/tt&gt;&quot; in my local testing, but still need to fix &quot;&lt;tt&gt;lctl ping&lt;/tt&gt;&quot; (sanity test_217).&lt;/p&gt;</comment>
                            <comment id="369190" author="gerrit" created="Wed, 12 Apr 2023 04:31:45 +0000"  >&lt;p&gt;&lt;del&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch:&lt;/del&gt; &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50610&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50610&lt;/a&gt;&lt;br/&gt;
&lt;del&gt;Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16462&quot; title=&quot;conf-sanity sles12.5 test_43a: lctl: attr.c:201: validate_nla: Assertion `0&amp;#39; failed.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16462&quot;&gt;&lt;del&gt;LU-16462&lt;/del&gt;&lt;/a&gt; utils: skip netlink for old libnl3&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Project: fs/lustre-release&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Branch: master&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Current Patch Set: 1&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Commit: 5ff26d3c3205baacefb3c0e48c2a03ff0713db39&lt;/del&gt;&lt;/p&gt;</comment>
                            <comment id="370407" author="adilger" created="Mon, 24 Apr 2023 23:28:35 +0000"  >&lt;p&gt;patch &lt;a href=&quot;https://review.whamcloud.com/49608&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/49608&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16462&quot; title=&quot;conf-sanity sles12.5 test_43a: lctl: attr.c:201: validate_nla: Assertion `0&amp;#39; failed.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16462&quot;&gt;&lt;del&gt;LU-16462&lt;/del&gt;&lt;/a&gt; utils: handle lack of NLA_S64&lt;/tt&gt;&quot; has been updated to handle the sles12sp5 libnl incompatibility, along with test and tool fixes for the netlink-unavailable fallback case so that &quot;&lt;tt&gt;lctl ping&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;lctl list_nids&lt;/tt&gt;&quot; continue to work.&lt;/p&gt;</comment>
                            <comment id="370411" author="simmonsja" created="Tue, 25 Apr 2023 00:19:53 +0000"  >&lt;p&gt;Thank you Andreas for your help &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="370413" author="adilger" created="Tue, 25 Apr 2023 01:01:41 +0000"  >&lt;p&gt;I just ran across an old patch from Amir that is replacing usage of &quot;&lt;tt&gt;lctl ping&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;lctl list_nids&lt;/tt&gt;&quot; with the equivalent &quot;&lt;tt&gt;lnetctl&lt;/tt&gt;&quot; commands.&lt;/p&gt;

&lt;p&gt;The output is clunky and needs some &lt;tt&gt;awk&lt;/tt&gt; to parse it into just a NID:&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;$ lnetctl net show
net:
    - net type: lo
      local NI(s):
        - nid: 0@lo
          status: up
    - net type: tcp
      local NI(s):
        - nid: 192.168.10.99@tcp
          status: up
          interfaces:
              0: enp0s3

$ lnetctl net show | awk &apos;/nid:/ &amp;amp;&amp;amp; $3 != &quot;0@lo&quot; { print $3 }&apos;
192.168.10.99@tcp
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Alexey suggested in that patch to put this into a helper function on &lt;tt&gt;test-framework.sh&lt;/tt&gt; instead of having it inline in multiple places.  However, users would probably also want to print some of these fields outside of the testing, instead of the full YAML.&lt;/p&gt;

&lt;p&gt;Having a command-line argument like &quot;&lt;tt&gt;lnetctl net show -&lt;del&gt;nid&lt;/tt&gt;&quot; in this case,  but also able to print other fields like &quot;&lt;tt&gt;... --status&lt;/tt&gt;&quot;, &quot;&lt;tt&gt;&lt;/del&gt;&lt;del&gt;nettype&lt;/tt&gt;&quot;, &quot;&lt;tt&gt;&lt;/del&gt;-interfaces&lt;/tt&gt;&quot;) would more convenient than users having to use &quot;&lt;tt&gt;awk&lt;/tt&gt;&quot; or &quot;&lt;tt&gt;yq&lt;/tt&gt;&quot; to extract the fields manually.&lt;/p&gt;</comment>
                            <comment id="371001" author="gerrit" created="Mon, 1 May 2023 04:08:59 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49608/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49608/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16462&quot; title=&quot;conf-sanity sles12.5 test_43a: lctl: attr.c:201: validate_nla: Assertion `0&amp;#39; failed.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16462&quot;&gt;&lt;del&gt;LU-16462&lt;/del&gt;&lt;/a&gt; utils: handle lack of newer nla_attrs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ae1ee11cea0a90631e14d670883528d6ac6e86b7&lt;/p&gt;</comment>
                            <comment id="371023" author="pjones" created="Mon, 1 May 2023 06:27:50 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="48372">LU-10003</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="46759">LU-9680</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="75377">LU-16694</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i039pb:</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>