<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:38:54 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-4016] metadata-updates failure: attributes check failed</title>
                <link>https://jira.whamcloud.com/browse/LU-4016</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Test results at &lt;a href=&quot;https://maloo.whamcloud.com/test_sessions/eb9d697c-2658-11e3-8d26-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sessions/eb9d697c-2658-11e3-8d26-52540035b04c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;metadata-updates fails with &quot;attributes check failed&quot;. Node logs don&apos;t exist, but the suite_log shows:&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;Checking file(s) attributes ... 
c08: /lustre/scratch/d0.metadata-updates/c07/testfile [ uid gid size mode ] expected : 0 0 1024 0644 ;  got : root 0 1024 0644 
c08: Wrong file attributes
c09: /lustre/scratch/d0.metadata-updates/c07/testfile [ uid gid size mode ] expected : 0 0 1024 0644 ;  got : root 0 1024 0644 
c09: Wrong file attributes
pdsh@c10: c08: ssh exited with exit code 56
c07: /lustre/scratch/d0.metadata-updates/c07/testfile [ uid gid size mode ] expected : 0 0 1024 0644 ;  got : root 0 1024 0644 
c07: Wrong file attributes
pdsh@c10: c09: ssh exited with exit code 56
pdsh@c10: c07: ssh exited with exit code 56
c10: /lustre/scratch/d0.metadata-updates/c07/testfile [ uid gid size mode ] expected : 0 0 1024 0644 ;  got : root 0 1024 0644 
c10: Wrong file attributes
pdsh@c10: c10: ssh exited with exit code 56
 metadata-updates : @@@@@@ FAIL: attributes check failed 
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:4264:error_noexit()
  = /usr/lib64/lustre/tests/metadata-updates.sh:227:main()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Although this was run during HSM testing, the copytool was not started and HSM was not enabled on the MDS, but all HSM attributes were in the test configuration files.&lt;/p&gt;</description>
                <environment>Build # 1687&lt;br/&gt;
OpenSFS cluster with combined MGS/MDS, single OSS with two OSTs, four clients; one agent (c07), one with robinhood/db running (c08) and just running as Lustre clients (c09, c10) </environment>
        <key id="21157">LU-4016</key>
            <summary>metadata-updates failure: attributes check failed</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="jamesanunez">James Nunez</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Sep 2013 22:06:07 +0000</created>
                <updated>Tue, 31 Dec 2013 15:45:22 +0000</updated>
                            <resolved>Fri, 20 Dec 2013 15:14:09 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.4.2</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="67872" author="jamesanunez" created="Fri, 27 Sep 2013 19:33:39 +0000"  >&lt;p&gt;Another similar failure while HSM was enabled: &lt;a href=&quot;https://maloo.whamcloud.com/test_sessions/277b4f38-2779-11e3-8a10-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sessions/277b4f38-2779-11e3-8a10-52540035b04c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are additional failures, after truncate and chmod:&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;Checking file(s) attributes ... 
c10: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 1024 0644 ;  got : root 0 1024 0644 
c10: Wrong file attributes
c08: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 1024 0644 ;  got : root 0 1024 0644 
c08: Wrong file attributes
pdsh@c10: c10: ssh exited with exit code 56
c09: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 1024 0644 ;  got : root 0 1024 0644 
c09: Wrong file attributes
pdsh@c10: c08: ssh exited with exit code 56
pdsh@c10: c09: ssh exited with exit code 56
 metadata-updates : @@@@@@ FAIL: attributes check failed 
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:4264:error_noexit()
  = /usr/lib64/lustre/tests/metadata-updates.sh:227:main()
Dumping lctl log to /tmp/test_logs/2013-09-26/124150/metadata-updates..*.1380231630.log
Part 2. file(s) attributes modification.
Performing chmod 00222 ...
Checking file(s) attributes ... 
c10: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 1024 0222 ;  got : root 0 1024 0222 
c10: Wrong file attributes
pdsh@c10: c10: ssh exited with exit code 56
c09: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 1024 0222 ;  got : root 0 1024 0222 
c09: Wrong file attributes
c08: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 1024 0222 ;  got : root 0 1024 0222 
c08: Wrong file attributes
pdsh@c10: c08: ssh exited with exit code 56
pdsh@c10: c09: ssh exited with exit code 56
 metadata-updates : @@@@@@ FAIL: wrong attributes after chmod 
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:4264:error_noexit()
  = /usr/lib64/lustre/tests/metadata-updates.sh:232:main()
