美文网首页
OpenShift3.9 GlusterFS Issue2

OpenShift3.9 GlusterFS Issue2

作者: cxj_hit | 来源:发表于2018-05-02 15:42 被阅读0次

1 Issue description:

May  2 03:35:04 oskm2 origin-master-api: I0502 07:35:04.348826       1 rbac.go:116] RBAC DENY: user "system:serviceaccount:glusterfs:glusterblock-storage-provisioner" groups ["system:serviceaccounts" "system:serviceaccounts:glusterfs" "system:authenticated"] cannot "list" resource "persistentvolumeclaims" cluster-wide
May  2 03:35:04 oskm2 origin-master-api: I0502 07:35:04.733607       1 rbac.go:116] RBAC DENY: user "system:serviceaccount:glusterfs:glusterblock-storage-provisioner" groups ["system:serviceaccounts" "system:serviceaccounts:glusterfs" "system:authenticated"] cannot "watch" resource "storageclasses.storage.k8s.io" cluster-wide
May  2 03:35:05 oskm2 origin-master-api: I0502 07:35:05.349569       1 rbac.go:116] RBAC DENY: user "system:serviceaccount:glusterfs:glusterblock-storage-provisioner" groups ["system:serviceaccounts" "system:serviceaccounts:glusterfs" "system:authenticated"] cannot "list" resource "persistentvolumes" cluster-wide
May  2 03:35:05 oskm2 origin-master-api: I0502 07:35:05.350587       1 rbac.go:116] RBAC DENY: user "system:serviceaccount:glusterfs:glusterblock-storage-provisioner" groups ["system:serviceaccounts" "system:serviceaccounts:glusterfs" "system:authenticated"] cannot "list" resource "persistentvolumeclaims" cluster-wide
May  2 03:35:05 oskm2 origin-master-api: I0502 07:35:05.739013       1 rbac.go:116] RBAC DENY: user "system:serviceaccount:glusterfs:glusterblock-storage-provisioner" groups ["system:serviceaccounts" "system:serviceaccounts:glusterfs" "system:authenticated"] cannot "watch" resource "storageclasses.storage.k8s.io" cluster-wide

2 Reasons Analysis

RBAC Roles issue, limits of authority。

3 Solution

Grant the role to the glusterfs user.

oc create clusterrolebinding glusterblock-storage-provisioner --clusterrole=glusterblock-provisioner-runner --user=system:serviceaccount:glusterfs:glusterblock-storage-provisioner

相关文章

网友评论

      本文标题:OpenShift3.9 GlusterFS Issue2

      本文链接:https://www.haomeiwen.com/subject/urjcrftx.html