Description of problem: Only rbd-nbd CLI supports attach and detach operations, this should be exported at rbd integrated CLI Example: $ rbd device attach rbd-pool/image --device /dev/nbd0 --device-type nbd --force $ rbd device detach rpool/image --device-type nbd Version-Release number of selected component (if applicable): How reproducible: 100% Additional info: Fix: https://github.com/ceph/ceph/pull/41279
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
Working as expected. Moving this bug to verified state. [root@ceph-gpatta-eifeaq-node1-installer cephuser]# rbd device map -t nbd --options try-netlink rbd-nbd-pool/rbd-nbd-image /dev/nbd0 [root@ceph-gpatta-eifeaq-node1-installer cephuser]# rbd device detach -t nbd rbd-nbd-pool/rbd-nbd-image [root@ceph-gpatta-eifeaq-node1-installer cephuser]# rbd device attach rbd-nbd-pool/rbd-nbd-image -t nbd --device /dev/nbd0 --force /dev/nbd0 [root@ceph-gpatta-eifeaq-node1-installer cephuser]# rbd device detach rbd-nbd-pool/rbd-nbd-image --device-type nbd [root@ceph-gpatta-eifeaq-node1-installer cephuser]# rbd device unmap -t nbd rbd-nbd-pool/rbd-nbd-image rbd-nbd: rbd-nbd-pool/rbd-nbd-image is not mapped rbd: rbd-nbd failed with error: /usr/bin/rbd-nbd: exit status: 1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, and Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:1174