[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:
2017-05-10 https://testing.hpdd.intel.com/test_sets/011c9cb8-3560-11e7-8847-5254006e85c2
2017-05-11 https://testing.hpdd.intel.com/test_sets/68184eae-3677-11e7-b0a8-5254006e85c2
2017-05-23 https://testing.hpdd.intel.com/test_sets/b36b39a6-3fba-11e7-91f3-5254006e85c2
2017-05-23 https://testing.hpdd.intel.com/test_sets/157936d2-3fd6-11e7-b3f6-5254006e85c2
2017-06-28 https://testing.hpdd.intel.com/test_sets/f7025162-5bc7-11e7-9221-5254006e85c2


Generated at Sat Feb 10 02:28:52 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.