Bug 1872879 - Allow mapping and unmapping rbd images from a container without --net=host
Summary: Allow mapping and unmapping rbd images from a container without --net=host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.2
Assignee: Ilya Dryomov
QA Contact: julpark
Ranjini M N
URL:
Whiteboard:
Depends On:
Blocks: 1890121
TreeView+ depends on / blocked
 
Reported: 2020-08-26 19:17 UTC by Jason Dillaman
Modified: 2021-06-09 16:16 UTC (History)
8 users (show)

Fixed In Version: ceph-14.2.11-33.el8cp, ceph-14.2.11-33.el7cp
Doc Type: Enhancement
Doc Text:
.New option `-o noudev` to run commands from a custom network namespace on rbd kernel client Previously, the commands like `rbd map` and `rbd unmap` from a custom network namespace on the rbd kernel client would hang until manual intervention. With this release, adding the option `o -noudev` to commands like `rbd map -o noudev` and `rbd unmap -o noudev` works as expected. This is particularly useful when using Multus instead of the default OpenShift SDN for networking in OCP.
Clone Of:
Environment:
Last Closed: 2021-01-12 14:56:50 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 47128 0 None None None 2020-08-26 19:17:50 UTC
Red Hat Product Errata RHSA-2021:0081 0 None None None 2021-01-12 14:57:12 UTC

Description Jason Dillaman 2020-08-26 19:17:50 UTC
Description of problem:
Allow mapping and unmapping rbd images from a container without --net=host, in a custom network namespace (e.g. when using Multus CNI). OCS will require the ability to run the ceph-csi without host networking.

Version-Release number of selected component (if applicable):
4.x

How reproducible:
100%

Steps to Reproduce:
1. Attempt to map an RBD image using the ceph-csi without host networking

Actual results:
"rbd map" will hang when not using host networking


Expected results:
"rbd map" should properly function

Additional info:

Comment 2 Sébastien Han 2020-09-23 10:19:18 UTC
Can we move forward with this? 4.2 freeze was yesterday and this is a must-have for OCS 4.7 as mentioned by Jason.

Comment 3 Sébastien Han 2020-09-23 13:23:55 UTC
@Jason Status: ASSIGNED → MODIFIED, does that mean you did backport in 4.2 downstream branch?
Thanks

Comment 8 julpark 2020-11-09 08:57:13 UTC
"rbd map" works properly in network namespace environment.

Comment 14 errata-xmlrpc 2021-01-12 14:56:50 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 (Important: Red Hat Ceph Storage 4.2 Security 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-2021:0081


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