<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:07:44 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-14202] sanity-sec test 16 fails with &apos;unable to write quota test file&apos;</title>
                <link>https://jira.whamcloud.com/browse/LU-14202</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;sanity-sec test_16 fails for RHEL 8.3 client/server testing. We&#8217;ve only seen this test fail once with this error; &lt;a href=&quot;https://testing.whamcloud.com/test_sets/1c1e2670-df76-498e-a3a9-d74b490d63a9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/1c1e2670-df76-498e-a3a9-d74b490d63a9&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;Looking at the suite_log for this failure, we see several &#8220;pdsh@trevis-8vm7: trevis-8vm8: ssh exited with exit code 2&#8221;&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;&#8230;
pdsh@trevis-8vm7: trevis-8vm8: ssh exited with exit code 2
CMD: trevis-8vm8 runas -u60005 -g60005 -G60005 rm /mnt/lustre/d16.sanity-sec/f16.sanity-sec
trevis-8vm8: running as uid/gid/euid/egid 60005/60005/60005/60005, groups: 60005
trevis-8vm8:  [rm] [/mnt/lustre/d16.sanity-sec/f16.sanity-sec]
CMD: trevis-24vm6 /usr/sbin/lctl set_param -n os[cd]*.*MD*.force_sync 1
CMD: trevis-24vm6 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-24vm6 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-24vm6 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-24vm6 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-24vm6 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-24vm6 /usr/sbin/lctl get_param -n osc.*MDT*.sync_*
CMD: trevis-8vm8 runas -u60005 -g60005 -G60005 lfs quota -q /mnt/lustre
trevis-8vm8: running as uid/gid/euid/egid 60005/60005/60005/60005, groups: 60005
trevis-8vm8:  [lfs] [quota] [-q] [/mnt/lustre]
pdsh@trevis-8vm7: trevis-8vm8: ssh exited with exit code 2
CMD: trevis-8vm7.trevis.whamcloud.com chmod 000 /mnt/lustre/d16.sanity-sec
CMD: trevis-8vm7.trevis.whamcloud.com chmod 003 /mnt/lustre/d16.sanity-sec
CMD: trevis-8vm7.trevis.whamcloud.com chmod 300 /mnt/lustre/d16.sanity-sec
CMD: trevis-8vm7.trevis.whamcloud.com chmod 303 /mnt/lustre/d16.sanity-sec
CMD: trevis-8vm7.trevis.whamcloud.com chmod 777 /mnt/lustre/d16.sanity-sec
CMD: trevis-8vm8 runas -u60006 -g60006 -G60006 lfs quota -q /mnt/lustre
trevis-8vm8: running as uid/gid/euid/egid 60006/60006/60006/60006, groups: 60006
trevis-8vm8:  [lfs] [quota] [-q] [/mnt/lustre]
pdsh@trevis-8vm7: trevis-8vm8: ssh exited with exit code 2
 sanity-sec test_16: @@@@@@ FAIL: unable to write quota test file 
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:6257:error()
  = /usr/lib64/lustre/tests/sanity-sec.sh:1290:do_fops_quota_test()
  = /usr/lib64/lustre/tests/sanity-sec.sh:1483:test_fops()
  = /usr/lib64/lustre/tests/sanity-sec.sh:1567:test_16()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In the client2 (8vm8) console log, we see the following 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;[23001.757304] Lustre: DEBUG MARKER: runas -u60006 -g60006 -G60006 dd if=/dev/zero of=/mnt/lustre/d16.sanity-sec/f16.sanity-sec oflag=sync bs=1M count=1
