<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:05:40 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-13960] conf-sanity test 53a and 53b fail with &#8216;/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion&#8217;</title>
                <link>https://jira.whamcloud.com/browse/LU-13960</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;conf-sanity test_53a and test_53b both fail with error message &apos;test_53* returned 1&apos;. We&#8217;ve only seen this error for Ubuntu 20.04 testing at &lt;a href=&quot;https://testing.whamcloud.com/test_sets/9fd59f4e-1340-4bc2-8a5f-0c8edb768df2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/9fd59f4e-1340-4bc2-8a5f-0c8edb768df2&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;If you look at the client logs, you will see the 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;== conf-sanity test 53a: check OSS thread count params =============================================== 11:15:05 (1599736505)
start mds service on trevis-210vm8
&#8230;
trevis-210vm8: trevis-210vm8.trevis.whamcloud.com: executing udevadm trigger
modules unloaded.
/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion
test_53a returned 1
FAIL 53a (76s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and&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;== conf-sanity test 53b: check MDS thread count params =============================================== 11:16:21 (1599736581)
&#8230;
trevis-210vm8: trevis-210vm8.trevis.whamcloud.com: executing udevadm trigger
modules unloaded.
/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion
test_53b returned 1
FAIL 53b (99s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Looking at conf-sanity tests 53a and 53b, we can see that they both call thread_sanity() that calls setmodopts(). Looking at setmodopts() in functions.sh, we see on line 152 that the variable &#8216;_var&#8217; used in the function earlier is used at &#8216;${!var}&#8217;&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;
 128 setmodopts() {
 129         local _append=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
 130 
 131         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; [ &lt;span class=&quot;code-quote&quot;&gt;&quot;$1&quot;&lt;/span&gt; = -a ]; then
 132             _append=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
 133             shift
 134         fi
 135 
 136         local _var=MODOPTS_$1
 137         local _newvalue=$2
 138         local _savevar=$3
 139         local _oldvalue
 140 
 141         # Dynamic naming of variables is a pain in bash.  In ksh93 we could
 142         # write &lt;span class=&quot;code-quote&quot;&gt;&quot;nameref opts_var=${modname}_MODOPTS&quot;&lt;/span&gt; then assign directly
 143         # to opts_var.  Associative arrays would also help, alternatively.
 144         # Alas, we&apos;re stuck with eval until all distros move to a more recent
 145         # version of bash.  Fortunately we don&apos;t need to eval unset and export.
 146 
 147         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; [ -z &lt;span class=&quot;code-quote&quot;&gt;&quot;$_newvalue&quot;&lt;/span&gt; ]; then
 148             unset $_var
 149             &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0
 150         fi
 151 
 152         _oldvalue=${!&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;}
 153         $_append &amp;amp;&amp;amp; _newvalue=&lt;span class=&quot;code-quote&quot;&gt;&quot;$_oldvalue $_newvalue&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Could the missing &#8220;_&#8221; in front of &#8216;var&#8217; be causing this issue? I&#8217;ll submit a patch to test this out.&lt;/p&gt;</description>
                <environment>Ubuntu 20.04 clients </environment>
        <key id="60779">LU-13960</key>
            <summary>conf-sanity test 53a and 53b fail with &#8216;/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion&#8217;</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="jamesanunez">James Nunez</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>ubuntu20</label>
                    </labels>
                <created>Sat, 12 Sep 2020 17:58:58 +0000</created>
                <updated>Wed, 23 Dec 2020 15:28:58 +0000</updated>
                            <resolved>Sat, 19 Sep 2020 15:02:49 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                    <version>Lustre 2.12.6</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.12.6</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="279458" author="gerrit" created="Sat, 12 Sep 2020 18:17:15 +0000"  >&lt;p&gt;James Nunez (jnunez@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39891&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39891&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13960&quot; title=&quot;conf-sanity test 53a and 53b fail with &#8216;/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13960&quot;&gt;&lt;del&gt;LU-13960&lt;/del&gt;&lt;/a&gt; tests: correct usage of _var variable&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f4355c25a6580c09361d73ff22b57bbf25e634f1&lt;/p&gt;</comment>
                            <comment id="280055" author="gerrit" created="Sat, 19 Sep 2020 14:13:02 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39891/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39891/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13960&quot; title=&quot;conf-sanity test 53a and 53b fail with &#8216;/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13960&quot;&gt;&lt;del&gt;LU-13960&lt;/del&gt;&lt;/a&gt; tests: correct usage of _var variable&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ff29ed8fe9c58bd2caa4d63bcbe7556e1c320703&lt;/p&gt;</comment>
                            <comment id="280068" author="pjones" created="Sat, 19 Sep 2020 15:02:49 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                            <comment id="280147" author="gerrit" created="Mon, 21 Sep 2020 16:34:09 +0000"  >&lt;p&gt;James Nunez (jnunez@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39985&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39985&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13960&quot; title=&quot;conf-sanity test 53a and 53b fail with &#8216;/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13960&quot;&gt;&lt;del&gt;LU-13960&lt;/del&gt;&lt;/a&gt; tests: correct usage of _var variable&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 58ca27667763994d8173e5c6cea2f885486521d6&lt;/p&gt;</comment>
                            <comment id="282948" author="gerrit" created="Thu, 22 Oct 2020 06:18:32 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39985/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39985/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13960&quot; title=&quot;conf-sanity test 53a and 53b fail with &#8216;/usr/lib64/lustre/tests/functions.sh: line 152: var: invalid indirect expansion&#8217;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13960&quot;&gt;&lt;del&gt;LU-13960&lt;/del&gt;&lt;/a&gt; tests: correct usage of _var variable&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 284595fe2aa0c3898fbb3330e50cb669102a92d1&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|i019rr:</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>