From: Prasanna Kumar Kalever Date: Tue, 25 May 2021 12:24:29 +0000 (+0530) Subject: qa/workunits/rbd: use rbd cli for device attach/detach commands X-Git-Tag: v17.1.0~1821^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41279%2Fhead;p=ceph.git qa/workunits/rbd: use rbd cli for device attach/detach commands Signed-off-by: Prasanna Kumar Kalever --- diff --git a/qa/workunits/rbd/rbd-nbd.sh b/qa/workunits/rbd/rbd-nbd.sh index d98a63ca6693..262cddb9abc4 100755 --- a/qa/workunits/rbd/rbd-nbd.sh +++ b/qa/workunits/rbd/rbd-nbd.sh @@ -346,13 +346,14 @@ expect_false grep 'quiesce failed' ${LOG_FILE} DEV=`_sudo rbd device --device-type nbd --options try-netlink map ${POOL}/${IMAGE}` get_pid ${POOL} _sudo mount ${DEV} ${TEMPDIR}/mnt -_sudo rbd-nbd detach ${POOL}/${IMAGE} +_sudo rbd device detach ${POOL}/${IMAGE} --device-type nbd expect_false get_pid ${POOL} -_sudo rbd-nbd attach --device ${DEV} ${POOL}/${IMAGE} +expect_false _sudo rbd device attach --device ${DEV} ${POOL}/${IMAGE} --device-type nbd +_sudo rbd device attach --device ${DEV} ${POOL}/${IMAGE} --device-type nbd --force get_pid ${POOL} -_sudo rbd-nbd detach ${DEV} +_sudo rbd device detach ${DEV} --device-type nbd expect_false get_pid ${POOL} -_sudo rbd-nbd attach --device ${DEV} ${POOL}/${IMAGE} +_sudo rbd device attach --device ${DEV} ${POOL}/${IMAGE} --device-type nbd --force get_pid ${POOL} ls ${TEMPDIR}/mnt/ dd if=${TEMPDIR}/mnt/test of=/dev/null bs=1M count=1