Bug 2017621 - rbd: promote rbd-nbd attach and detach at rbd integrated CLI
Summary: rbd: promote rbd-nbd attach and detach at rbd integrated CLI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 5.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 5.1
Assignee: Ilya Dryomov
QA Contact: Preethi
URL:
Whiteboard:
Depends On:
Blocks: 1851289
TreeView+ depends on / blocked
 
Reported: 2021-10-27 03:15 UTC by Prasanna Kumar Kalever
Modified: 2022-04-04 10:22 UTC (History)
4 users (show)

Fixed In Version: ceph-16.2.7-48.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-04 10:22:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-2107 0 None None None 2021-10-27 03:16:36 UTC
Red Hat Product Errata RHSA-2022:1174 0 None None None 2022-04-04 10:22:41 UTC

Description Prasanna Kumar Kalever 2021-10-27 03:15:49 UTC
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

Comment 1 RHEL Program Management 2021-10-27 03:15:55 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 9 Gopi 2022-02-16 13:26:48 UTC
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

Comment 11 errata-xmlrpc 2022-04-04 10:22:22 UTC
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


Note You need to log in before you can comment on or make changes to this bug.