<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:20:48 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-8817] min_ost_size function under test-framework incorrect.</title>
                <link>https://jira.whamcloud.com/browse/LU-8817</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;min_ost_size() function is defined as below and it gets the min kbytesavail among the attached OST&apos;s. This function is used twice under&lt;br/&gt;
1. ./lustre/tests/obdfilter-survey.sh&lt;br/&gt;
2. ./lustre/tests/sanity-benchmark.sh&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; $LCTL get_param -n osc.*.kbytesavail | sort -n | head -n1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;However, it get the MDT &apos;s kbytesavail (OSP) which is different.&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;# lctl get_param osc.*.kbytesavail
osc.lustre-OST0000-osc-MDT0000.kbytesavail=151004 &amp;lt;&amp;lt; Reports &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; value.
osc.lustre-OST0000-osc-ffff880026480400.kbytesavail=151276
osc.lustre-OST0001-osc-MDT0000.kbytesavail=151004
osc.lustre-OST0001-osc-ffff880026480400.kbytesavail=151276
#
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It should report kbytesavail for OST&apos;s , which is also matching lfs df output.&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;# lctl get_param osc.*.kbytesavail | grep -v MDT
osc.lustre-OST0000-osc-ffff880026480400.kbytesavail=151276
osc.lustre-OST0001-osc-ffff880026480400.kbytesavail=151276
#
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Output of &apos;lfs df&apos;. &apos;Available&apos; field only.&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;    $ lfs df | grep OST | awk &lt;span class=&quot;code-quote&quot;&gt;&apos;{print $4}&apos;&lt;/span&gt; | sort -n | head -n1
    151276
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Output with current code:&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;    $ lctl get_param -n osc.*.kbytesavail | sort -n | head -n1
    151004
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

</description>
                <environment></environment>
        <key id="41447">LU-8817</key>
            <summary>min_ost_size function under test-framework incorrect.</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="wc-triage">WC Triage</assignee>
                                    <reporter username="arshad512">Arshad Hussain</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Nov 2016 22:45:37 +0000</created>
                <updated>Tue, 13 Jun 2017 17:08:20 +0000</updated>
                            <resolved>Tue, 13 Jun 2017 17:08:20 +0000</resolved>
                                    <version>Lustre 2.5.1</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="173023" author="gerrit" created="Wed, 9 Nov 2016 23:40:03 +0000"  >&lt;p&gt;Arshad Hussain (arshad.hussain@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/23685&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23685&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8817&quot; title=&quot;min_ost_size function under test-framework incorrect.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8817&quot;&gt;&lt;del&gt;LU-8817&lt;/del&gt;&lt;/a&gt; tests: Update &apos;min_ost_size&apos;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 43c1df70b063f254edde8a6283a056a9565b78f9&lt;/p&gt;</comment>
                            <comment id="181674" author="jamesanunez" created="Sat, 21 Jan 2017 00:55:54 +0000"  >&lt;p&gt;Arshad - Is this patch still necessary? I&apos;m running master and I don&apos;t see the MDT&apos;s available space when I run &apos;lctl get_param osc.*.kbytesavail&apos; on the client:&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 get_param osc.*.kbytesavail
osc.scratch-OST0000-osc-ffff88007acea800.kbytesavail=307348
osc.scratch-OST0001-osc-ffff88007acea800.kbytesavail=309396
osc.scratch-OST0002-osc-ffff88007acea800.kbytesavail=309392
osc.scratch-OST0003-osc-ffff88007acea800.kbytesavail=309392
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but there is an MDT:&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;# lfs df
UUID                   1K-blocks        Used   Available Use% Mounted on
scratch-MDT0000_UUID      125368        1868      114140   2% /lustre/scratch[MDT:0]
scratch-OST0000_UUID      350360       15540      307348   5% /lustre/scratch[OST:0]
scratch-OST0001_UUID      350360       13492      309396   4% /lustre/scratch[OST:1]
scratch-OST0002_UUID      350360       13496      309392   4% /lustre/scratch[OST:2]
scratch-OST0003_UUID      350360       13496      309392   4% /lustre/scratch[OST:3]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think your patch is good and works, but I think it&apos;s not necessary ... for master. What do you think?&lt;/p&gt;</comment>
                            <comment id="181949" author="arshad512" created="Tue, 24 Jan 2017 17:06:34 +0000"  >&lt;p&gt;Hello James,&lt;/p&gt;

&lt;p&gt;Thanks for the review and Apologies for delay response.&lt;/p&gt;

&lt;p&gt;What I could still see is that on the setup where MDS and CLIENT are on same node &#8211; min_ost_size() (lctl get_param osc.*.kbytesavail) return the value from OSP. This does not manifest on 2 node or greater setup where client is separate. I believe that it is reasonable to update min_ost_size() under test-framework.sh to cover this case also by switching to &#8220;lfs df&#8221;. &lt;/p&gt;

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

&lt;p&gt;On a single node master these are the results:&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;# lctl get_param osc.*.kbytesavail
osc.lustre-OST0000-osc-MDT0000.kbytesavail=309124 &amp;lt;&amp;lt;&amp;lt; min_ost_size() Reports &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; value.
osc.lustre-OST0000-osc-ffff880016c0a800.kbytesavail=309396
osc.lustre-OST0001-osc-MDT0000.kbytesavail=309124
osc.lustre-OST0001-osc-ffff880016c0a800.kbytesavail=309396
#

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;However lfs df shows differently.&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;# lfs df | grep OST | awk &lt;span class=&quot;code-quote&quot;&gt;&apos;{print $4}&apos;&lt;/span&gt; | sort -un | head -1
309396
#

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is the master version I am using&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;# git log --format=oneline -5
3b3eeeb08407588c75e47a751a72fad6ac7d78f2 LU-8871 kernel: kernel upgrade [SLES12 SP2 4.4.21-84]
1bb6ce8d8cc4de97d49ab5f1d8a07b60e3dc3639 LU-4423 ptlrpc: use 64-bit times &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ptlrpc sec expiry
fb403f8b5f8ba61fe0da28e7f7c5e01776717750 LU-8945 ptlrpc : remove userland usage from ptlrpc
11dfa318972db8c8d4bdc36848a4aee8072557f7 LU-8835 osc: handle 64 bit time properly in osc_cache_too_much
874690977923f9fa984f608e7bf1d6effda04e6b LU-6210 lod: Change positional struct initializers to C99
#

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;However, on the 2 node setup the results are what you are pointing out. The mismatch does not manifest here.&lt;br/&gt;
 Running on client&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;# lctl get_param osc.*.kbytesavail
osc.lustre-OST0000-osc-ffff88003aff3000.kbytesavail=71096
osc.lustre-OST0001-osc-ffff88003aff3000.kbytesavail=71096

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;lfs df&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;# lfs df | grep OST | awk &lt;span class=&quot;code-quote&quot;&gt;&apos;{print $4}&apos;&lt;/span&gt; | sort -un | head -1
71096
#

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="199078" author="gerrit" created="Tue, 13 Jun 2017 16:55:05 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/23685/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/23685/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8817&quot; title=&quot;min_ost_size function under test-framework incorrect.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8817&quot;&gt;&lt;del&gt;LU-8817&lt;/del&gt;&lt;/a&gt; tests: Update &apos;min_ost_size&apos;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4eeff96e35c65ba818f604ead2efd66d26241dc0&lt;/p&gt;</comment>
                            <comment id="199091" author="pjones" created="Tue, 13 Jun 2017 17:08:20 +0000"  >&lt;p&gt;Landed for 2.10&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|hzyv33:</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>