{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15833","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15833/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15833/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15833/events","html_url":"https://github.com/kubernetes/kubernetes/issues/15833","id":112094958,"number":15833,"title":"Unable to mount volumes for pod","user":{"login":"lorenzvth7","id":14105387,"avatar_url":"https://avatars.githubusercontent.com/u/14105387?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzvth7","html_url":"https://github.com/lorenzvth7","followers_url":"https://api.github.com/users/lorenzvth7/followers","following_url":"https://api.github.com/users/lorenzvth7/following{/other_user}","gists_url":"https://api.github.com/users/lorenzvth7/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzvth7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzvth7/subscriptions","organizations_url":"https://api.github.com/users/lorenzvth7/orgs","repos_url":"https://api.github.com/users/lorenzvth7/repos","events_url":"https://api.github.com/users/lorenzvth7/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzvth7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-10-19T08:14:28Z","updated_at":"2015-10-20T15:13:57Z","closed_at":null,"body":"I'm trying to create a openshift-project which uses a database (mysql). This is a persistent database. So the content of it will be retained when the pod dies. So I'm working with OpenShift V3, kubernetes and docker. After searching to the solution, I found out it's a kubernetes issue.\r\n\r\nFirst of all I've installed NFS and did the necessary steps to create persistent volumes (pv's). I'm able to create my persistent volums by executing a .yaml. I know I have to change the name manually but this isn't important at this moment. 10.0.0.104 is the internal IP of my openshift-master.\r\n```\r\n{\r\n  \"apiVersion\": \"v1\",\r\n  \"kind\": \"PersistentVolume\",\r\n  \"metadata\": {\r\n    \"name\": \"pv0002\"\r\n  },\r\n  \"spec\": {\r\n    \"capacity\": {\r\n        \"storage\": \"5Gi\"\r\n    },\r\n    \"accessModes\": [ \"ReadWriteOnce\" ],\r\n    \"nfs\": {\r\n        \"path\": \"/tmp\",\r\n        \"server\": \"10.0.0.104\"\r\n    },\r\n    \"persistentVolumeReclaimPolicy\": \"Recycle\"\r\n  }\r\n}\r\n```\r\nSo I execute this .yaml and I change the name and so I create some persistent volumes. Now I'm creating a very easy project from a template:\r\n```oc new-project demo\r\noc new-app https://github.com/openshift/ruby-hello-world```\r\n\r\nNow it's time to add a database to the project. Herefor I will use this command (as admin):\r\n```oc process -n openshift mysql-persistent -v DATABASE_SERVICE_NAME=database | oc create -f -```\r\n\r\nIt will use the mysql-persistent template of my openshift project to create an object. I will connect it with my project:\r\n```oc env dc database --list | oc env dc ruby-hello-world -e -```\r\n\r\nThe output of oc get pv is the following:\r\n```\r\nNAME      LABELS    CAPACITY     ACCESSMODES   STATUS      CLAIM              REASON    AGE\r\npv0001    <none>    5368709120   RWO           Bound       demo/database             1h\r\npv0002    <none>    5368709120   RWO           Available                                17m\r\n```\r\n\r\nSo I thought the db was connected. But in the web console the following error occured and the state of \r\nthe database remained pulling.\r\n\r\n```Unable to mount volumes for pod \"database-1-28tle_demo\": exit status 32```\r\n\r\nIs there someone who knows what I'm doing wrong?\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/149597278","html_url":"https://github.com/kubernetes/kubernetes/issues/15833#issuecomment-149597278","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15833","id":149597278,"user":{"login":"lorenzvth7","id":14105387,"avatar_url":"https://avatars.githubusercontent.com/u/14105387?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzvth7","html_url":"https://github.com/lorenzvth7","followers_url":"https://api.github.com/users/lorenzvth7/followers","following_url":"https://api.github.com/users/lorenzvth7/following{/other_user}","gists_url":"https://api.github.com/users/lorenzvth7/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzvth7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzvth7/subscriptions","organizations_url":"https://api.github.com/users/lorenzvth7/orgs","repos_url":"https://api.github.com/users/lorenzvth7/repos","events_url":"https://api.github.com/users/lorenzvth7/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzvth7/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T15:13:57Z","updated_at":"2015-10-20T15:13:57Z","body":"I can do it manually but in that case I'm doing nothing with pods"}}