[LU-9663] sanity test_103a: LU-2561 test failed Created: 14/Jun/17 Updated: 10/Dec/18 Resolved: 27/Oct/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.10.0 |
| Fix Version/s: | Lustre 2.11.0, Lustre 2.10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Maloo | Assignee: | Jian Yu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Servers - 2.9.58, 3591, master |
||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
This issue was created by maloo for Saurabh Tandan <saurabh.tandan@intel.com> This issue relates to the following test suite run: https://testing.hpdd.intel.com/test_sets/f3de6c42-4af5-11e7-b400-5254006e85c2. The sub-test test_103a failed with the following error: LU-2561 test failed test_logs: 11 commands (11 passed, 0 failed) LU-2561 newly created file is same size as directory... [3] $ mkdir -p 2561 -- ok [4] $ cd 2561 -- ok [5] $ getfacl --access . | setfacl -d -M- . -- ok [6] $ touch f1 -- ok [7] $ ls -s f1 -- failed 0 f1 ? 4 f1 [9] $ cd .. -- ok [10] $ rm -rf 2561 -- ok 7 commands (6 passed, 1 failed) sanity test_103a: @@@@@@ FAIL: LU-2561 test failed This issue is seen only during rolling upgrade/downgrade testing. |
| Comments |
| Comment by Peter Jones [ 15/Jun/17 ] |
|
Jian Can you please investigate? Thanks Peter |
| Comment by Saurabh Tandan (Inactive) [ 21/Jun/17 ] |
|
Another instance for tag 2.9.59 with 1 MDT, 2 OSTs and 2 Clients for rolling upgrade testing |
| Comment by Jian Yu [ 23/Jun/17 ] |
|
As Saurabh reported, sanity test 103a failed under the configuration of Lustre 2.9.0 client with rolling upgraded 2.9.59 servers but passed under the configuration of Lustre 2.9.0 client with freshly installed 2.9.59 servers. # pwd As we can see, the results of the latest two runs of "ls -s f1" were different. So, without upgrading, the issue also exists under interop configuration. Continue investigating. |
| Comment by Jian Yu [ 23/Jun/17 ] |
|
It turns out the above "ls -s" issue also exists on the latest master branch. I filed a new ticket For the upgrading issue in this ticket, I did more experiments under the configuration of Lustre 2.9.0 client with rolling upgraded 2.9.59 servers and found: # pwd /mnt/lustre # ls -s total 0 # touch f # ls -s f 4 f # stat f File: ‘f’ Size: 0 Blocks: 8 IO Block: 4194304 regular empty file Device: 2c54f966h/743766374d Inode: 144115205272502275 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-06-23 19:39:41.000000000 +0000 Modify: 2017-06-23 19:39:41.000000000 +0000 Change: 2017-06-23 19:39:41.000000000 +0000 Birth: - The allocated size of the touched file "f" is 4 blocks instead of 0. And the "Blocks" showed by "stat f" is 8 instead of 0. On 2.9.59 MDS server: # umount /dev/vda3 # mount -t ldiskfs /dev/vda3 /mnt/lustre-mds1 # cd /mnt/lustre-mds1 # stat ROOT/f File: ‘ROOT/f’ Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fd03h/64771d Inode: 134 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-06-23 19:39:41.000000000 +0000 Modify: 2017-06-23 19:39:41.000000000 +0000 Change: 2017-06-23 19:39:41.000000000 +0000 Birth: - Both "Size" and "Blocks" are 0. After unmouting and remounting all of the 2.9.0 clients, "ls -s f" is still 4 instead of 0. Touching a new file also hit the same issue. |
| Comment by Jian Yu [ 24/Jun/17 ] |
|
The same issue also can be reproduced with clean upgrading (even only upgrading OSS from Lustre 2.9.0 to 2.9.59). The result of "ls -s" on a newly touched file is 4 instead of 0. |
| Comment by Andreas Dilger [ 04/Jul/17 ] |
|
I think the test here should be improved. Something like changing the "ls -s <file>" check of the allocated block count to "stat -c '%s' <file>" to check the file size would also detect this problem, and would not suffer from the change in the allocated block count. |
| Comment by Gerrit Updater [ 07/Jul/17 ] |
|
Jian Yu (jian.yu@intel.com) uploaded a new patch: https://review.whamcloud.com/27961 |
| Comment by Gerrit Updater [ 19/Jul/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27961/ |
| Comment by Gerrit Updater [ 27/Oct/17 ] |
|
Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/29816 |
| Comment by Gerrit Updater [ 15/Nov/17 ] |
|
John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29816/ |