<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:19:17 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-1741] Test failure on test suite conf-sanity test_18</title>
                <link>https://jira.whamcloud.com/browse/LU-1741</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for Peter Jones &amp;lt;pjones@whamcloud.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/6379bf88-e46d-11e1-af05-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/6379bf88-e46d-11e1-af05-52540035b04c&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Error: &apos;expected journal size &amp;gt; 32M, found 32M&apos; &lt;/p&gt;</description>
                <environment></environment>
        <key id="15471">LU-1741</key>
            <summary>Test failure on test suite conf-sanity test_18</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Aug 2012 11:05:19 +0000</created>
                <updated>Thu, 18 Apr 2013 20:06:18 +0000</updated>
                            <resolved>Tue, 19 Feb 2013 00:03:59 +0000</resolved>
                                    <version>Lustre 2.1.3</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="43064" author="green" created="Sun, 12 Aug 2012 12:40:20 +0000"  >&lt;p&gt;Recent change to MDT device size to only be 1G makes mkfs.lustre to not change default journal size to 400M (as that would be too big). Thus every test depending on larger journal would fail.&lt;/p&gt;</comment>
                            <comment id="43071" author="adilger" created="Mon, 13 Aug 2012 02:01:44 +0000"  >&lt;p&gt;We used to have a lower limit on the journal size in mkfs.lustre or mke2fs as well, because the minimum journal size was something very small like 4MB.  It would be fine to make this test pass for &amp;gt;= 32MB as well, since the default journal size in mke2fs has increased to 32MB as well.&lt;/p&gt;

