Bug 1837859 - [manila-csi-driver-operator] User "system:serviceaccount:manila-csi:openstack-manila-csi-controllerplugin" cannot update resource "volumesnapshotcontents/status" in API group "snapshot.storage.k8s.io" at the cluster scope
Summary: [manila-csi-driver-operator] User "system:serviceaccount:manila-csi:openstack...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.0
Assignee: Mike Fedosin
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks: 1844382
TreeView+ depends on / blocked
 
Reported: 2020-05-20 07:06 UTC by Wei Duan
Modified: 2020-10-27 16:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:00:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift csi-driver-manila-operator pull 31 0 None closed Bug 1837859: Allow Manila CSI controller to update volumesnapshotcontents/status 2020-10-06 14:14:30 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:00:50 UTC

Description Wei Duan 2020-05-20 07:06:41 UTC
Description of problem:
When creating manila snapshot, we got following message for permission lack: 
I0520 00:27:19.431196       1 snapshot_controller.go:200] updating VolumeSnapshotContent[snapcontent-a93535d3-000c-45c2-b1da-a19bb7b3f12d] error status failed volumesnapshotcontents.snapshot.storage.k8s.io "snapcontent-a93535d3-000c-45c2-b1da-a19bb7b3f12d" is forbidden: User "system:serviceaccount:manila-csi:openstack-manila-csi-controllerplugin" cannot update resource "volumesnapshotcontents/status" in API group "snapshot.storage.k8s.io" at the cluster scope

It is not defined in clusterrole openstack-manila-csi-controllerplugin as below:
[wduan@MINT snapshot]$ oc get clusterrole openstack-manila-csi-controllerplugin -o yaml | grep "volumesnapshot"
  - volumesnapshotclasses
  - volumesnapshotcontents
  - volumesnapshots
  - volumesnapshots/status


Version-Release number of selected component (if applicable):
4.5.0-0.nightly-2020-05-17-235851

How reproducible:
Always

Steps to Reproduce:
1. Install manila csi driver
2. Create volumesnapshotclass
2. Create volumesnapshot

Actual results:
volumesnapshot is not "ReadyToUse" with message in Description

Expected results:
Serviceaccount openstack-manila-csi-controllerplugin have the permission for creating snapshot.

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:

Comment 3 Wei Duan 2020-06-19 03:45:19 UTC
Verified pass.

[wduan@MINT manila]$ oc get clusterrole openstack-manila-csi-controllerplugin -o yaml | grep "volumesnapshot"
  - volumesnapshotclasses
  - volumesnapshotcontents
  - volumesnapshotcontents/status
  - volumesnapshots
  - volumesnapshots/status

Comment 5 errata-xmlrpc 2020-10-27 16:00:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4196


Note You need to log in before you can comment on or make changes to this bug.