Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1445526 - [3.6] Subpath does not receive right permissions
[3.6] Subpath does not receive right permissions
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage (Show other bugs)
3.6.0
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Paul Morie
Wenqi He
:
Depends On: 1445523
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-25 17:24 EDT by Paul Morie
Modified: 2017-08-16 15 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1445523
Environment:
Last Closed: 2017-08-10 01:21:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github kubernetes/kubernetes/issues/41638 None None None 2017-04-25 17:27 EDT
Github openshift/origin/pull/13895 None None None 2017-04-25 17:28 EDT
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Paul Morie 2017-04-25 17:24:49 EDT
+++ 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 17:27:07 EDT
3.6 PR 
https://github.com/openshift/origin/pull/13895
Comment 3 Wenqi He 2017-06-13 03:38:36 EDT
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 01:21:25 EDT
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.