mirror of
https://github.com/ceph/ceph
synced 2025-01-11 13:41:02 +00:00
qa/workunits/rbd: delete pools before stopping rbd-mirror
This better mimics the behavior of teuthology and tests rbd-mirror daemon's ability to handle a pool deletion. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
dddb858f5d
commit
9d694ba351
@ -323,6 +323,11 @@ cleanup()
|
||||
if [ -z "${RBD_MIRROR_NOCLEANUP}" ]; then
|
||||
local cluster instance
|
||||
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER1} osd pool rm ${POOL} ${POOL} --yes-i-really-really-mean-it
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER2} osd pool rm ${POOL} ${POOL} --yes-i-really-really-mean-it
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER1} osd pool rm ${PARENT_POOL} ${PARENT_POOL} --yes-i-really-really-mean-it
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER2} osd pool rm ${PARENT_POOL} ${PARENT_POOL} --yes-i-really-really-mean-it
|
||||
|
||||
for cluster in "${CLUSTER1}" "${CLUSTER2}"; do
|
||||
stop_mirrors "${cluster}"
|
||||
done
|
||||
@ -331,11 +336,6 @@ cleanup()
|
||||
cd ${CEPH_ROOT}
|
||||
CEPH_ARGS='' ${CEPH_SRC}/mstop.sh ${CLUSTER1}
|
||||
CEPH_ARGS='' ${CEPH_SRC}/mstop.sh ${CLUSTER2}
|
||||
else
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER1} osd pool rm ${POOL} ${POOL} --yes-i-really-really-mean-it
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER2} osd pool rm ${POOL} ${POOL} --yes-i-really-really-mean-it
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER1} osd pool rm ${PARENT_POOL} ${PARENT_POOL} --yes-i-really-really-mean-it
|
||||
CEPH_ARGS='' ceph --cluster ${CLUSTER2} osd pool rm ${PARENT_POOL} ${PARENT_POOL} --yes-i-really-really-mean-it
|
||||
fi
|
||||
test "${RBD_MIRROR_TEMDIR}" = "${TEMPDIR}" || rm -Rf ${TEMPDIR}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user