piraeusdatastore / linstor-csi

CSI plugin for LINSTOR
Apache License 2.0
109 stars 27 forks source link

delay deletion of volume definitions #256

Closed WanzenBug closed 7 months ago

WanzenBug commented 8 months ago

We delete the volume definition in order to have resource definitions without resources. This is useful when we want to keep snapshots without having the associated resources around.

During the volume deletion, we first delete the volume definition. This may be causing a bug in DRBD 9.2, so we delay the deletion until after all resources are gone, at which point DRBD has fully shut down the resource.