Skip to content

Stale Persistent Volumes in Released state when DataVolumes are deleted. #522

@anastheo

Description

@anastheo

Hello,

It seems that we have faced a similar problem in Openshift Virtualization cluster (v4.19) with HPE CSI Driver v3.0.1.

When a datavolume is deleted, then we can see several stale Persistent Volumes in Released state.

Primera Storage Type: A630 (FC)

Example:
Stale Persistent Volumes in Releases state (PVC and Datavolumes are deleted)

$ oc get pv -n prepaid-in | grep template
pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5   60Gi       RWX            Delete           Released      prepaid-in/am-tasccon3-template                                           hpe-primera84-sc   <unset>                          35d
pvc-21e34872-4bec-408d-878f-1d80aad735bb   50Gi       RWX            Delete           Released      prepaid-in/am-icsrds1-template                                            hpe-primera84-sc   <unset>                          2d1h
pvc-2456739f-9fc6-4fb2-a12b-42f4161ec4de   85Gi       RWX            Delete           Released      prepaid-in/am-mobin1-template                                             hpe-primera84-sc   <unset>                          134m
pvc-26fc76c2-eb37-44da-80e5-1d3ba774c1ec   80Gi       RWX            Delete           Released      prepaid-in/am-icsapp1-template                                            hpe-primera84-sc   <unset>                          2d2h
pvc-35271bfb-5319-4f79-af0a-c8a7be6c443e   85Gi       RWX            Delete           Released      prepaid-in/am-mobin4-template                                             hpe-primera84-sc   <unset>                          99d

HPE CSI Controller Error - Volume Deletion Failed

$ oc logs hpe-csi-controller-6956b6589-xp9wk -n hpe-storage | less
I0306 13:48:50.157298       1 controller.go:1272] "shouldDelete" PV="pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5"
I0306 13:48:50.157306       1 controller.go:1302] "shouldDelete is true" PV="pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5"
I0306 13:48:50.157310       1 controller.go:1146] "shouldDelete" PV="pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5"
I0306 13:48:50.157316       1 controller.go:1559] "Started" PV="pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5"
**E0306 13:48:50.160483       1 controller.go:1569] "Volume deletion failed" err="persistentvolume pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5 is still attached to node am-ocpphy10" PV="pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5"
I0306 13:48:50.160527**

Stale Persistent Volume - Deletion Warning

$ oc describe pv pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5 -n prepaid-in | grep Warning
  Warning  VolumeFailedDelete  35s (x14233 over 37d)  csi.hpe.com_am-ocpphy12_3356f240-c637-4840-8edb-4299c5010779  persistentvolume pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5 is still attached to node am-ocpphy10

Stale Volume Attachment

$ oc get volumeattachments -A | grep pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5
csi-a1565634abfabc6cecd6b0d9bb3d7571b5c6d310572467ad48127470c8f288ff   csi.hpe.com   pvc-1ef92aec-8d3b-4aad-a380-7d8cf9bb45b5   am-ocpphy10   true       37d

Is there any clean work around we could use , until we have the permanent fix ? What is the recommeded order to delete the stale resources ?

Please , if you think that it's a seperate case, open a new issue based on my comment.

Thanks,
Anastasios

Originally posted by @anastheo in #518

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions