Merge pull request #46869 from nmshelke/fix-56384

qa/workunits/cephtool: check_response didn't find erasure-code string

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by:  Laura Flores <lflores@redhat.com>
This commit is contained in:
Venky Shankar 2022-06-30 22:27:14 +05:30 committed by GitHub
commit 06c35ed791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1028,6 +1028,8 @@ function test_mon_mds()
ceph fs new $FS_NAME fs_metadata mds-ec-pool --force 2>$TMPFILE
check_response 'erasure-code' $? 22
ceph fs new $FS_NAME mds-ec-pool fs_data 2>$TMPFILE
check_response 'already used by filesystem' $? 22
ceph fs new $FS_NAME mds-ec-pool fs_data --force 2>$TMPFILE
check_response 'erasure-code' $? 22
ceph fs new $FS_NAME mds-ec-pool mds-ec-pool 2>$TMPFILE
check_response 'erasure-code' $? 22
@ -1067,8 +1069,12 @@ function test_mon_mds()
ceph fs new $FS_NAME fs_metadata mds-tier --force 2>$TMPFILE
check_response 'in use as a cache tier' $? 22
ceph fs new $FS_NAME mds-tier fs_data 2>$TMPFILE
check_response 'already used by filesystem' $? 22
ceph fs new $FS_NAME mds-tier fs_data --force 2>$TMPFILE
check_response 'in use as a cache tier' $? 22
ceph fs new $FS_NAME mds-tier mds-tier 2>$TMPFILE
check_response 'already used by filesystem' $? 22
ceph fs new $FS_NAME mds-tier mds-tier --force 2>$TMPFILE
check_response 'in use as a cache tier' $? 22
set -e
@ -1099,6 +1105,8 @@ function test_mon_mds()
# ...but not as the metadata pool
set +e
ceph fs new $FS_NAME mds-ec-pool fs_data 2>$TMPFILE
check_response 'already used by filesystem' $? 22
ceph fs new $FS_NAME mds-ec-pool fs_data --force 2>$TMPFILE
check_response 'erasure-code' $? 22
set -e