<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:17:50 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-8469] Sanity test 54c: Unable to unmount loop device</title>
                <link>https://jira.whamcloud.com/browse/LU-8469</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Ran into a lock-up of sanity test 133g when it tried to unmount the Lustre file system.  It kept printing this to the console: &lt;/p&gt;

&lt;p&gt;/mnt/client is still busy, wait one second&lt;br/&gt;
/mnt/client is still busy, wait one second&lt;br/&gt;
/mnt/client is still busy, wait one second&lt;/p&gt;

&lt;p&gt;I stopped the test and tried to unmount manually.  That failed with &quot;file system busy&quot; error.  &lt;/p&gt;

&lt;p&gt;I found that a loop device was still mounted against the Lustre file system.  This is a left over from test 54c.&lt;/p&gt;

&lt;p&gt;Looking back at the logs, I can see that 54c is unable to unmount the loop device:&lt;/p&gt;

&lt;p&gt;[ 1529.373768] Lustre: DEBUG MARKER: == sanity test 54c: block device works in lustre ===================================================== 21:31:35 (1469766695)&lt;br/&gt;
[ 1529.543207] EXT4-fs (loop3): mounting ext2 file system using the ext4 subsystem&lt;br/&gt;
[ 1529.550865] EXT4-fs (loop3): mounted filesystem without journal. Opts: (null)&lt;br/&gt;
[ 1529.810716] Lustre: DEBUG MARKER: sanity test_54c: @@@@@@ FAIL: test_54c failed with 32&lt;/p&gt;

&lt;p&gt;I looked at other sanity runs which were successful, and found this:&lt;/p&gt;

&lt;p&gt;== sanity test 54c: block device works in lustre ===================================================== 17:27:05 (1469838425)&lt;br/&gt;
make a loop file system with /mnt/client/f54c.sanity on /mnt/client/loop54c (3).&lt;br/&gt;
1+0 records in&lt;br/&gt;
1+0 records out&lt;br/&gt;
4096 bytes (4.1 kB) copied, 0.00140237 s, 2.9 MB/s&lt;br/&gt;
mke2fs 1.42.12.wc1 (15-Sep-2014)&lt;br/&gt;
Creating filesystem with 4100 1k blocks and 1032 inodes&lt;/p&gt;

&lt;p&gt;Allocating group tables: done                            &lt;br/&gt;
Writing inode tables: done                            &lt;br/&gt;
Writing superblocks and filesystem accounting information: done&lt;/p&gt;

&lt;p&gt;30+0 records in&lt;br/&gt;
30+0 records out&lt;br/&gt;
122880 bytes (123 kB) copied, 0.000805954 s, 152 MB/s&lt;br/&gt;
Filesystem          1K-blocks  Used Available Use% Mounted on&lt;br/&gt;
/mnt/client/loop54c      3966   151      3610   5% /mnt/client/d54c.sanity&lt;br/&gt;
30+0 records in&lt;br/&gt;
30+0 records out&lt;br/&gt;
122880 bytes (123 kB) copied, 0.00015479 s, 794 MB/s&lt;br/&gt;
losetup: /mnt/client/loop54c: detach failed: No such device or address&lt;br/&gt;
losetup: /dev/loop3: detach failed: No such device or address&lt;br/&gt;
Resetting fail_loc on all nodes...done.&lt;br/&gt;
PASS 54c (1s)&lt;/p&gt;

&lt;p&gt;So, 54c is passing when it cannot use the loop device?!?&lt;/p&gt;

&lt;p&gt;This all seems very broken to me.  54c passes when we can&apos;t use the loop device (why can&apos;t we use it) and fail when we do mount the loop device because it cannot unmount it.&lt;/p&gt;</description>
                <environment>RHEL 7, master, VMs</environment>
        <key id="38573">LU-8469</key>
            <summary>Sanity test 54c: Unable to unmount loop device</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="5">Cannot Reproduce</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="doug">Doug Oucharek</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Aug 2016 16:25:53 +0000</created>
                <updated>Tue, 14 Dec 2021 22:16:12 +0000</updated>
                            <resolved>Tue, 14 Dec 2021 22:16:12 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="160547" author="doug" created="Tue, 2 Aug 2016 16:31:49 +0000"  >&lt;p&gt;I&apos;m attaching all the test 54c test logs for the failing case.&lt;/p&gt;</comment>
                            <comment id="160577" author="green" created="Tue, 2 Aug 2016 18:04:56 +0000"  >&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;122880 bytes (123 kB) copied, 0.00015479 s, 794 MB/s
losetup: /mnt/client/loop54c: detach failed: No such device or address
losetup: /dev/loop3: detach failed: No such device or address
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;this is understandable:&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;cleanup_54c() {
        loopdev=&quot;$DIR/loop54c&quot;

        trap 0
        $UMOUNT $DIR/$tdir || rc=$?
        losetup -d $loopdev || true
        losetup -d $LOOPDEV || true
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So normally unmount when successful would detach loop device and the following losetups would error out which is what you have quoted in the ticket description-  this is normal.&lt;br/&gt;
It would be good if the cleanup script checked that the loop device is setup to avoid confusing error messages, but otherwise it is pretty harmless.&lt;/p&gt;

&lt;p&gt;Now the failure to unmount as in the attached log - that&apos;s a problem - something holds the mountpoint. when this happens would be great to see what was that. some background process got to it?&lt;br/&gt;
I assume by the time you get to test 133g failure you can just unmount the /mnt/client/d54c.sanity and it then can unmount stuff?&lt;br/&gt;
So we really need to add some debug in 54c if the unmount gfails to see what holds the mountpoint busy in there&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="22445" name="sanity.test_54c.debug_log.MRtest01.1469766696.log" size="7537378" author="doug" created="Tue, 2 Aug 2016 16:31:44 +0000"/>
                            <attachment id="22446" name="sanity.test_54c.debug_log.MRtest02.1469766696.log" size="4774399" author="doug" created="Tue, 2 Aug 2016 16:31:45 +0000"/>
                            <attachment id="22447" name="sanity.test_54c.debug_log.MRtest03.1469766696.log" size="4009900" author="doug" created="Tue, 2 Aug 2016 16:31:46 +0000"/>
                            <attachment id="22448" name="sanity.test_54c.dmesg.MRtest01.1469766696.log" size="103637" author="doug" created="Tue, 2 Aug 2016 16:31:46 +0000"/>
                            <attachment id="22449" name="sanity.test_54c.dmesg.MRtest02.1469766696.log" size="101495" author="doug" created="Tue, 2 Aug 2016 16:31:47 +0000"/>
                            <attachment id="22450" name="sanity.test_54c.dmesg.MRtest03.1469766696.log" size="102073" author="doug" created="Tue, 2 Aug 2016 16:31:48 +0000"/>
                            <attachment id="22451" name="sanity.test_54c.test_log.MRtest01.log" size="1609" author="doug" created="Tue, 2 Aug 2016 16:31:48 +0000"/>
                    </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|hzyjbb:</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>