Bug 1872879

Summary: Allow mapping and unmapping rbd images from a container without --net=host
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jason Dillaman <jdillama>
Component: RBDAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: julpark
Severity: high Docs Contact: Ranjini M N <rmandyam>
Priority: unspecified    
Version: 4.2CC: asakthiv, ceph-eng-bugs, gpatta, idryomov, rmandyam, shan, tserlin, vereddy
Target Milestone: ---   
Target Release: 4.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-12 14:56:50 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: 1890121    

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