{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/1469","labels_url":"https://api.github.com/repos/openshift/origin/issues/1469/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1469/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/1469/events","html_url":"https://github.com/openshift/origin/issues/1469","id":64568137,"number":1469,"title":"Secret volumes content is not available in containers","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"pmorie","id":366488,"avatar_url":"https://avatars.githubusercontent.com/u/366488?v=3","gravatar_id":"","url":"https://api.github.com/users/pmorie","html_url":"https://github.com/pmorie","followers_url":"https://api.github.com/users/pmorie/followers","following_url":"https://api.github.com/users/pmorie/following{/other_user}","gists_url":"https://api.github.com/users/pmorie/gists{/gist_id}","starred_url":"https://api.github.com/users/pmorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmorie/subscriptions","organizations_url":"https://api.github.com/users/pmorie/orgs","repos_url":"https://api.github.com/users/pmorie/repos","events_url":"https://api.github.com/users/pmorie/events{/privacy}","received_events_url":"https://api.github.com/users/pmorie/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-03-26T16:06:14Z","updated_at":"2015-04-02T16:29:23Z","closed_at":null,"body":"Working through with @pmorie.\r\n\r\nSecrets/RC created via following manifest:\r\n\r\n```\r\n---\r\n  id: \"fabric8-config\"\r\n  kind: \"Config\"\r\n  apiVersion: \"v1beta1\"\r\n  name: \"fabric8-config\"\r\n  description: \"Creates a hawtio console\"\r\n  items:\r\n    - apiVersion: \"v1beta2\"\r\n      kind: \"Secret\"\r\n      id: \"openshift-cert-secrets\"\r\n      data:\r\n        my-file: amltbWkK\r\n    - apiVersion: \"v1beta1\"\r\n      desiredState:\r\n        podTemplate:\r\n          desiredState:\r\n            manifest:\r\n              containers:\r\n                - image: \"busybox:latest\"\r\n                  name: \"test-container\"\r\n                  imagePullPolicy: \"PullIfNotPresent\"\r\n                  volumeMounts:\r\n                    - name: openshift-cert-secrets\r\n                      mountPath: /etc/secret-volume\r\n                      readOnly: true\r\n                  command:\r\n                    - sleep\r\n                    - 5000000\r\n              id: \"busyboxPod\"\r\n              version: \"v1beta1\"\r\n              volumes:\r\n                - name: openshift-cert-secrets\r\n                  source:\r\n                    secret:\r\n                      target:\r\n                        kind: Secret\r\n                        namespace: default\r\n                        name: openshift-cert-secrets\r\n          labels:\r\n            component: \"test\"\r\n        replicaSelector:\r\n          component: \"test\"\r\n        replicas: 1\r\n      id: \"busybox-controller\"\r\n      kind: \"ReplicationController\"\r\n```\r\n\r\nVolume is mounted in container but contains no files, either visible in container or on host. Logs from a customized origin image provided by @pmorie with extra logging are available at https://gist.github.com/jimmidyson/d378d4a0e7c6f0fdfe0a, specifically see https://gist.github.com/jimmidyson/d378d4a0e7c6f0fdfe0a#file-openshift-log-L407-L421. Initial guess is that it's the Cleaner that's cleaning files too eagerly."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/88966916","html_url":"https://github.com/openshift/origin/issues/1469#issuecomment-88966916","issue_url":"https://api.github.com/repos/openshift/origin/issues/1469","id":88966916,"user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T16:29:23Z","updated_at":"2015-04-02T16:29:23Z","body":"It's probably that no volumes that have to mount work properly in a container right now because the kubelet is not in the host's root namespace.  That's an issue that we need to pursue upstream.\r\n\r\n\r\n> On Apr 2, 2015, at 11:12 AM, Jimmi Dyson <notifications@github.com> wrote:\r\n> \r\n> Just to confirm that this happens only when running OpenShift in a container. When running on host it works perfectly.\r\n> \r\n> —\r\n> Reply to this email directly or view it on GitHub.\r\n> \r\n"}}