]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/test_ceph_daemon.sh: fix overwrites of temp files
authorSage Weil <sage@redhat.com>
Wed, 20 Nov 2019 02:41:17 +0000 (20:41 -0600)
committerSage Weil <sage@redhat.com>
Thu, 21 Nov 2019 00:27:31 +0000 (18:27 -0600)
mktemp creates these files, so we have to pass --allow-overwrite (or
delete them after we get the unique name but before we write to them--this
is easier).

Broken by c7fe27a72a61d1345a66b8830fd17e7b922abd44

Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/test_ceph_daemon.sh

index 23d42df38474d8ee9b95151db8bd10a5a868ae6b..7511437107e88d82109647001bf52722b28efcad 100755 (executable)
@@ -105,7 +105,8 @@ $SUDO $CEPH_DAEMON --image $IMAGE_MASTER bootstrap \
       --fsid $FSID \
       --config $ORIG_CONFIG \
       --output-config $CONFIG \
-      --output-keyring $KEYRING
+      --output-keyring $KEYRING \
+      --allow-overwrite
 test -e $CONFIG
 test -e $KEYRING
 rm -f $ORIG_CONFIG