Whamcloud - gitweb
LU-10617 tests: Dir's and file's stripe counts are mismatched 93/31193/3
authorElena Gryaznova <c17455@cray.com>
Tue, 13 Feb 2018 18:17:01 +0000 (21:17 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 27 Feb 2018 03:47:40 +0000 (03:47 +0000)
the case when stripe count of dir equals to -1 and files
in the dir must be equal to ost count added into
the test_24 of ost-pool.sh

Author: Alyona Romanenko <alyona.romanenko@seagate.com>

Signed-off-by: Alyona Romanenko <alyona.romanenko@seagate.com>
Signed-off-by: Elena Gryaznova <c17455@cray.com>
Test-Parameters: trivial testlist=ost-pools envdefinitions="ONLY=24"
Cray-bug-id: LUS-4467
Seagate-bug-id: MRP-2746
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Change-Id: I91e7c65e178c7706f53a95a2807e06b1bc8e0d24
Reviewed-on: https://review.whamcloud.com/31193
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/ost-pools.sh

index 2ff5084..9915e07 100755 (executable)
@@ -1431,7 +1431,13 @@ test_24() {
                        [[ "$pool" != "$pool1" ]] &&
                                error "Pool '$pool' not on $file:$pool1"
                        [[ "$count" != "$count1" ]] &&
-                               error "Stripe count $count not on $file:$count1"
+                               [[ "$count" != "-1" ]] &&
+                                       error "Stripe count $count not on"\
+                                               "$file:$count1"
+                       [[ "$count1" != "$OSTCOUNT" ]] &&
+                               [[ "$count" = "-1" ]] &&
+                                       error "Stripe count $count1 not on"\
+                                               "$file:$OSTCOUNT"
                        [[ "$size" != "$size1" ]] && [[ "$size" != "0" ]] &&
                                error "Stripe size $size not on $file:$size1"
                done