[23002.132686] LustreError: 8532:0:(osc_request.c:1947:osc_brw_fini_request()) lustre-OST0002-osc-ffff8a310b0e7800: unexpected positive size 1
[23002.680119] Lustre: DEBUG MARKER: /usr/sbin/lctl mark  sanity-sec test_16: @@@@@@ FAIL: unable to write quota test file 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>RHEL 8.3 clients/servers</environment>
        <key id="61915">LU-14202</key>
            <summary>sanity-sec test 16 fails with &apos;unable to write quota test file&apos;</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="3">Duplicate</resolution>
                                        <assignee username="sebastien">Sebastien Buisson</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>rhel8.3</label>
                    </labels>
                <created>Tue, 8 Dec 2020 21:03:17 +0000</created>
                <updated>Mon, 14 Dec 2020 13:28:26 +0000</updated>
                            <resolved>Mon, 14 Dec 2020 13:28:26 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="287137" author="pjones" created="Wed, 9 Dec 2020 18:54:43 +0000"  >&lt;p&gt;Sebastien&lt;/p&gt;

&lt;p&gt;Could you please advise on this one? Will this be addressed by your unhanded patches in this area?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="287205" author="gerrit" created="Thu, 10 Dec 2020 15:50:38 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40934&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40934&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14202&quot; title=&quot;sanity-sec test 16 fails with &amp;#39;unable to write quota test file&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14202&quot;&gt;&lt;del&gt;LU-14202&lt;/del&gt;&lt;/a&gt; tests: try to reproduce&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e9d63ad0ed558f578ce868e65b2250b26568bfa4&lt;/p&gt;</comment>
                            <comment id="287214" author="sebastien" created="Thu, 10 Dec 2020 16:10:23 +0000"  >&lt;p&gt;This is not an issue I was aware of, and it is not going to be addressed by any pending patch I have.&lt;/p&gt;

&lt;p&gt;Although the issue is uncovered during sanity-sec, I am not sure it is a security related issue. sanity-sec test_16 just plays with nodemaps, and checks that quotas set are correctly enforced. In the case reported by James, neither SHARED_KEY nor SELinux are being used.&lt;/p&gt;

&lt;p&gt;The error finally returned by the test comes from a failed attempt to write to a file with dd, as user uid &lt;tt&gt;60006&lt;/tt&gt;. The relevant messages on client side are:&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;[23001.757304] Lustre: DEBUG MARKER: runas -u60006 -g60006 -G60006 dd if=/dev/zero of=/mnt/lustre/d16.sanity-sec/f16.sanity-sec oflag=sync bs=1M count=1
[23002.132686] LustreError: 8532:0:(osc_request.c:1947:osc_brw_fini_request()) lustre-OST0002-osc-ffff8a310b0e7800: unexpected positive size 1
[23002.680119] Lustre: DEBUG MARKER: /usr/sbin/lctl mark  sanity-sec test_16: @@@@@@ FAIL: unable to write quota test file 
&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;00000008:00020000:0.0:1607377928.061849:0:8532:0:(osc_request.c:1947:osc_brw_fini_request()) lustre-OST0002-osc-ffff8a310b0e7800: unexpected positive size 1
00000080:00200000:0.0:1607377928.098285:0:382201:0:(vvp_io.c:1299:vvp_io_write_start()) f16.sanity-sec: write position mismatch: ki_pos 1048576 vs. pos 0, written 1048576, commit 0: rc = -71
00000080:00200000:0.0:1607377928.098314:0:382201:0:(file.c:1639:ll_file_io_generic()) f16.sanity-sec: 2 io complete with rc: -71, result: 0, restart: 0
00000080:00200000:0.0:1607377928.098315:0:382201:0:(file.c:1695:ll_file_io_generic()) iot: 2, result: 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Unfortunately, on OSS side, the debug level does not leave us with many details:&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;00000100:00100000:0.0:1607377928.044135:0:602125:0:(service.c:2299:ptlrpc_server_handle_request()) Handling RPC req@0000000066b395ba pname:cluuid+ref:pid:xid:nid:opc:job ll_ost_io00_002:66c97887-330e-4bd1-930b-29b4c28d8385+6:8532:x1685434418579008:12345-10.9.4.88@tcp:4:dd.60006
00000100:00100000:0.0:1607377928.061461:0:602125:0:(service.c:2348:ptlrpc_server_handle_request()) Handled RPC req@0000000066b395ba pname:cluuid+ref:pid:xid:nid:opc:job ll_ost_io00_002:66c97887-330e-4bd1-930b-29b4c28d8385+7:8532:x1685434418579008:12345-10.9.4.88@tcp:4:dd.60006 Request processed in 17325us (17368us total) trans 0 rc 1/1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;At least we can see that the &apos;unexpected positive 1&apos; reported by the client is in fact returned by the server.&lt;/p&gt;