&lt;p&gt;That said, there seems to be something wrong with the test framework as well.  The test checks that the MDSSIZE is large enough to run the test:&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;test_18()
{
        local MIN=2000000

        local OK=
        # check &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; current MDSSIZE is large enough
        [ $MDSSIZE -ge $MIN ] &amp;amp;&amp;amp; OK=1 &amp;amp;&amp;amp; myMDSSIZE=$MDSSIZE &amp;amp;&amp;amp; \
                log &lt;span class=&quot;code-quote&quot;&gt;&quot;use MDSSIZE=$MDSSIZE&quot;&lt;/span&gt;
        :
        :

        [ -z &lt;span class=&quot;code-quote&quot;&gt;&quot;$OK&quot;&lt;/span&gt; ] &amp;amp;&amp;amp; skip_env &lt;span class=&quot;code-quote&quot;&gt;&quot;$MDSDEV too small &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ${MIN}kB MDS&quot;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt;
        echo &lt;span class=&quot;code-quote&quot;&gt;&quot;mount mds with large journal...&quot;&lt;/span&gt;

        local OLD_MDSSIZE=$MDSSIZE
        MDSSIZE=$myMDSSIZE

        reformat_and_config
        echo &lt;span class=&quot;code-quote&quot;&gt;&quot;mount lustre system...&quot;&lt;/span&gt;

        :
        :
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and the test output seems to confirm that the size should be large enough, but the actual format command doesn&apos;t seem to take the larger MDSSIZE into account (note &lt;tt&gt;262144&lt;/tt&gt; at the end is the 1GB filesystem block count with 4kB blocks):&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;use MDSSIZE=1073741824
mount mds with large journal...

mke2fs -j -b 4096 -L lustre-MDT0000  -I 512 -i 2048 -q
     -O dirdata,uninit_bg,^extents,dir_nlink,huge_file,flex_bg
     -E lazy_itable_init,lazy_journal_init -F /dev/lvm-MDS/P1 262144
Writing CONFIGS/mountdata
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Looking into the reformat_and_config() function, it appears it doesn&apos;t use MDSSIZE at all.  I suspect it looks like a bug was introduced with the landing of commit c04dddd71d140c61f654681c1993f5bb1ded4f48 (change &lt;a href=&quot;http://review.whamcloud.com/2907&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/2907&lt;/a&gt;) that means this value is ignored.  It used to be used for the &quot;--device-size&quot; argument to mkfs.lustre, and while code appears to be doing this:&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;        &lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;=${type}SIZE
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; [ -n &lt;span class=&quot;code-quote&quot;&gt;&quot;${!&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;}&quot;&lt;/span&gt; ]; then
                opts+=&lt;span class=&quot;code-quote&quot;&gt;&quot; --device-size=${!&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;}&quot;&lt;/span&gt;
        fi
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I guess this isn&apos;t working for some reason.&lt;/p&gt;</comment>
                            <comment id="43118" author="chris" created="Mon, 13 Aug 2012 12:43:49 +0000"  >&lt;p&gt;As a work around I&apos;ve changed the mds size to 2GB.&lt;/p&gt;</comment>
                            <comment id="43136" author="adilger" created="Mon, 13 Aug 2012 14:10:52 +0000"  >&lt;p&gt;I don&apos;t think that we could go much lower than 2GB anyway.  In &lt;a href=&quot;https://maloo.whamcloud.com/test_sessions/b55d305a-e4b8-11e1-9681-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sessions/b55d305a-e4b8-11e1-9681-52540035b04c&lt;/a&gt;, the &quot;full&quot; run was running out of space on the MDT in all of the parallel-scale tests.&lt;/p&gt;</comment>
                            <comment id="43162" author="pjones" created="Tue, 14 Aug 2012 00:38:50 +0000"  >&lt;p&gt;Bobijam&lt;/p&gt;

&lt;p&gt;I think that we are going to be able to live with the workaround for the 2.3 release itself but could you please investigate this in more detail so that we can more fully understand why this was failing and whether there is an issue that would be important in production environments&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="43176" author="bobijam" created="Tue, 14 Aug 2012 07:34:07 +0000"  >&lt;p&gt;found the culprit &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;        local MIN=2000000   ==============&amp;gt; we require at least 2G MDT

        # check if current MDSSIZE is large enough
        [ $MDSSIZE -ge $MIN ] &amp;amp;&amp;amp; OK=1 &amp;amp;&amp;amp; myMDSSIZE=$MDSSIZE &amp;amp;&amp;amp; \
                log &quot;use MDSSIZE=$MDSSIZE&quot;

use MDSSIZE=1073741824   ===============&amp;gt; MDSSIZE has been defined to use 1T

         # check if the block device is large enough
         [ -z &quot;$OK&quot; ] &amp;amp;&amp;amp; $(is_blkdev $SINGLEMDS $MDSDEV $MIN) &amp;amp;&amp;amp; OK=1 &amp;amp;&amp;amp;
                 myMDSSIZE=$MIN &amp;amp;&amp;amp; log &quot;use device $MDSDEV with MIN=$MIN&quot;

we skipped this test, actually MDS device only has 1G (4k * 262144) space, and mkfs has no choice but format this 1G sized MDT and failed the test.

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;we need always check block device&apos;s size bigger than $MIN.&lt;/p&gt;</comment>
                            <comment id="43178" author="bobijam" created="Tue, 14 Aug 2012 07:41:41 +0000"  >&lt;p&gt;patch tracking at &lt;a href=&quot;http://review.whamcloud.com/3632&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3632&lt;/a&gt;&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;patch description&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;test: fix conf_sanity test_18 test case

* We need always check block device&apos;s size bigger than its minimum
  requirement.

* Correct code indentation for formatall().
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="43333" author="pjones" created="Thu, 16 Aug 2012 10:37:47 +0000"  >&lt;p&gt;Thanks for identifying this issue Bobijam. Hopefully the patch will still land in time for the 2.3 release but we do not need to track this as a blocker because the autotest workaround is preventing this causing test failures&lt;/p&gt;</comment>
                            <comment id="43488" author="liwei" created="Mon, 20 Aug 2012 09:59:21 +0000"  >&lt;p&gt;I&apos;m not sure if the root cause has been identified here.  In the very first Maloo report, the MDSSIZE is clearly wrong:&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 18: check mkfs creates large journals == 02:01:09 (1344762069)
use MDSSIZE=1073741824
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Since the unit is KB, the value is around 1 TB.  I think the test did the right thing, although with an incorrect MDSSIZE.  Test Framework also passed the device size as expected:&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;CMD: client-30vm3 /usr/sbin/mkfs.lustre --mgs --fsname=lustre --mdt --index=0 --param=sys.timeout=20 --param=lov.stripesize=1048576 --param=lov.stripecount=0 --param=mdt.identity_upcall=/usr/sbin/l_getidentity --backfstype=ldiskfs --device-size=1073741824 --mkfsoptions=\&quot;-E lazy_itable_init\&quot; --mountfsoptions=errors=remount-ro,iopen_nopriv,user_xattr,acl --reformat /dev/lvm-MDS/P1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;See the &quot;--device-size=1073741824&quot; option?  mkfs.lustre did not specify a journal size, which is what the code was written to do, it seems.  And, mke2fs, as I have tried, chooses 32 MB in the case.&lt;/p&gt;

&lt;p&gt;If MDSSIZE were 1000000, the test should have called skip().  Hence, I don&apos;t think the test has to be changed.&lt;/p&gt;</comment>
                            <comment id="43491" author="bobijam" created="Mon, 20 Aug 2012 10:38:48 +0000"  >&lt;p&gt;the problem here is what we specified MDT device size is bigger than what the MDT device actually has, and the MDT device real size does not meed the test&apos;s minimum requiremtn. The patch will detect this situation, even though we specified a big enough MDT size, we still check whethere the MDT device size is big enough.&lt;/p&gt;</comment>
                            <comment id="43525" author="liwei" created="Mon, 20 Aug 2012 21:19:48 +0000"  >&lt;p&gt;Ah, the problem is actually TT-820.  I think the test does not need any fix; if all tests were to defend against test environment inconsistencies like this (i.e., MDSSIZE &amp;gt; block device size), we&apos;d have a lot of work to do, right?  The consistency checks should probably be done in Test Framework instead.  For the moment, fixing TT-820 shall fix this test failure, no?&lt;/p&gt;</comment>
                            <comment id="43527" author="bobijam" created="Mon, 20 Aug 2012 21:28:56 +0000"  >&lt;p&gt;I have the different idea, this specific test need a big enough MDT, so the specific test case need to make sure of that.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="15480">LU-1743</issuekey>
        </issuelink>
                            </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|hzus4f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2218</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>