mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #47796 from adk3798/test_cephadm_fix
qa/cephadm: remove fsid dir before bootstrap in test_cephadm.sh Reviewed-by: Redouane Kachach <rkachach@redhat.com>
This commit is contained in:
commit
e9a8fc8ecc
@ -180,6 +180,14 @@ $CEPHADM shell --fsid $FSID -e FOO=BAR -- printenv | grep FOO=BAR
|
||||
# test stdin
|
||||
echo foo | $CEPHADM shell -- cat | grep -q foo
|
||||
|
||||
# the shell commands a bit above this seems to cause the
|
||||
# /var/lib/ceph/<fsid> directory to be made. Since we now
|
||||
# check in bootstrap that there are no clusters with the same
|
||||
# fsid based on the directory existing, we need to make sure
|
||||
# this directory is gone before bootstrapping. We can
|
||||
# accomplish this with another rm-cluster
|
||||
$CEPHADM rm-cluster --fsid $FSID --force
|
||||
|
||||
## bootstrap
|
||||
ORIG_CONFIG=`mktemp -p $TMPDIR`
|
||||
CONFIG=`mktemp -p $TMPDIR`
|
||||
|
Loading…
Reference in New Issue
Block a user