{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/13198","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/13198/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/13198/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/13198/events","html_url":"https://github.com/rancher/rancher/issues/13198","id":318781513,"number":13198,"title":"Storage-class using ceph-rbd as backend error","user":{"login":"wanshaoyuan","id":16741882,"avatar_url":"https://avatars1.githubusercontent.com/u/16741882?v=4","gravatar_id":"","url":"https://api.github.com/users/wanshaoyuan","html_url":"https://github.com/wanshaoyuan","followers_url":"https://api.github.com/users/wanshaoyuan/followers","following_url":"https://api.github.com/users/wanshaoyuan/following{/other_user}","gists_url":"https://api.github.com/users/wanshaoyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/wanshaoyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wanshaoyuan/subscriptions","organizations_url":"https://api.github.com/users/wanshaoyuan/orgs","repos_url":"https://api.github.com/users/wanshaoyuan/repos","events_url":"https://api.github.com/users/wanshaoyuan/events{/privacy}","received_events_url":"https://api.github.com/users/wanshaoyuan/received_events","type":"User","site_admin":false},"labels":[{"id":294075522,"url":"https://api.github.com/repos/rancher/rancher/labels/area/storage","name":"area/storage","color":"fbca04","default":false},{"id":145695744,"url":"https://api.github.com/repos/rancher/rancher/labels/kind/bug","name":"kind/bug","color":"fc2929","default":false},{"id":659821934,"url":"https://api.github.com/repos/rancher/rancher/labels/version/2.0","name":"version/2.0","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T04:08:59Z","updated_at":"2018-04-30T21:38:37Z","closed_at":null,"author_association":"NONE","body":"When using ceph-rbd as the storage-class backend, the following error is reported when you configure rbd to create pvc in the UI：\r\n```\r\nWarning ProvisioningFailed 2s (x25 over 6m) persistentvolume-controller Failed to provision volume with StorageClass \"rbd\": invalid option \"adminSecret\" for volume plugin kubernetes.io/rbd\r\n```\r\nWhen I change adminSecret to adminSecretName can succeed\r\nUi generates incorrect configuration\r\n```\r\napiVersion: storage.k8s.io/v1\r\nKind: StorageClass\r\nMetadata:\r\n  Annotations:\r\n    field.cattle.io/creatorId: user-hzhxh\r\n  creationTimestamp: 2018-04-30T03:59:04Z\r\n  Name: rbd\r\n  resourceVersion: \"1915672\"\r\n  selfLink: /apis/storage.k8s.io/v1/storageclasses/rbd\r\n  Uid: d2ee45e8-4c2a-11e8-8dad-00163e04a673\r\nParameters:\r\n  adminId: admin\r\n  adminSecret: ceph-secret-admin\r\n  adminSecretNamespace: default\r\n  Monitors: 172.31.164.57:6789\r\n  Pool: rbd\r\n  userId: default\r\n  userSecretName: ceph-secret-admin\r\nProvisioner: kubernetes.io/rbd\r\nreclaimPolicy: Delete\r\nvolumeBindingMode: Immediate\r\n```\r\n\r\n\r\n\r\nNormal configuration  \r\n```\r\nKind: StorageClass\r\napiVersion: storage.k8s.io/v1\r\nMetadata:\r\n  Name: rbd\r\nProvisioner: kubernetes.io/rbd\r\nParameters:\r\n  Monitors: 172.31.164.57:6789\r\n  adminId: admin\r\n  adminSecretName: ceph-secret-admin\r\n  adminSecretNamespace: default\r\n  Pool: rbd\r\n  userId: admin\r\n  userSecretName: ceph-secret-admin\r\n```\r\n\r\n\r\n---\r\n| Useful | Info |\r\n| :-- | :-- |\r\n|Versions|Rancher `v2.0.0-beta4` UI: `v2.0.38` |\r\n|Access|`local` `admin`|\r\n|Route|`volumes.index`|"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/385536842","html_url":"https://github.com/rancher/rancher/issues/13198#issuecomment-385536842","issue_url":"https://api.github.com/repos/rancher/rancher/issues/13198","id":385536842,"user":{"login":"tfiduccia","id":11514927,"avatar_url":"https://avatars2.githubusercontent.com/u/11514927?v=4","gravatar_id":"","url":"https://api.github.com/users/tfiduccia","html_url":"https://github.com/tfiduccia","followers_url":"https://api.github.com/users/tfiduccia/followers","following_url":"https://api.github.com/users/tfiduccia/following{/other_user}","gists_url":"https://api.github.com/users/tfiduccia/gists{/gist_id}","starred_url":"https://api.github.com/users/tfiduccia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfiduccia/subscriptions","organizations_url":"https://api.github.com/users/tfiduccia/orgs","repos_url":"https://api.github.com/users/tfiduccia/repos","events_url":"https://api.github.com/users/tfiduccia/events{/privacy}","received_events_url":"https://api.github.com/users/tfiduccia/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T21:38:37Z","updated_at":"2018-04-30T21:38:37Z","author_association":"NONE","body":"Need to change adminSecret to adminSecretName"}}
{"actor":{"display_login":"tfiduccia"}}