From 3dec530de6d0c1a71ab206228b23ac57cfe0b420 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 19 Jul 2013 21:50:06 -0700 Subject: [PATCH] qa/workunits/mon/caps.sh: clean up users; rename Signed-off-by: Sage Weil --- qa/workunits/mon/{caps_madness.sh => caps.sh} | 5 +++++ 1 file changed, 5 insertions(+) rename qa/workunits/mon/{caps_madness.sh => caps.sh} (95%) diff --git a/qa/workunits/mon/caps_madness.sh b/qa/workunits/mon/caps.sh similarity index 95% rename from qa/workunits/mon/caps_madness.sh rename to qa/workunits/mon/caps.sh index 07a45756c1cc..f5aebbbb9f46 100755 --- a/qa/workunits/mon/caps_madness.sh +++ b/qa/workunits/mon/caps.sh @@ -26,6 +26,7 @@ expect() expect "ceph auth get-or-create client.bazar > $tmp.bazar.keyring" 0 expect "ceph -k $tmp.bazar.keyring --user bazar mon_status" 13 +ceph auth del client.bazar c="'allow command \"auth list\", allow command mon_status'" expect "ceph auth get-or-create client.foo mon $c > $tmp.foo.keyring" 0 @@ -36,6 +37,7 @@ expect "ceph -k $tmp.foo.keyring --user foo auth del client.bazar" 13 expect "ceph -k $tmp.foo.keyring --user foo osd dump" 13 expect "ceph -k $tmp.foo.keyring --user foo pg dump" 13 expect "ceph -k $tmp.foo.keyring --user foo quorum_status" 13 +ceph auth del client.foo c="'allow command service with prefix=list, allow command mon_status'" expect "ceph auth get-or-create client.bar mon $c > $tmp.bar.keyring" 0 @@ -46,5 +48,8 @@ expect "ceph -k $tmp.bar.keyring --user bar auth del client.foo" 13 expect "ceph -k $tmp.bar.keyring --user bar osd dump" 13 expect "ceph -k $tmp.bar.keyring --user bar pg dump" 13 expect "ceph -k $tmp.bar.keyring --user bar quorum_status" 13 +ceph auth del client.bar rm $tmp.bazar.keyring $tmp.foo.keyring $tmp.bar.keyring + +echo OK \ No newline at end of file -- 2.47.3