&lt;p&gt;As noticed by James, even before the error, there are suspicious ssh problems in the form of &lt;tt&gt;pdsh@trevis-8vm7: trevis-8vm8: ssh exited with exit code 2&lt;/tt&gt; in the test log. I have pushed patch #40934 to add more traces and try to reproduce the issue, in the hope the the debug level will be higher (but maybe the default used in Maloo testing is not enough in this case).&lt;/p&gt;</comment>
                            <comment id="287249" author="jamesanunez" created="Thu, 10 Dec 2020 21:10:07 +0000"  >&lt;p&gt;This may be the same as or related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14200&quot; title=&quot;ost-pools test 23b fails with &amp;#39;dd did not fail with ENOSPC&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14200&quot;&gt;&lt;del&gt;LU-14200&lt;/del&gt;&lt;/a&gt; since we see similar errors on the client.&lt;/p&gt;</comment>
                            <comment id="287253" author="jamesanunez" created="Thu, 10 Dec 2020 21:48:20 +0000"  >&lt;p&gt;Similar issue seen on sanity-sec test 21 at &lt;a href=&quot;https://testing.whamcloud.com/test_sets/9f7fdf4a-6ec8-4cd2-9a15-631ece42d85b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/9f7fdf4a-6ec8-4cd2-9a15-631ece42d85b&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="287301" author="sebastien" created="Fri, 11 Dec 2020 09:18:07 +0000"  >&lt;p&gt;OK, so I think we can definitely take the nodemap feature out of the equation.&lt;/p&gt;

&lt;p&gt;Could we mark this ticket as a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14200&quot; title=&quot;ost-pools test 23b fails with &amp;#39;dd did not fail with ENOSPC&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14200&quot;&gt;&lt;del&gt;LU-14200&lt;/del&gt;&lt;/a&gt;, as it already references multiple tests like ost-pools, sanity-quota and sanity-flr?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Sebastien.&lt;/p&gt;</comment>
                            <comment id="287441" author="pjones" created="Sun, 13 Dec 2020 16:44:52 +0000"  >&lt;p&gt;S&#233;bastien&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14200&quot; title=&quot;ost-pools test 23b fails with &amp;#39;dd did not fail with ENOSPC&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14200&quot;&gt;&lt;del&gt;LU-14200&lt;/del&gt;&lt;/a&gt; has in turn been marked a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14205&quot; title=&quot;RHEL8.3: sanity test 398c fails with &amp;#39;fio write error&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14205&quot;&gt;&lt;del&gt;LU-14205&lt;/del&gt;&lt;/a&gt; so should we mark this one as a duplicate of that?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="287457" author="sebastien" created="Mon, 14 Dec 2020 06:28:04 +0000"  >&lt;p&gt;Yes, I think we should mark this one as dup of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14205&quot; title=&quot;RHEL8.3: sanity test 398c fails with &amp;#39;fio write error&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14205&quot;&gt;&lt;del&gt;LU-14205&lt;/del&gt;&lt;/a&gt;, as it is exactly the same error. Thanks.&lt;/p&gt;</comment>
                            <comment id="287469" author="pjones" created="Mon, 14 Dec 2020 13:28:26 +0000"  >&lt;p&gt;thanks S&#233;bastien!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="61931">LU-14205</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="61910">LU-14200</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i01gov:</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>