Dumping lctl log to /tmp/test_logs/2013-09-26/124150/metadata-updates..*.1380231632.log
Changing atime, mtime ...
Checking atime, mtime ... 
Part 3. truncate file(s) to 0 size, check new file size.
Truncating file(s) ... 
Checking file(s) attributes ... 
c10: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 0 0222 ;  got : root 0 0 0222 
c10: Wrong file attributes
pdsh@c10: c10: ssh exited with exit code 56
c08: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 0 0222 ;  got : root 0 0 0222 
c08: Wrong file attributes
pdsh@c10: c08: ssh exited with exit code 56
c09: /lustre/scratch/d0.metadata-updates/c08/testfile [ uid gid size mode ] expected : 0 0 0 0222 ;  got : root 0 0 0222 
c09: Wrong file attributes
pdsh@c10: c09: ssh exited with exit code 56
 metadata-updates : @@@@@@ FAIL: wrong attributes after truncate 
  Trace dump:
  = /usr/lib64/lustre/tests/test-framework.sh:4264:error_noexit()
  = /usr/lib64/lustre/tests/metadata-updates.sh:240:main()
Dumping lctl log to /tmp/test_logs/2013-09-26/124150/metadata-updates..*.1380231634.log
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="69043" author="jamesanunez" created="Tue, 15 Oct 2013 22:21:53 +0000"  >&lt;p&gt;Another failure at &lt;a href=&quot;https://maloo.whamcloud.com/test_sessions/4574cfe8-35e1-11e3-b051-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sessions/4574cfe8-35e1-11e3-b051-52540035b04c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="69490" author="schamp" created="Tue, 22 Oct 2013 02:32:28 +0000"  >&lt;p&gt;I&apos;ve been seeing this on rhel and sles - I think since I started testing with 1.8.5.  I observed it on 2.4.1 today.  Infiniband cluster, two clients, one MDS, two OSS with one OST each.  Upcall is default, nsswitch point to files nis.&lt;/p&gt;

