From ae8a0dcebd21ede42aad656ba0937058de58b0bc Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Mon, 6 Jun 2022 16:03:08 -0600 Subject: [PATCH] src/stop.sh: add `sudo` to `cephadm ls` command cephadm must be run as root create a list of daemons to stop from an existing vstart cluster Fixes: https://tracker.ceph.com/issues/55902 Signed-off-by: Michael Fritch --- src/stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stop.sh b/src/stop.sh index 1f65ea2f33b..6a3caae711f 100755 --- a/src/stop.sh +++ b/src/stop.sh @@ -189,7 +189,7 @@ if [ $stop_all -eq 1 ]; then fi fi - daemons="$($CEPHADM_DIR_PATH/cephadm ls 2> /dev/null)" + daemons="$(sudo $CEPHADM_DIR_PATH/cephadm ls 2> /dev/null)" if [ $? -eq 0 -a "$daemons" != "[]" ]; then do_killcephadm fi -- 2.47.3