[LU-1112] POSIX test failed in 2.1.55 Created: 17/Feb/12 Updated: 29/Feb/12 Resolved: 29/Feb/12 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Sarah Liu | Assignee: | Zhenyu Xu |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Severity: | 3 |
| Rank (Obsolete): | 6453 |
| Description |
|
SUCCESS SUMMARY: News POSIX successes: 1 Test Name Baseline Lustre Report FAILURE SUMMARY: POSIX failures: 9 Test Name Baseline Lustre Report For the failure of write.15 and unlink.6 please refer to |
| Comments |
| Comment by Peter Jones [ 17/Feb/12 ] |
|
Bobi Could you please look at this one Thanks Peter |
| Comment by Zhenyu Xu [ 17/Feb/12 ] |
|
Is there any lustre logs? |
| Comment by Zhenyu Xu [ 17/Feb/12 ] |
|
what is the LSB-VSX posix test suite version? |
| Comment by Zhenyu Xu [ 17/Feb/12 ] |
|
And please also upload posix test result, so that we can see what specific test step fails. |
| Comment by Sarah Liu [ 17/Feb/12 ] |
|
Hi, you can find the version and posix result in the attached file and there is no lustre log. |
| Comment by Zhenyu Xu [ 17/Feb/12 ] |
|
Is the uploaded "posix" detailed posix test result? Sorry, would you collect lustre logs for another try? I still need lustre logs to analyse what problem it is. |
| Comment by Sarah Liu [ 20/Feb/12 ] |
|
ok, will keep you updated. |
| Comment by Zhenyu Xu [ 21/Feb/12 ] |
|
From the log file "posix" all errors are EPERM, I'm wondering that it's because user "vsx0" has no proper access right in /mnt/lustre/TESTROOT. If you re-hit the issue, would you mind trying "chown -R vsx0.vsxg0 /mnt/lustre/TESTSROOT" after /mnt/lutsre is mounted and run the test again? |
| Comment by Sarah Liu [ 22/Feb/12 ] |
|
Hi, [root@client-15 tmp]# ls -al /mnt/lustre/ I don't know why it will cause permission issue. And please find the lustre debug log in the attached.I also upload the whole result dir, hope that does help. |
| Comment by Sarah Liu [ 22/Feb/12 ] |
|
results. Sorry the debug log is too big to be uploaded, you can find it in my home dir on brent /home/sarah/debug_log |
| Comment by Zhenyu Xu [ 23/Feb/12 ] |
|
00000080:00200000:1.0:1329945342.255336:0:7319:0:(namei.c:535:ll_lookup_it()) VFS Op:name=creat-t.10,dir=144115205255726268/33554436(ffff88023fca3828),intent=open|creat 00000080:00200000:3.0:1329945342.263165:0:7323:0:(namei.c:535:ll_lookup_it()) VFS Op:name=creat-t.10,dir=144115205255726268/33554436(ffff88023fca3828),intent=getattr from the log (in creatt.10 case), the permission check is ok, also inode_permission() will not return -EPERM, but suspicious code lies in may_open() excerpt from may_open() error = inode_permission(inode, acc_mode); if (error) return error; /* * An append-only file must be opened in append mode for writing. */ if (IS_APPEND(inode)) { if ((flag & O_ACCMODE) != O_RDONLY && !(flag & O_APPEND)) return -EPERM; if (flag & O_TRUNC) return -EPERM; } /* O_NOATIME can only be set by the owner or superuser */ if (flag & O_NOATIME && !inode_owner_or_capable(inode)) return -EPERM; The second ll_file_open() call has O_TRUNC flag, I suspect that the inode was set S_APPEND flag. |
| Comment by Zhenyu Xu [ 24/Feb/12 ] |
|
my local vm test does not have this issue. |
| Comment by Jian Yu [ 28/Feb/12 ] |
|
Hi Sarah and Bobi, FYI... Lustre Branch: master I ran the same POSIX compliance test but did not hit the issues in this ticket (except unlink.6 and write.15 which is issue FAILURE SUMMARY: POSIX failures: 2 Test Name Baseline Lustre Report unlink.6 Succeeded Failed write.15 Succeeded Failed Maloo report: https://maloo.whamcloud.com/test_sets/4c324da6-61d5-11e1-b462-5254004bbbd3 |
| Comment by Sarah Liu [ 29/Feb/12 ] |
|
I ran POSIX on the same build and distro as Yu Jian(build 491-RHEL6-x86_64) and got 3 failures, two of them are mentioned in FAILURE SUMMARY: POSIX failures: 3 Test Name Baseline Lustre Report |
| Comment by Peter Jones [ 29/Feb/12 ] |
|
Thanks everyone. So we can close this ticket as a duplicate of |