Bug 2017620
Summary: | rbd-nbd: generate and send device cookie with netlink connect request | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Prasanna Kumar Kalever <prasanna.kalever> |
Component: | RBD | Assignee: | Ilya Dryomov <idryomov> |
Status: | CLOSED ERRATA | QA Contact: | Preethi <pnataraj> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.1 | CC: | ceph-eng-bugs, ceph-qe-bugs, tserlin |
Target Milestone: | --- | ||
Target Release: | 5.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ceph-16.2.7-48.el8cp | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-04-04 10:22:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1851289 |
Description
Prasanna Kumar Kalever
2021-10-27 03:09:09 UTC
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 . Verified with the below kernel and ceph versions [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device -t nbd map test/image2 --options try-netlink --show-cookie /dev/nbd0 5e4e3320-24ee-4948-a670-20387a75d8cc [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device detach -t nbd test/image2 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device attach -t nbd --device /dev/nbd0 test/image2 rbd: could not validate attach request rbd: mismatching the image and the device may lead to data corruption rbd: must specify --cookie <arg> or --force to proceed [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device attach -t nbd --device /dev/nbd0 --cookie 5e4e3320-24ee-4948-a670-20387a75d8cc test/image2 /dev/nbd0 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device detach -t nbd test/image2 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device attach -t nbd --device /dev/nbd0 --cookie 5e4e3320-24ee-4948-a670-20387a75d8dd test/image2 rbd-nbd: cookie mismatch rbd: rbd-nbd failed with error: /usr/bin/rbd-nbd: exit status: 1 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device attach -t nbd --device /dev/nbd0 --cookie 5e4e3320-24ee-4948-a670-20387a75d8cc test/image2 /dev/nbd0 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# rbd device unmap -t nbd test/image2 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# [root@ceph-scale-test-1gjvin-node1-installer cephuser]# worked as expected from step1 to step7 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# uname -r 4.18.0-368.el8.x86_64 [root@ceph-scale-test-1gjvin-node1-installer cephuser]# ceph version ceph version 16.2.7-65.el8cp (499bc1e23ab4671631da5affff6e1c772b8fe42d) pacific (stable) [root@ceph-scale-test-1gjvin-node1-installer cephuser]# 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 |