Bug 1581614 - iSCSI PersistentVolumes in VolumeMode=Block are not mapped to container
Summary: iSCSI PersistentVolumes in VolumeMode=Block are not mapped to container
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 3.10.z
Assignee: Mrunal Patel
QA Contact: weiwei jiang
URL:
Whiteboard:
Depends On: 1568028
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-23 08:45 UTC by Qin Ping
Modified: 2019-11-20 18:52 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1568028
Environment:
Last Closed: 2019-11-20 18:52:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Qin Ping 2018-05-23 08:46:44 UTC
In openshift 3.10 iscsi volume still can not be mapped into container.

Comment 4 Qin Ping 2018-05-25 07:08:36 UTC
Tried to reproduce it in:
oc v3.10.0-0.51.0
kubernetes v1.10.0+b81c8f8
openshift v3.10.0-0.51.0

And it is worked now.

Comment 13 Tomas Smetana 2018-06-29 14:49:07 UTC
Based on the comment #7 and comment #11 this looks to be a container runtime issue.

Comment 15 Fabio Bertinatto 2019-11-08 13:30:06 UTC
Currently it's not possible to map a device in a privileged docker container:

$ docker run -w /opt  --rm -it --device=/dev/console:/opt/10 busybox /bin/sh -c 'ls -l /opt/'
total 0
crw-------    1 root     root        5,   1 Nov  8 13:25 10

$ docker run --privileged -w /opt  --rm -it --device=/dev/console:/opt/10 busybox /bin/sh -c 'ls -l /opt/'
total 0

This is caused by the following docker issue:

https://github.com/moby/moby/issues/35991

There's an open PR to fix that, but it hasn't got much attention recently:

https://github.com/moby/moby/pull/36258

Comment 16 Fabio Bertinatto 2019-11-08 13:33:34 UTC
We haven't seen this problem with our CI (in 4.x, which uses a recent version of cri-o), so maybe switching to cri-o could be an alternative.

Since this is cause by Docker, assigning to Containers team.

Comment 17 Stephen Cuppett 2019-11-20 18:52:10 UTC
OCP 3.6-3.10 is no longer on full support [1]. Marking CLOSED DEFERRED. If you have a customer case with a support exception or have reproduced on 3.11+, please reopen and include those details. When reopening, please set the Target Release to the appropriate version where needed.

[1]: https://access.redhat.com/support/policy/updates/openshift


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