Bug 1315962 - Fsgroup does not work for gitrepo volume
Summary: Fsgroup does not work for gitrepo volume
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: Chao Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-09 07:15 UTC by Chao Yang
Modified: 2017-08-16 19:51 UTC (History)
10 users (show)

Fixed In Version: atomic-openshift-node-3.4.1.42-1.git.0.e775fe2.el7.x86_64
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-08-10 05:15:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
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 Chao Yang 2016-03-09 07:15:07 UTC
Description of problem:
Fsgroup does not work for gitrepo volume

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

openshift v3.1.1.911
kubernetes v1.2.0-alpha.7-703-gbc4550d
etcd 2.2.5
How reproducible:
Always


Steps to Reproduce:
1.Create a pod
oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/persistent-volumes/gitrepo/gitrepo-selinux-fsgroup-test.json

2.Check pod status
NAME      READY     STATUS    RESTARTS   AGE
gitrepo   1/1       Running   0          3h

3.
/mnt/git $ id
uid=1000050000 gid=0(root) groups=123456
/mnt/git $ ls -lrt
total 0
drwxr-xr-x    3 root     root            48 Mar  8 02:41 gitrepoVolume
/mnt/git $ touch gitrepoVolume/file1
touch: gitrepoVolume/file1: Permission denied


Actual results:
group is root in the pod gitrepo

Expected results:
group id should be 123456 in the pod gitrepo



Additional info:

Comment 1 Sami Wagiaalla 2016-03-15 15:18:24 UTC
The gitrepo volume does not support ownership management. This works as expected.

Comment 2 Sami Wagiaalla 2016-03-15 15:55:46 UTC
my mistake.. it should work

Comment 4 Jeff Vance 2016-03-17 01:58:42 UTC
Just a comment related to fsGroup: 123456, and I'm not sure if the ceph-rbd plugin I used to test this supports changing the container's GID, but:

When I define fsGroup in the pod spec which uses a ceph-rbd block volume, the resulting container's GID is 0 and the fsGroup is added to the container's supplemental gids.

Comment 5 Matthew Wong 2016-08-08 21:14:38 UTC
Can't reproduce in kubernetes 1.3 looks like it was fixed by https://github.com/kubernetes/kubernetes/pull/22995

Comment 6 Jan Safranek 2017-06-28 15:13:12 UTC
I think this bug has been fixed a long time ago, at least I cannot reproduce it in atomic-openshift-node-3.4.1.42-1.git.0.e775fe2.el7.x86_64. Moving to QA to verify it in 3.6.

Comment 9 Chao Yang 2017-07-24 06:22:42 UTC
It is passed on
oc v3.6.153
kubernetes v1.6.1+5115d708d7

Comment 11 errata-xmlrpc 2017-08-10 05:15:47 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.