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

LUNs not deleted after PV deleted in ICP 3.2.1 #5

Open
dannert opened this issue Nov 29, 2019 · 0 comments
Open

LUNs not deleted after PV deleted in ICP 3.2.1 #5

dannert opened this issue Nov 29, 2019 · 0 comments

Comments

@dannert
Copy link

dannert commented Nov 29, 2019

I have created a new storage class as follows:
kubectl describe storageclass ssd-retain
Name: ssd-retain
IsDefaultClass: No
Annotations:
Provisioner: ibm/powervc-k8s-volume-provisioner
Parameters: fsType=xfs,type=icp-v7k3-ssd
AllowVolumeExpansion: True
MountOptions:
ReclaimPolicy: Retain
VolumeBindingMode: Immediate
Events:

I then deployed a mongodb-dev Helm chart with that storage class, tested it and then deleted the deployment. As the storage class is set to Retain the PV was not automatically deleted.
I manually deleted the PV within ICP GUI and ICP has no knowledge of that PV any longer.

The problem is that the Flex driver does not delete the underlying LUN at the time of manual delete of the PV. PowerVC did not receive a "delete" message.

It is my understanding that "Retain" should just keep the PV when the PVC is deleted, but if the PV is deleted that the underlying storage should be release as well.
So that would be my expectation of a correct behavior here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant