| Summary: | Integrated Docker Registry That Mounts an NFS volume needs to run as privileged | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Dave Sullivan <dsulliva> |
| Component: | Documentation | Assignee: | Vikram Goyal <vigoyal> |
| Status: | CLOSED WONTFIX | QA Contact: | Vikram Goyal <vigoyal> |
| Severity: | medium | Docs Contact: | Vikram Goyal <vigoyal> |
| Priority: | medium | ||
| Version: | 3.2.1 | CC: | aos-bugs, bmcelvee, jokerman, mmccomas, rhowe, tohughes |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-24 15:57:41 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: | |
|
Description
Dave Sullivan
2016-09-19 20:31:26 UTC
I'm curious if ansible registry setup has capabilities to handle this? Will have to look. We do this automatically for 3.1 versions: https://github.com/openshift/openshift-ansible/blob/master/playbooks/common/openshift-cluster/openshift_hosted.yml#L42-L49 -TASK where we add the the registry and router SA to priv scc: https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_serviceaccounts/tasks/main.yml#L27-L34 In 3.3 does the `oadm router` command add its SA to the right SCC or is it bootstrapped? (I also might be missing somthing in the installer that does it only for the router) This is a DOCS issue most likely as the registry can run as restricted but if you wish to directly mount a volume not using a PV or PVC then you will need to add the SA of the registry to a SCC that has the permissions to do so. Instead of adding it to privledged we should add it to hostmount-anyuid # oadm policy add-scc-to-user hostmount-anyuid \ system:serviceaccount:default:registry The release note that describes what changed with SCC and volumes : https://docs.openshift.com/enterprise/3.2/release_notes/ose_3_2_release_notes.html#ose-32-security |