63c8eb44ba
Apparently it is wrong to assume that `DeleteVolume` gets called only after `UnstageVolume` returns success. This was causing the disk image file to be deleted while the volume was still mounted. This would prevent the loop device from getting detached and in turn disk space from getting reclaimed.
9 lines
212 B
Python
9 lines
212 B
Python
import os
|
|
|
|
PROVISIONER_NAME = os.getenv("PROVISIONER_NAME", "rawfile.csi.openebs.io")
|
|
PROVISIONER_VERSION = "0.7.0"
|
|
DATA_DIR = "/data"
|
|
CONFIG = {}
|
|
RESOURCE_EXHAUSTED_EXIT_CODE = 101
|
|
VOLUME_IN_USE_EXIT_CODE = 102
|