[LU-14674] test: wrong path of set_param -P for enabling/disabling quota type Created: 06/May/21  Updated: 12/May/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Li Xi Assignee: Li Xi
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When I tried to find examples of using "lctl set_param -P" to enable/disable quota types in test scripts, I found the script of lustre/tests/sanity-quota.sh is wrong.
Wrong:

osd-*.$FSNAME-MDT*.quota_slave.enable

Correct:

osd-*.$FSNAME-MDT*.quota_slave.enabled


 Comments   
Comment by Gerrit Updater [ 06/May/21 ]

Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/43569
Subject: LU-14674 test: wrong path of enabling quota types
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4ba726a711b8e37ded911af8aa72cff3e12bada1

Comment by Gerrit Updater [ 07/May/21 ]

Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/43581
Subject: LU-14674 test: change PERM_CMD to "lctl set_param -P"
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6c7815348bbe3a07cac29525828ac0819711e4f2

Comment by Li Xi [ 12/May/21 ]

Following codes of conf-sanity.sh has problem, since "os[cp].$FSNAME-OST0001-osc-[^M]*.active" is not equal to "$FSNAME-OST0001.osc.active". The later one sets osc.lustre-OST0001-osc-MDT0000.active too, but the former one doesnot. That is the reason of failure on https://testing.whamcloud.com/test_sets/8c16a613-d819-48f1-b698-095a4fe46acd

test_29() {
        [ "$OSTCOUNT" -lt "2" ] && skip_env "needs >= 2 OSTs"
        setup_noconfig > /dev/null 2>&1
        start_ost2 || error "Unable to start OST2"
        sleep 10

        local PARAM="$FSNAME-OST0001.osc.active"
        # With lctl set_param -P the value $PROC_ACT will be sent to
        # all nodes. The [!M] filter out the ability to set active
        # on the MDS servers which is tested with wait_osp_* below.
        # For ost_server_uuid that only exist on client so filtering
        # is safe.
        local PROC_ACT="os[cp].$FSNAME-OST0001-osc-[^M]*.active"
        local PROC_UUID="os[cp].$FSNAME-OST0001-osc-[^M]*.ost_server_uuid"
Generated at Sat Feb 10 03:11:48 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.