{"action":"created","issue":{"url":"https://api.github.com/repos/CrunchyData/crunchy-containers/issues/23","repository_url":"https://api.github.com/repos/CrunchyData/crunchy-containers","labels_url":"https://api.github.com/repos/CrunchyData/crunchy-containers/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/CrunchyData/crunchy-containers/issues/23/comments","events_url":"https://api.github.com/repos/CrunchyData/crunchy-containers/issues/23/events","html_url":"https://github.com/CrunchyData/crunchy-containers/issues/23","id":180985132,"number":23,"title":"crunchy-postgres: unable to create /pgdata/$HOSTNAME when using PVC.  CrashLoop.","user":{"login":"colemanserious","id":1175203,"avatar_url":"https://avatars.githubusercontent.com/u/1175203?v=3","gravatar_id":"","url":"https://api.github.com/users/colemanserious","html_url":"https://github.com/colemanserious","followers_url":"https://api.github.com/users/colemanserious/followers","following_url":"https://api.github.com/users/colemanserious/following{/other_user}","gists_url":"https://api.github.com/users/colemanserious/gists{/gist_id}","starred_url":"https://api.github.com/users/colemanserious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemanserious/subscriptions","organizations_url":"https://api.github.com/users/colemanserious/orgs","repos_url":"https://api.github.com/users/colemanserious/repos","events_url":"https://api.github.com/users/colemanserious/events{/privacy}","received_events_url":"https://api.github.com/users/colemanserious/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-04T19:39:28Z","updated_at":"2016-10-05T19:39:43Z","closed_at":null,"body":"Running on kubernetes 1.3.  Set up pgdata volume as a PVC, which is getting served by an NFS system.  Note: if I use emptyDir for the volumes, no issue.  (But of course I can lose my data.)\r\n\r\nIssue: Receiving a \"mkdir: cannot create directory '/pgdata/postgres-deployment-1217853053-9wk6b': Permission denied\", which finally causes a CrashLoopBackoff after enough attempts to retry.  (Note: container's being set up as part of a deployment with replicas count of 1.)\r\n\r\nHave cross-checked examples/kube/kitchensink, as well as other kube examples.  Not catching any relevant differences.\r\n\r\nLooking in rhel7/9.5/Dockerfile.postgres.rhel7, looks like the chown happens in the Dockerfile itself, which means that it can't actually apply (I think) to directories created by persistent volume mounts.  In that same Dockerfile, I see commented out setcap calls against chown like someone was tinkering with this.  Also see in notes/notes-priv.txt and notes/todo2 various wrestlings that look like they're related to this issue...\r\n"},"comment":{"url":"https://api.github.com/repos/CrunchyData/crunchy-containers/issues/comments/251777145","html_url":"https://github.com/CrunchyData/crunchy-containers/issues/23#issuecomment-251777145","issue_url":"https://api.github.com/repos/CrunchyData/crunchy-containers/issues/23","id":251777145,"user":{"login":"jmccormick2001","id":863211,"avatar_url":"https://avatars.githubusercontent.com/u/863211?v=3","gravatar_id":"","url":"https://api.github.com/users/jmccormick2001","html_url":"https://github.com/jmccormick2001","followers_url":"https://api.github.com/users/jmccormick2001/followers","following_url":"https://api.github.com/users/jmccormick2001/following{/other_user}","gists_url":"https://api.github.com/users/jmccormick2001/gists{/gist_id}","starred_url":"https://api.github.com/users/jmccormick2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmccormick2001/subscriptions","organizations_url":"https://api.github.com/users/jmccormick2001/orgs","repos_url":"https://api.github.com/users/jmccormick2001/repos","events_url":"https://api.github.com/users/jmccormick2001/events{/privacy}","received_events_url":"https://api.github.com/users/jmccormick2001/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T19:39:43Z","updated_at":"2016-10-05T19:39:43Z","body":"I just created a new VM, this one is RHEL7, I built kube 1.3.8 on it by compiling the source code for kube, I installed NFS according to the instructions in the install.asciidoc section on NFS, I then ran the crunchy-postgres 1.2.3 container, with selinux on permissive mode it seems to work...if I turn on enforcing I get the mkdir permission error...not sure how else to debug this one just yet but I'm guessing it might be how the OS or NFS is configured but not sure unless I had access to your machine.   is your selinux in permissive mode or disabled?  "}}
{"actor":{"display_login":"jmccormick2001"}}