Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Not able to take volumesnapshots #975

Closed
N1K68 opened this issue Sep 7, 2023 · 5 comments
Closed

[BUG]: Not able to take volumesnapshots #975

N1K68 opened this issue Sep 7, 2023 · 5 comments
Labels
area/csm-operator type/bug Something isn't working. This is the default label associated with a bug issue.
Milestone

Comments

@N1K68
Copy link

N1K68 commented Sep 7, 2023

Bug Description

When trying to create a VolumeSnapshots the creation hanging in pending state forever. According to the csm-isilon-controller log it it missing patch privileges.

After updating the ClusterRole csm-isilon-controller with verb "patch" for
apiGroups:

  • snapshot.storage.k8s.io
    resources:
  • volumesnapshotcontents

and

  • apiGroups:
    • snapshot.storage.k8s.io
      resources:
    • volumesnapshotcontents/status

it start working. But the operator seems to remove these configuration after a while at which point the VolumeSnapshots fails again.

Logs

2023-09-06T17:39:15.830379848Z I0906 17:39:15.830342 1 snapshot_controller.go:190] updating VolumeSnapshotContent[snapcontent-d673d5a9-b354-4c93-9a73-280a3521d733] error status failed volumesnapshotcontents.snapshot.storage.k8s.io "snapcontent-d673d5a9-b354-4c93-9a73-280a3521d733" is forbidden: User "system:serviceaccount:sebshift-powerscale-csi:csm-isilon-controller" cannot patch resource "volumesnapshotcontents/status" in API group "snapshot.storage.k8s.io" at the cluster scope
2023-09-06T17:39:15.830379848Z E0906 17:39:15.830365 1 snapshot_controller.go:107] createSnapshot for content [snapcontent-d673d5a9-b354-4c93-9a73-280a3521d733]: error occurred in createSnapshotWrapper: failed to add VolumeSnapshotBeingCreated annotation on the content snapcontent-d673d5a9-b354-4c93-9a73-280a3521d733: "snapshot controller failed to update snapcontent-d673d5a9-b354-4c93-9a73-280a3521d733 on API server: volumesnapshotcontents.snapshot.storage.k8s.io "snapcontent-d673d5a9-b354-4c93-9a73-280a3521d733" is forbidden: User "system:serviceaccount:sebshift-powerscale-csi:csm-isilon-controller" cannot patch resource "volumesnapshotcontents" in API group "snapshot.storage.k8s.io" at the cluster scope"
2023-09-06T17:39:17.430232402Z I0906 17:39:17.430226 1 snapshot_controller_base.go:185] Failed to sync content "snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7", will retry again: failed to add VolumeSnapshotBeingCreated annotation on the content snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7: "snapshot controller failed to update snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7 on API server: volumesnapshotcontents.snapshot.storage.k8s.io "snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7" is forbidden: User "system:serviceaccount:sebshift-powerscale-csi:csm-isilon-controller" cannot patch resource "volumesnapshotcontents" in API group "snapshot.storage.k8s.io" at the cluster scope"
2023-09-06T17:39:17.430341585Z I0906 17:39:17.430319 1 event.go:285] Event(v1.ObjectReference{Kind:"VolumeSnapshotContent", Namespace:"", Name:"snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7", UID:"03e793cd-d9c0-41b3-ad21-a9da77e83468", APIVersion:"snapshot.storage.k8s.io/v1", ResourceVersion:"3668603121", FieldPath:""}): type: 'Warning' reason: 'SnapshotCreationFailed' Failed to create snapshot: failed to add VolumeSnapshotBeingCreated annotation on the content snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7: "snapshot controller failed to update snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7 on API server: volumesnapshotcontents.snapshot.storage.k8s.io "snapcontent-dab19496-b06a-4e96-b790-d60fc3aee8b7" is forbidden: User "system:serviceaccount:sebshift-powerscale-csi:csm-isilon-controller" cannot patch resource "volumesnapshotcontents" in API group "snapshot.storage.k8s.io" at the cluster scope"

Screenshots

No response

Additional Environment Information

The privileges that seems to be missing in ClusterRole csm-isilon-controller are:

  • apiGroups:
    • snapshot.storage.k8s.io
      resources:
    • volumesnapshotcontents
      verbs:
    • create
    • get
    • list
    • watch
    • update
    • patch <---
    • delete
  • apiGroups:
    • snapshot.storage.k8s.io
      resources:
    • volumesnapshotcontents/status
      verbs:
    • update
    • patch <---

Steps to Reproduce

Install the Dell Container Storage Modules 1.2.0 and the PowerScale v2.7.0 module.

Expected Behavior

We expect to be able to take a volumesnapshot.

CSM Driver(s)

CSIDRIVERTYPE: isilon CONFIGVERSION : v2.7.0

Installation Type

Operator 1.2.0

Container Storage Modules Enabled

isilon v2.7.0
resiliency v1.6.0
observability v1.5.0

Container Orchestrator

OpenShift 4.11.37

Operating System

RHEL 8.6

@N1K68 N1K68 added needs-triage Issue requires triage. type/bug Something isn't working. This is the default label associated with a bug issue. labels Sep 7, 2023
@N1K68
Copy link
Author

N1K68 commented Sep 8, 2023

image

@shefali-malhotra shefali-malhotra added the area/csi-powerscale Issue pertains to the CSI Driver for Dell EMC PowerScale label Sep 18, 2023
@nitesh3108 nitesh3108 added area/csm-operator and removed needs-triage Issue requires triage. area/csi-powerscale Issue pertains to the CSI Driver for Dell EMC PowerScale labels Sep 18, 2023
@jooseppi-luna
Copy link
Contributor

Hi N1K68, thanks so much for bringing this issue to our attention -- we will take this up asap and look into a fix.

@bortek
Copy link

bortek commented Sep 19, 2023

Hi

I am facing the same issue. Were you able to reproduce?

Running on Openshift 4.12.31

@bortek
Copy link

bortek commented Sep 19, 2023

We are syncing permission (RBAC) using ArgoCD but it looks like the operator is changing it back permission.

@shanmydell
Copy link
Collaborator

This bug is being addressed in 1.9.0, thanks for reporting the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/csm-operator type/bug Something isn't working. This is the default label associated with a bug issue.
Projects
None yet
Development

No branches or pull requests

7 participants