https://rancher.com/ logo
Title
h

hundreds-evening-84071

03/10/2023, 4:58 PM
Is there a flag or setting that I missed where if a PV is deleted that should also cleanup in vsphere? Currently (for me) when PV is deleted the objects are not removed in vsphere...
s

salmon-noon-33588

03/10/2023, 8:08 PM
Is this consistent for you? For us, sometimes vms will not get cleaned up, but usually they are.
h

hundreds-evening-84071

03/10/2023, 8:11 PM
yes, I have never seen deleting PV task delete objects in vsphere.
I probably missed a flag or setting somewhere. but that's my guess
s

salmon-noon-33588

03/10/2023, 8:14 PM
I would check permissions in vSphere, thats where we had most of our issues.
Also, checkout the CSI driver container logs, they seem reasonably verbose
h

hundreds-evening-84071

03/10/2023, 8:14 PM
will do; thank you!
a

agreeable-oil-87482

03/11/2023, 12:34 PM
Removing the PV should trigger an action to remove the container volume in vcenter. As @salmon-noon-33588 mentioned, permissions and CSI driver logs are a good starting point.