Bug 1445526 - [3.6] Subpath does not receive right permissions
Summary: [3.6] Subpath does not receive right permissions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: Wenqi He
URL:
Whiteboard:
Depends On: 1445523
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-25 21:24 UTC by Paul Morie
Modified: 2017-08-16 19:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1445523
Environment:
Last Closed: 2017-08-10 05:21:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubernetes kubernetes issues 41638 0 None None None 2017-04-25 21:27:07 UTC
Github openshift origin pull 13895 0 None None None 2017-04-25 21:28:20 UTC
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Paul Morie 2017-04-25 21:24:49 UTC
+++ This bug was initially created as a clone of Bug #1445523 +++

Description of problem:

If a subpath is used to mount a volume, the subpath may not receive correct permissions.

See: https://github.com/kubernetes/kubernetes/issues/41638

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

3.5

How reproducible:

Mount a volume via a subpath in the volumemount and try to write to it as a non-root user.

Actual results:

Not writable

Expected results:

Writable

Additional info:


Description of problem:

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

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

--- Additional comment from Eric Paris on 2017-04-25 17:23:28 EDT ---

3.5 PR
https://github.com/openshift/ose/pull/725

Comment 1 Eric Paris 2017-04-25 21:27:07 UTC
3.6 PR 
https://github.com/openshift/origin/pull/13895

Comment 3 Wenqi He 2017-06-13 07:38:36 UTC
Tested on below version:
openshift v3.6.105
kubernetes v1.6.1+5115d708d7

Subpath has the right permission:

/mnt $ ls -help
total 0
drwxrwsrwx    2 root     users          6 Tue Jun 13 07:26:13 2017 direct/
drwxrwsrwx    2 root     users          6 Tue Jun 13 07:26:15 2017 subpath/

Comment 5 errata-xmlrpc 2017-08-10 05:21:25 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/RHEA-2017:1716


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