Bug 1640746

Summary: RBD bind mount on RHEL does not transistively acquire _netdev from original mount
Product: OpenShift Container Platform Reporter: Hemant Kumar <hekumar>
Component: StorageAssignee: Hemant Kumar <hekumar>
Status: CLOSED ERRATA QA Contact: Wenqi He <wehe>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.11.0CC: amessina, aos-bugs, aos-storage-staff, bbennett, bchilds, ceph-eng-bugs, hekumar, idryomov, jhou, jsynacek, knakayam, kzak, systemd-maint-list, vumrao, wehe
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1631449 Environment:
Last Closed: 2018-12-12 14:15:51 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: 1613902, 1631449    
Bug Blocks:    

Comment 1 Hemant Kumar 2018-10-18 16:06:49 UTC
https://github.com/openshift/origin/pull/21296

Comment 5 Wenqi He 2018-12-05 11:15:52 UTC
Tested on below version:

openshift v3.11.50
kubernetes v1.11.0+d4cacc0

# uname -a
Linux ocp310.master.vsphere.local 3.10.0-862.3.2.el7.x86_64 #1 SMP Tue May 15 18:22:15 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.5 (Maipo)


# oc get pods
NAME      READY     STATUS    RESTARTS   AGE
rbdpd     1/1       Running   0          1m
rbdpd1    1/1       Running   0          1m
rbdpd2    1/1       Running   0          52s

# mount | grep rbd
/dev/rbd0 on /var/lib/origin/openshift.local.volumes/plugins/kubernetes.io/rbd/mounts/rbd-image-kubernetes-dynamic-pvc-fbca0525-f87c-11e8-b698-0050569f4627 type ext4 (rw,relatime,seclabel,stripe=1024,data=ordered,_netdev)
/dev/rbd0 on /var/lib/origin/openshift.local.volumes/pods/5424f8de-f87d-11e8-8870-0050569f4627/volumes/kubernetes.io~rbd/pvc-fb999415-f87c-11e8-8870-0050569f4627 type ext4 (rw,relatime,seclabel,stripe=1024,data=ordered,_netdev)
/dev/rbd1 on /var/lib/origin/openshift.local.volumes/plugins/kubernetes.io/rbd/mounts/rbd-image-kubernetes-dynamic-pvc-0d4d0e95-f87d-11e8-b698-0050569f4627 type ext4 (rw,relatime,seclabel,stripe=1024,data=ordered,_netdev)
/dev/rbd1 on /var/lib/origin/openshift.local.volumes/pods/6055aec8-f87d-11e8-8870-0050569f4627/volumes/kubernetes.io~rbd/pvc-0d46838e-f87d-11e8-8870-0050569f4627 type ext4 (rw,relatime,seclabel,stripe=1024,data=ordered,_netdev)
/dev/rbd2 on /var/lib/origin/openshift.local.volumes/plugins/kubernetes.io/rbd/mounts/rbd-image-kubernetes-dynamic-pvc-1839e7a9-f87d-11e8-b698-0050569f4627 type ext4 (rw,relatime,seclabel,stripe=1024,data=ordered,_netdev)
/dev/rbd2 on /var/lib/origin/openshift.local.volumes/pods/6c9217d4-f87d-11e8-8870-0050569f4627/volumes/kubernetes.io~rbd/pvc-1835dda6-f87d-11e8-8870-0050569f4627 type ext4 (rw,relatime,seclabel,stripe=1024,data=ordered,_netdev)

Then reboot the node, node can be rebooted smoothly.
#last reboot | head -1
reboot   system boot  3.10.0-862.3.2.e Wed Dec  5 06:10 - 06:15  (00:04)

Comment 7 errata-xmlrpc 2018-12-12 14:15:51 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, 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/RHBA-2018:3743