&lt;p&gt;I&apos;ve never looked at it much - I just excluded the failing tests.  It looks like stat is reporting %U, instead of %u.  Can&apos;t say why.  I looked for a bug in coreutils, but didn&apos;t see anything obvious.  I&apos;ve never observed this behavior outside of running acceptance.&lt;/p&gt;</comment>
                            <comment id="69494" author="schamp" created="Tue, 22 Oct 2013 04:13:37 +0000"  >&lt;p&gt; for HOST in ${HOSTS//,/ } ; do&lt;br/&gt;
     TESTFILE=$TESTDIR/\\\$HOST/$FILE;&lt;br/&gt;
+    echo \\\stat -c \\\&quot;%u %g %s 0%a\\\&quot; \\\$TESTFILE&lt;br/&gt;
     tmp=\\\$(stat -c \\\&quot;%u %g %s 0%a\\\&quot; \\\$TESTFILE);&lt;br/&gt;
     echo \\\&quot;\\\$TESTFILE [ uid gid size mode ] expected : $attr ;  got : \\\$tmp \\\&quot;;&lt;/p&gt;

&lt;p&gt;n006: stat -c root %g %s 0%a /mnt/accfs/d0.metadata-updates/n006/testfile&lt;br/&gt;
n007: stat -c root %g %s 0%a /mnt/accfs/d0.metadata-updates/n006/testfile&lt;/p&gt;


&lt;p&gt;So our %u was eaten by pdsh:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;pdsh -w n006,n007 echo &apos;%u&apos;&lt;br/&gt;
n007: root&lt;br/&gt;
n006: root&lt;/li&gt;
	&lt;li&gt;pdsh -L&lt;br/&gt;
3 modules loaded:&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Module: rcmd/exec&lt;br/&gt;
Author: Mark Grondona &amp;lt;mgrondona@llnl.gov&amp;gt;&lt;br/&gt;
Descr:  arbitrary command rcmd connect method&lt;br/&gt;
Active: yes&lt;/p&gt;

&lt;p&gt;Module: misc/netgroup&lt;br/&gt;
Author: Mark Grondona &amp;lt;mgrondona@llnl.gov&amp;gt;&lt;br/&gt;
Descr:  Target netgroups from pdsh&lt;br/&gt;
Active: yes&lt;br/&gt;
Options:&lt;br/&gt;
-g groupname      target hosts in netgroup &quot;groupname&quot;&lt;br/&gt;
-X groupname      exclude hosts in netgroup &quot;groupname&quot;&lt;/p&gt;

&lt;p&gt;Module: rcmd/ssh&lt;br/&gt;
Author: Jim Garlick &amp;lt;garlick@llnl.gov&amp;gt;&lt;br/&gt;
Descr:  ssh based rcmd connect method&lt;br/&gt;
Active: yes&lt;/p&gt;


&lt;p&gt;Less clear is what we can do about it.  I do not see an option to pdsh to prohibit this processing.  Escaping it as %%u works for me - but would presumably break configurations it currently works for.&lt;/p&gt;</comment>
                            <comment id="69512" author="simmonsja" created="Tue, 22 Oct 2013 12:01:02 +0000"  >&lt;p&gt;This is a old bug that has been around since the 1.6 days. I thought I was the only one that saw this problem. The way I work around it is with the below patch.&lt;/p&gt;

&lt;p&gt;diff -urp metadata-updates.sh.orig metadata-updates.sh&lt;br/&gt;
&amp;#8212; metadata-updates.sh.orig 2013-05-16 09:54:56.000000000 -0400&lt;br/&gt;
+++ metadata-updates.sh      2013-05-20 13:33:15.000000000 -0400&lt;br/&gt;
@@ -32,7 +32,7 @@&lt;br/&gt;
 NEW_ATIME=&quot;2001-01-01 GMT&quot;&lt;br/&gt;
 NEW_MTIME=&quot;2005-05-05 GMT&quot;&lt;/p&gt;

&lt;p&gt;-test_UID=$(id -u)&lt;br/&gt;
+test_UID=$(id -u -n)&lt;br/&gt;
 test_GID=$(id -g)&lt;/p&gt;

&lt;p&gt; SUMFILE=$TESTDIR/mdsum&lt;br/&gt;
@@ -106,7 +106,7 @@&lt;br/&gt;
     do_nodesv $NODES_TO_USE &quot;set $TRACE;&lt;br/&gt;
 for HOST in ${HOSTS//,/ } ; do&lt;br/&gt;
     TESTFILE=$TESTDIR/\\\$HOST/$FILE;&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;tmp=\\\$(stat -c \\\&quot;%u %g %s 0%a\\\&quot; \\\$TESTFILE);&lt;br/&gt;
+    tmp=\\\$(stat -c \\\&quot;%U %g %s 0%a\\\&quot; \\\$TESTFILE);&lt;br/&gt;
     echo \\\&quot;\\\$TESTFILE [ uid gid size mode ] expected : $attr ;  got : \\\$tmp \\\&quot;;&lt;br/&gt;
     if [ x\\\&quot;\\\$tmp\\\&quot; != x\\\&quot;$attr\\\&quot; ] ; then&lt;br/&gt;
         echo \\\&quot;Wrong file attributes\\\&quot;;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="69622" author="schamp" created="Wed, 23 Oct 2013 11:18:34 +0000"  >&lt;p&gt;That works.  I assumed that test_UID needed to be numerical, but it&apos;s not actually used anywhere else.  I think we should rename it (because it&apos;s not a UID anymore) and change GID, too, for consistency.&lt;/p&gt;

&lt;p&gt;Mind if I submit a patch with those changes, based on your idea?&lt;/p&gt;</comment>
                            <comment id="69624" author="simmonsja" created="Wed, 23 Oct 2013 11:35:33 +0000"  >&lt;p&gt;Sure go right ahead &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="69635" author="schamp" created="Wed, 23 Oct 2013 14:46:44 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/8052&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8052&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Against master, applies cleanly to 2.4.1 and works in my environment.&lt;/p&gt;</comment>
                            <comment id="70770" author="jamesanunez" created="Tue, 5 Nov 2013 20:00:47 +0000"  >&lt;p&gt;Landed to master.&lt;/p&gt;</comment>
                            <comment id="71766" author="simmonsja" created="Mon, 18 Nov 2013 12:48:58 +0000"  >&lt;p&gt;Can we cherry pick it against 2.4.1. We will later need it cherry picked against 2.5.1&lt;/p&gt;</comment>
                            <comment id="71802" author="jamesanunez" created="Mon, 18 Nov 2013 16:10:23 +0000"  >&lt;p&gt;The patch should apply to 2.4 and 2.5 with no problems. I&apos;ll request that it be cherry-picked against 2.4 and 2.5.&lt;/p&gt;</comment>
                            <comment id="71895" author="jamesanunez" created="Tue, 19 Nov 2013 16:03:17 +0000"  >&lt;p&gt;Reopened to apply patch to 2.5 and 2.4.&lt;/p&gt;

&lt;p&gt;2.4 patch: &lt;a href=&quot;http://review.whamcloud.com/#/c/8333/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8333/&lt;/a&gt;&lt;br/&gt;
2.5 patch: &lt;a href=&quot;http://review.whamcloud.com/#/c/8332/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8332/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="72189" author="yujian" created="Sat, 23 Nov 2013 14:57:28 +0000"  >&lt;p&gt;Patch &lt;a href=&quot;http://review.whamcloud.com/8052&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8052&lt;/a&gt; was cherry-picked to Lustre b2_4 branch for 2.4.2.&lt;/p&gt;</comment>
                            <comment id="73938" author="pjones" created="Fri, 20 Dec 2013 15:14:09 +0000"  >&lt;p&gt;Landed for 2.4.2 and 2.6. Will land for 2.5.1 shortly&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|hzw467:</customfieldvalue>

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