{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/5156","labels_url":"https://api.github.com/repos/openshift/origin/issues/5156/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/5156/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/5156/events","html_url":"https://github.com/openshift/origin/issues/5156","id":111804561,"number":5156,"title":"Cinder volume plugin does not get cloud provider","user":{"login":"jsafrane","id":1745006,"avatar_url":"https://avatars.githubusercontent.com/u/1745006?v=3","gravatar_id":"","url":"https://api.github.com/users/jsafrane","html_url":"https://github.com/jsafrane","followers_url":"https://api.github.com/users/jsafrane/followers","following_url":"https://api.github.com/users/jsafrane/following{/other_user}","gists_url":"https://api.github.com/users/jsafrane/gists{/gist_id}","starred_url":"https://api.github.com/users/jsafrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsafrane/subscriptions","organizations_url":"https://api.github.com/users/jsafrane/orgs","repos_url":"https://api.github.com/users/jsafrane/repos","events_url":"https://api.github.com/users/jsafrane/events{/privacy}","received_events_url":"https://api.github.com/users/jsafrane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T10:31:00Z","updated_at":"2015-10-16T11:41:30Z","closed_at":null,"body":"When Cinder volume plugin is initialized, it gets a `VolumeHost` instance which returns `nil` from `GetCloudProvider()` call (e.g. in [AttachDisk function](https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/k8s.io/kubernetes/pkg/volume/cinder/cinder_util.go#L43))\r\n\r\nAs result, Kubelet cannot attach a Cinder volume to a pod, with following error in the log:\r\n```\r\ncinder_util.go:45] Cloud provider not initialized properly\r\n```\r\n\r\nMy node config.yaml includes `--cloud-provider` and `--cloud-config` arguments:\r\n```yaml\r\nkubeletArguments:  \r\n  cloud-provider:  \r\n    - \"openstack\"  \r\n  cloud-config:  \r\n    - \"/etc/cloud.conf\"  \r\n```\r\n\r\n\"Standard\" Kubelet (e.g. when running outside of OpenShift) initializes cloud provider in [KubeletServer.Run()](https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/k8s.io/kubernetes/cmd/kubelet/app/server.go#L406). In OpenShift, this method gets non-nil KubeletConfig, therefore it expects that the cloud provider was already initialized by the caller."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/148692346","html_url":"https://github.com/openshift/origin/issues/5156#issuecomment-148692346","issue_url":"https://api.github.com/repos/openshift/origin/issues/5156","id":148692346,"user":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T11:41:30Z","updated_at":"2015-10-16T11:41:30Z","body":"@smarterclayton @liggitt initialization plumbing problem?"}}