{"action":"closed","issue":{"url":"https://api.github.com/repos/kubernetes/examples/issues/145","repository_url":"https://api.github.com/repos/kubernetes/examples","labels_url":"https://api.github.com/repos/kubernetes/examples/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/examples/issues/145/comments","events_url":"https://api.github.com/repos/kubernetes/examples/issues/145/events","html_url":"https://github.com/kubernetes/examples/issues/145","id":276504811,"number":145,"title":"ceph rbd support multi storageclass","user":{"login":"like-inspur","id":18571465,"avatar_url":"https://avatars3.githubusercontent.com/u/18571465?v=4","gravatar_id":"","url":"https://api.github.com/users/like-inspur","html_url":"https://github.com/like-inspur","followers_url":"https://api.github.com/users/like-inspur/followers","following_url":"https://api.github.com/users/like-inspur/following{/other_user}","gists_url":"https://api.github.com/users/like-inspur/gists{/gist_id}","starred_url":"https://api.github.com/users/like-inspur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/like-inspur/subscriptions","organizations_url":"https://api.github.com/users/like-inspur/orgs","repos_url":"https://api.github.com/users/like-inspur/repos","events_url":"https://api.github.com/users/like-inspur/events{/privacy}","received_events_url":"https://api.github.com/users/like-inspur/received_events","type":"User","site_admin":false},"labels":[{"id":778127642,"url":"https://api.github.com/repos/kubernetes/examples/labels/lifecycle/rotten","name":"lifecycle/rotten","color":"604460","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-24T03:13:06Z","updated_at":"2018-04-23T05:15:50Z","closed_at":"2018-04-23T05:15:50Z","author_association":"NONE","body":"I test pod mount volume through pvc on storageclass ceph must exist in the same namespace with secret. Now I want mutil namespace environment, so each namespace need to create its own storageclass.\r\nkubectl create ns like\r\nceph osd pool create like 128\r\nceph auth get-or-create client.like mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=like'\r\nI creaet ceph-secret-like in namespace like and storageclass ceph-like use pool like and secret ceph-secret-like\r\nkind: StorageClass\r\napiVersion: storage.k8s.io/v1\r\nmetadata:\r\n  name: ceph-like\r\nprovisioner: kubernetes.io/rbd\r\nparameters:\r\n  monitors: 10.110.17.56:6789,10.110.17.57:6789,10.110.17.58:6789\r\n  adminId: admin\r\n  adminSecretName: ceph-secret\r\n  adminSecretNamespace: default\r\n  pool: like\r\n  userId: like\r\n  userSecretName: ceph-secret-like\r\n  imageFormat: \"1\"\r\nWhen I create pvc in namespace like，its status is pending, and log show like this:\r\n  Warning  ProvisioningFailed  3m (x17 over 7m)  persistentvolume-controller  (combined from similar events): Failed to provision volume with StorageClass \"ceph-like\": failed to create rbd image: exit status 1, command output: 2017-11-24 03:08:55.020934 7fe5c270d780 -1 did not load config file, using default settings.\r\n2017-11-24 03:08:55.032621 7fe5c270d780  0 librados: client.admin authentication error (1) Operation not permitted\r\nrbd: couldn't connect to the cluster!"}}
{"actor":{"display_login":"k8s-ci-robot"}}