<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:22:18 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-15906] setupall function under test-framework never fails</title>
                <link>https://jira.whamcloud.com/browse/LU-15906</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;setupall function under test-framework never fails. Even if the mount from mount&lt;span class=&quot;error&quot;&gt;&amp;#91;mgs/oss&amp;#93;&lt;/span&gt; or mount_facet() call is a faiure. Somewhere within a chain of calls from setupall() to do_nodes() the return value is getting washed away and 0 is returning&lt;/p&gt;

&lt;p&gt;Reproducer:&lt;/p&gt;

&lt;p&gt;&#160;&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;test_1400() { &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;  
sync; sync_all_data; sleep 3; sync_all_data &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;
echo &quot;********** Stopping&quot; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;
stopall &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;
# options passed is on purpose given will fail &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;
# as rdonly_dev is not supported &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;
MGS_MOUNT_OPTS=$(csa_add &quot;$MGS_MOUNT_OPTS&quot; -o rdonly_dev) &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;
MDS_MOUNT_OPTS=$(csa_add &quot;$MDS_MOUNT_OPTS&quot; -o rdonly_dev) &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;
OST_MOUNT_OPTS=$(csa_add &quot;$OST_MOUNT_OPTS&quot; -o rdonly_dev) &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;
echo &quot;................starting again!!! ............&quot; &#160; &#160;
setupall server_only || error &quot;FAILED SETUPALL!!!&quot;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;
echo &quot;Return Value = $?&quot;  
} &#160; &#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;  
run_test 1400 &quot;Sample test to demonstrate setupall never fails&quot; &#160;&#160;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Output: (Important parts only)&lt;/p&gt;

&lt;p&gt;&#160;&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;++ cd /root/lustre-dev/lustre-release
++ LUSTRE=/root/lustre-dev/lustre-release/lustre/tests/..
++ bash -c &apos;mkdir -p /mnt/lustre-mds1; mount -t lustre -o localrecov,rdonly_dev /dev/mapper/mds1_flakey /mnt/lustre-mds1&apos;
mount.lustre: mount /dev/mapper/mds1_flakey at /mnt/lustre-mds1 failed: Operation not supported
+ return 95 # &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (do_nodes correctly see the error message)
+ RC=95
+ &apos;[&apos; 95 -ne 0 &apos;]&apos;
+ echo &apos;110 Start of /dev/mapper/mds1_flakey on mds1 failed 95&apos;
110 Start of /dev/mapper/mds1_flakey on mds1 failed 95
Return Value = 0 # &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; (actual return is somewhere it is getting lost - returing the value 0)
PASS 1400 (17s)
&#160;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Dmesg&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;kernel: Lustre: lustre-MDT0000-osd: not support dev_rdonly on this device
kernel: LustreError: 16127:0:(obd_config.c:774:class_setup()) setup lustre-MDT0000-osd failed (-95)
kernel: LustreError: 16127:0:(obd_mount.c:200:lustre_start_simple()) lustre-MDT0000-osd setup error -95
kernel: LustreError: 16127:0:(obd_mount_server.c:2018:server_fill_super()) Unable to start osd on /dev/mapper/mds1_flakey: -95
kernel: LustreError: 16127:0:(super25.c:178:lustre_fill_super()) llite: Unable to mount &amp;lt;unknown&amp;gt;: rc = -95&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="70593">LU-15906</key>
            <summary>setupall function under test-framework never fails</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="arshad512">Arshad Hussain</assignee>
                                    <reporter username="arshad512">Arshad Hussain</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 Jun 2022 05:01:58 +0000</created>
                <updated>Tue, 14 Jun 2022 14:39:12 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="336498" author="gerrit" created="Wed, 1 Jun 2022 07:25:54 +0000"  >&lt;p&gt;&quot;Arshad Hussain &amp;lt;arshad.hussain@aeoncomputing.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47503&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47503&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15906&quot; title=&quot;setupall function under test-framework never fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15906&quot;&gt;LU-15906&lt;/a&gt; tests: Verify setupall correctly fails&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a7692ec806998349c84f01545bd257e458137f57&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|i02r6v:</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>