Whamcloud - gitweb
LU-15007 tests: quota enable cmd fix 19/44919/4
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Mon, 13 Sep 2021 05:46:58 +0000 (08:46 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Sep 2021 04:45:05 +0000 (04:45 +0000)
the tunable should be osd-*.*.quota_slave.enabled
not osd-*.*.quota_slave.enable.

Fixes: b9c359a70d ("LU-7004 tests: move from lctl conf_param to lctl set_param -P")

Test-Parameters: trivial testlist=ost-pools,sanity-quota
HPE-bug-id: LUS-10413
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I321436520ab48eff4bcc93611a0ada68fa33205e
Reviewed-on: https://review.whamcloud.com/44919
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/ost-pools.sh
lustre/tests/sanity-quota.sh
lustre/tests/test-framework.sh

index 5c910e3..d99578b 100755 (executable)
@@ -1250,7 +1250,7 @@ test_23a() {
        else
                if [[ $PERM_CMD == *"set_param -P"* ]]; then
                        do_facet mgs $PERM_CMD \
-                               osd-*.$FSNAME-OST*.quota_slave.enable=ug
+                               osd-*.$FSNAME-OST*.quota_slave.enabled=ug
                else
                        do_facet mgs $PERM_CMD $FSNAME.quota.ost=ug
                fi
@@ -1325,7 +1325,7 @@ test_23b() {
        else
                if [[ $PERM_CMD == *"set_param -P"* ]]; then
                        do_facet mgs $PERM_CMD \
-                               osd-*.$FSNAME-OST*.quota_slave.enable=none
+                               osd-*.$FSNAME-OST*.quota_slave.enabled=none
                else
                        do_facet mgs $PERM_CMD $FSNAME.quota.ost=none
                fi
index a0c987d..11cdb5f 100755 (executable)
@@ -216,7 +216,7 @@ set_mdt_qtype() {
 
        if [[ $PERM_CMD == *"set_param -P"* ]]; then
                do_facet mgs $PERM_CMD \
-                       osd-*.$FSNAME-MDT*.quota_slave.enable=$qtype
+                       osd-*.$FSNAME-MDT*.quota_slave.enabled=$qtype
        else
                do_facet mgs $PERM_CMD $FSNAME.quota.mdt=$qtype
        fi
@@ -246,7 +246,7 @@ set_ost_qtype() {
 
        if [[ $PERM_CMD == *"set_param -P"* ]]; then
                do_facet mgs $PERM_CMD \
-                       osd-*.$FSNAME-OST*.quota_slave.enable=$qtype
+                       osd-*.$FSNAME-OST*.quota_slave.enabled=$qtype
        else
                do_facet mgs $PERM_CMD $FSNAME.quota.ost=$qtype
        fi
index 6eb29a3..c507425 100755 (executable)
@@ -2205,7 +2205,7 @@ restore_quota() {
        if [ "$old_MDT_QUOTA_TYPE" ]; then
                if [[ $PERM_CMD == *"set_param -P"* ]]; then
                        do_facet mgs $PERM_CMD \
-                               osd-*.$FSNAME-MDT*.quota_slave.enable = \
+                               osd-*.$FSNAME-MDT*.quota_slave.enabled = \
                                $old_MDT_QUOTA_TYPE
                else
                        do_facet mgs $PERM_CMD \
@@ -2215,7 +2215,7 @@ restore_quota() {
        if [ "$old_OST_QUOTA_TYPE" ]; then
                if [[ $PERM_CMD == *"set_param -P"* ]]; then
                        do_facet mgs $PERM_CMD \
-                               osd-*.$FSNAME-OST*.quota_slave.enable = \
+                               osd-*.$FSNAME-OST*.quota_slave.enabled = \
                                $old_OST_QUOTA_TYPE
                else
                        do_facet mgs $LCTL conf_param \
@@ -2277,9 +2277,9 @@ setup_quota(){
 
        if [[ $PERM_CMD == *"set_param -P"* ]]; then
                do_facet mgs $PERM_CMD \
-                       osd-*.$FSNAME-MDT*.quota_slave.enable=$QUOTA_TYPE
+                       osd-*.$FSNAME-MDT*.quota_slave.enabled=$QUOTA_TYPE
                do_facet mgs $PERM_CMD \
-                       osd-*.$FSNAME-OST*.quota_slave.enable=$QUOTA_TYPE
+                       osd-*.$FSNAME-OST*.quota_slave.enabled=$QUOTA_TYPE
        else
                do_facet mgs $PERM_CMD $FSNAME.quota.mdt=$QUOTA_TYPE ||
                        error "set mdt quota type failed"