Whamcloud - gitweb
LU-14658 tests: fix conf-sanity 122b test 73/46873/2
authorAlexander Boyko <alexander.boyko@hpe.com>
Mon, 13 Dec 2021 20:00:48 +0000 (15:00 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jun 2022 03:07:43 +0000 (03:07 +0000)
commit3f18d493c0aca46982596fefcc798811680d2bd1
tree6285d0462be8807aac4df56824ea9c63dc042258
parente8bcb58be20ec2d7d2d0830238d5d66ccde6f5ce
LU-14658 tests: fix conf-sanity 122b test

Sometimes the test 122b failed with:
dd: failed to open '/mnt/lustre/d122b.conf-sanity/f122b.conf-sanity':
Numerical result out of range

ZFS readonly simulation produces OS_STATFS_READONLY flag.
It leads to zero stripe_count at lod_get_stripe_count(), and
lod_qos_prep_create() returns -34(ERANGE).

The patch fixes it by file creation before replay_barrier.

Lustre-change: https://review.whamcloud.com/46864
Lustre-commit: 853d5e4a25f393033b132659d24b7aad6916e3b8

Test-Parameters: trivial fstype=zfs env=ONLY=122b,ONLY_REPEAT=4 testlist=conf-sanity
Fixes: 747fed818be5 ("LU-14598 ofd: fix for IDIF sequence at ofd_preprw_write")
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: I7ec04ffe09d0038bcf99e1a571f14d2bfb6a5df5
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Reviewed-by: Elena Gryaznova <elena.gryaznova@hpe.com>
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46873
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh