dell / csm

Dell Container Storage Modules (CSM)
Apache License 2.0
70 stars 15 forks source link

[BUG][cert-csi] the nfs ephemeral Inline Volume isn't deleted with pod destroy #946

Closed vincent1chen closed 1 year ago

vincent1chen commented 1 year ago

Bug Description

with my understanding of below description, ephemeral volume would be has same lifecycle of associated pods. if i delete pod, the nfs ephemeral inline volume should be removed as well.

Ephemeral Inline Volume The CSI PowerStore driver version 1.2 and later supports ephemeral inline CSI volumes. This feature allows CSI volumes to be specified directly in the pod specification.

At runtime, nested inline volumes follow the ephemeral lifecycle of their associated pods where the driver handles all phases of volume operations as pods are created and destroyed.

but my test don't see nfs ephemeral export deleted when associated pod is destroyed. i have to manually delete nfs export from powerstore GUI.

image

Logs

NA

Screenshots

No response

Additional Environment Information

No response

Steps to Reproduce

delete pod with associated nfs ephemeral export

Expected Behavior

the nfs ephemeral export will be delete too

CSM Driver(s)

CSI driver for powerstore 2.7

Installation Type

helm 3.0

Container Storage Modules Enabled

No response

Container Orchestrator

K8s 1.24.4

Operating System

debian 11

csmbot commented 1 year ago

@vincent1chen: Thank you for submitting this issue!

The issue is currently awaiting triage. Please make sure you have given us as much context as possible.

If the maintainers determine this is a relevant issue, they will remove the needs-triage label and assign an appropriate priority label.


We want your feedback! If you have any questions or suggestions regarding our contributing process/workflow, please reach out to us at container.storage.modules@dell.com.

suryagupta4 commented 1 year ago

Hi @vincent1chen I tried creating an ephemeral pod in my k8s 1.26 environment and found that the nfs export got deleted and removed from the Powerstore array when the ephemeral pod got destroyed from the cluster. I will test once with k8s 1.24 environment which you are using and will reconfirm.

Thanks.

suryagupta4 commented 1 year ago

When a manual external access ip is added to the nfs export, the ephemeral pod deletion does not delete the nfs export & filesystem on the array. This is expected as during the pod and filesystem creation, the host is added to the nfs export for the worker node on which the pod has been deployed. Only that entry will be deleted when pod is destroyed and the manual entry will remain and nfs export/filesystem will not be deleted.