[LU-9746] ost-pools test 24 fails when $DIR has stripe_count = -1 Created: 07/Jul/17 Updated: 07/Jul/17 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.10.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | James Nunez (Inactive) | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | test | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
ost-pools test_24 fails with ost-pools test_24: @@@@@@ FAIL: Stripe count -1 not on /mnt/lustre/d24.ost-pools/dir4/f24.ost-pools0:1 when $DIR has stripe_count = -1. The issue here is that the test is comparing the output of ‘lfs getstripe –c” for a file and for a directory. For the directory, ‘lfs getstripe –c’ reports -1. For the file, , ‘lfs getstripe –c’ reports the number of OSTs. This is easy to reproduce. Create a directory, set the stripe count on the directory to -1, touch a file in the directory and compare the stripe count. For a Lustre file system with six OSTs, we see: # mkdir /lustre/scratch/newdir # lfs setstripe -c -1 /lustre/scratch/newdir # lfs getstripe -c /lustre/scratch/newdir/ -1 # touch /lustre/scratch/newdir/tfile # lfs getstripe -c /lustre/scratch/newdir/tfile 6 or # DIR=/lustre/scratch/newdir ONLY=24 ./ost-pools.sh … == ost-pools test 24: Independence of pool from other setstripe parameters =========================== 16:42:10 (1499445730) eagle-48vm1: Pool scratch.testpool created eagle-48vm1: OST scratch-OST0000_UUID added to pool scratch.testpool eagle-48vm1: OST scratch-OST0001_UUID added to pool scratch.testpool eagle-48vm1: OST scratch-OST0002_UUID added to pool scratch.testpool eagle-48vm1: OST scratch-OST0003_UUID added to pool scratch.testpool eagle-48vm1: OST scratch-OST0004_UUID added to pool scratch.testpool eagle-48vm1: OST scratch-OST0005_UUID added to pool scratch.testpool total: 10 open/close in 0.04 seconds: 265.98 ops/second total: 10 open/close in 0.03 seconds: 337.60 ops/second total: 10 open/close in 0.04 seconds: 271.03 ops/second total: 10 open/close in 0.04 seconds: 229.43 ops/second ost-pools test_24: @@@@@@ FAIL: Stripe count -1 not on /lustre/scratch/newdir/d24.ost-pools/dir4/f24.ost-pools0:6 Testing the PFL feature brought this issue to light. Logs from ost-pools test 24 failures are at: |