Bug 1279744
Summary: | postgresql-92-rhel7 cannot startup on AEP env | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Wang Haoran <haowang> |
Component: | Storage | Assignee: | Paul Morie <pmorie> |
Status: | CLOSED ERRATA | QA Contact: | Liang Xia <lxia> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0.0 | CC: | aos-bugs, bleanhar, bparees, jokerman, mmccomas, pruan, sdodson |
Target Milestone: | --- | Keywords: | UpcomingRelease |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | atomic-openshift-3.1.0.4-1.git.0.064715c.el7aos | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-01-26 19:17:10 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: | |
Embargoed: |
Description
Wang Haoran
2015-11-10 07:53:48 UTC
Version-Release number of selected component (if applicable): openshift v3.1.0.3 kubernetes v1.1.0-origin-1107-g4c8e6f4 oc v3.1.0.3 openshift3/postgresql-92-rhel7 c10e6b2e643e There is different behavior occuring for creating directories in an EmptyDir volume vs Ephemeral storage. EmptyDir volumes are getting a different default permission set and group ownership: /var/lb/pgsql/data (not a typo) is mounted as EmptyDir: bash-4.2$ mkdir /var/lb/pgsql/data/newdata bash-4.2$ ls -l /var/lb/pgsql/data/ total 8 drwxr-sr-x. 2 1000040000 1000040000 4096 Nov 10 19:21 newdata /var/lib/pgsql/data is ephemeral storage: bash-4.2$ mkdir /var/lib/pgsql/data/newdata bash-4.2$ ls -l /var/lib/pgsql/data/ total 8 drwxr-xr-x. 2 1000040000 root 4096 Nov 10 19:18 newdata Having group-write permission on the created directory is causing postgres to throw an error (probably mysql and mongo too). We can possibly fix this in the images (modify the permissions after creating the dirs), but i'd like the storage team to take a look first to see if this is really how we want EmptyDir to behave (I assume/hope it doesn't match to how NFS behaves...) Reassigning to Paul Morie, as this is his feature and he understands the code. Confirmed setting the fsGroup and supplementalGroups to RunAsAny allows the postgres image to work with an EmptyDir again. The issue seen should be fixed with: https://github.com/openshift/origin/pull/5839 please open a new bug if not. I am leaving this bug to track the longer term issue raised here. Verified with version atomic-openshift-3.1.0.4-1.git.0.064715c.el7aos [root@openshift-137 ~]# oc get scc NAME PRIV CAPS HOSTDIR SELINUX RUNASUSER FSGROUP SUPGROUP PRIORITY anyuid false [] false MustRunAs RunAsAny RunAsAny RunAsAny 10 hostaccess false [] true MustRunAs MustRunAsRange RunAsAny RunAsAny <none> hostmount false [] true MustRunAs MustRunAsRange RunAsAny RunAsAny <none> nonroot false [] false MustRunAs MustRunAsNonRoot RunAsAny RunAsAny <none> privileged true [] true RunAsAny RunAsAny RunAsAny RunAsAny <none> restricted false [] false MustRunAs MustRunAsRange RunAsAny RunAsAny <none> 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/RHSA-2016:0070 |