From 11e287c137416c732ba9f437a645a287288e60cf Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 6 Feb 2018 13:31:01 -0600 Subject: [PATCH] qa/workunits/cephtool/test.sh: fix mon_caps Pass --no-mon-config so we don't get failed to fetch mon config (--no-mon-config to skip) instead. Signed-off-by: Sage Weil --- qa/workunits/cephtool/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index af7e691c5d440..dcd8fcbd18abc 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -682,7 +682,9 @@ function test_mon_caps() ceph-authtool $TEMP_DIR/ceph.client.bug.keyring -n client.bug --gen-key ceph auth add client.bug -i $TEMP_DIR/ceph.client.bug.keyring - rados lspools --keyring $TEMP_DIR/ceph.client.bug.keyring -n client.bug >& $TMPFILE || true + # pass --no-mon-config since we are looking for the permission denied error + rados lspools --no-mon-config --keyring $TEMP_DIR/ceph.client.bug.keyring -n client.bug >& $TMPFILE || true + cat $TMPFILE check_response "Permission denied" rm -rf $TEMP_DIR/ceph.client.bug.keyring @@ -692,7 +694,7 @@ function test_mon_caps() ceph-authtool $TEMP_DIR/ceph.client.bug.keyring -n client.bug --gen-key ceph-authtool -n client.bug --cap mon '' $TEMP_DIR/ceph.client.bug.keyring ceph auth add client.bug -i $TEMP_DIR/ceph.client.bug.keyring - rados lspools --keyring $TEMP_DIR/ceph.client.bug.keyring -n client.bug >& $TMPFILE || true + rados lspools --no-mon-config --keyring $TEMP_DIR/ceph.client.bug.keyring -n client.bug >& $TMPFILE || true check_response "Permission denied" } -- 2.39.5