Closed ptthon closed 4 months ago
Ran into this issue days ago too
Did you delete LVMVolume ?
You need to check whether your storageclass.reclaimPolicy is Delete
.
As indicated above, it's related to reclaimPolicy in storage class, which if set to Retain
will not delete the underlying volume. Also I notice that in step3 it's mentioned as delete PV
. This shouldn't be required.
In case of a Retain
policy , the PV status will simply change to Released
.
I'll go ahead closing this issue now. Please feel free to reopen with details/logs required to help e.g. provisioner logs.
It would also be good to understand deletions were indeed done in the same order as mentioned in issue description, or there could have a race in running deletion or order swapped. It's possible that the below k8s issue could have possibly caused this : https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/2644-honor-pv-reclaim-policy/README.md
If you still encounter it, please let us know.
What steps did you take and what happened:
What did you expect to happen:
open 0
LV Size 15.00 GiB Current LE 3840 Segments 1 Allocation inherit Read ahead sectors auto
Environment:
LVM Driver version is 0.9.0
Kubernetes version is Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.13-21", GitCommit:"6da8c0d7a77590f911e8c07e1596a34ab9c6bf4e", GitTreeState:"archive", BuildDate:"2022-02-17T07:13:59Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.13-21", GitCommit:"6da8c0d7a77590f911e8c07e1596a34ab9c6bf4e", GitTreeState:"archive", BuildDate:"2022-02-17T07:13:59Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
OS (e.g. from
/etc/os-release
): NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.5 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic