metal-stack / csi-driver-lvm

MIT License
121 stars 26 forks source link

failure if logical volume is missing #39

Closed mwennrich closed 3 years ago

mwennrich commented 3 years ago

if - for some reason - the logical volume is missing on the node, the controller tries to delete it again and again:

delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete I0211 13:14:29.716839       1 main.go:38] starting csi-lvmplugin-provisioner
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete I0211 13:14:29.717050       1 deletelv.go:45] delete lv pvc-5767ef75-314c-420d-9783-5b1db2b78c44 vg:csi-lvm
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete I0211 13:14:30.011312       1 lvm.go:550] unable to list existing volumes:exit status 5
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete F0211 13:14:30.011351       1 deletelv.go:27] Error deleting lv: unable to delete lv: logical volume pvc-5767ef75-314c-420d-9783-5b1db2b78c44 does not exist output:
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete goroutine 1 [running]:
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete k8s.io/klog/v2.stacks(0xc000010001, 0xc00046e000, 0xa5, 0x1ba)
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete    /go/pkg/mod/k8s.io/klog/v2@v2.3.0/klog.go:996 +0xb9
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete k8s.io/klog/v2.(*loggingT).output(0x1db9420, 0xc000000003, 0x0, 0x0, 0xc00045e0e0, 0x1d2990c, 0xb, 0x1b, 0x0)
delete-pvc-5767ef75-314c-420d-9783-5b1db2b78c44 csi-lvmplugin-delete    /go/pkg/mod/k8s.io/klog/v2@v2.3.0/klog.go:945 +0x191
csi-driver-lvm      56m         Normal    Started                  pod/delete-pvc-b02b02e9-c48a-44de-aed5-fdc4febcc0b3                Started container csi-lvmplugin-delete
csi-driver-lvm      51m         Normal    Started                  pod/delete-pvc-b02b02e9-c48a-44de-aed5-fdc4febcc0b3                Started container csi-lvmplugin-delete
csi-driver-lvm      46m         Normal    Started                  pod/delete-pvc-b02b02e9-c48a-44de-aed5-fdc4febcc0b3                Started container csi-lvmplugin-delete
csi-driver-lvm      41m         Normal    Started                  pod/delete-pvc-b02b02e9-c48a-44de-aed5-fdc4febcc0b3                Started container csi-lvmplugin-delete
csi-driver-lvm      36m         Normal    Started                  pod/delete-pvc-b02b02e9-c48a-44de-aed5-fdc4febcc0b3                Started container csi-lvmplugin-delete