Bug 1380417 - The gitlab container is trying to run 'chcon' which will not work on the nfs volume.
Summary: The gitlab container is trying to run 'chcon' which will not work on the nfs ...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: Wang Haoran
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-29 14:29 UTC by Miheer Salunke
Modified: 2020-01-17 15:58 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-02 14:28:04 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Miheer Salunke 2016-09-29 14:29:38 UTC
Description of problem:

The gitlab container is trying to run 'chcon' which will not work on the nfs volume.

This is the URL of red hat 's blog we followed to install gitlab; we followed the path with a dedicated serviceaccount
https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift-cluster/

which didn't help. We got error as per attached gitlab_error.txt
Their dc at that time gitlabdc.yaml


Then we gave to the gitlab serviceaccount (the one the container is running with) the privileged right instead of the original anyuid we used before, and changing the deployment adding securityContext: privileged: true. In this way we still have an error of selinux (a different one). See gitlab_priv_err.txt

Still the container does not start because it tries to change access permissions to files but since the used volumes are NFS (nonrootsquash set in the export), the operation is not permitted.
The strange thing is that it worked before the shutdown with anyuid, so I don't know if it is the right path to follow; it seems that rights have in some ways changed.
Attached you find the log of the container and the output of the "oc describe scc" command (if it may help).
oc_describe_scc.txt 




But what I don't understand is why it worked on march (when we first installed gitlab) just following the instructions in the above link using anyuid instead of privileged


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

How reproducible:
Always 

Steps to Reproduce:
1.Mentioned in the description
2.
3.

Actual results:
gitlab pod does not get created successfully using https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift-cluster/

Expected results:
gitlab pod shall be created successfully using https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift-cluster/

Additional info:

Comment 6 Cesar Wong 2016-09-30 03:31:06 UTC
Miheer, can you check what version of gitlab is being installed? And if earlier than 8.12, can they try 8.12?


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