diff --git a/ext_scripts/ext_rbd.py b/ext_scripts/ext_rbd.py index b9ddea74bb6510c0896ccd904c7125e8c68e2212..7873084cc4aa0a91eadedd333c36988473a162ab 100755 --- a/ext_scripts/ext_rbd.py +++ b/ext_scripts/ext_rbd.py @@ -23,7 +23,7 @@ RBD storage provider wrapper-script for ganeti extstorage disk template The script takes it's input from environment variables. Specifically the following variables should be present: - - VOL_CNAME: The name of the new Image file + - VOL_NAME: The name of the new Image file - VOL_SIZE: The size of the new Image (in megabytes) The following variables are optional: @@ -199,9 +199,9 @@ class RBD(object): def read_env(): """Read the enviromental variables""" - name = os.getenv("VOL_CNAME") + name = os.getenv("VOL_NAME") if name is None: - sys.stderr.write('The environment variable VOL_CNAME is missing.\n') + sys.stderr.write('The environment variable VOL_NAME is missing.\n') return None extp_params = {} @@ -236,7 +236,7 @@ def read_env(): userspace_params[p[len(PREFIX_USP):]] = v extp_params.pop(p) - env = {"name": os.getenv("VOL_CNAME"), + env = {"name": os.getenv("VOL_NAME"), "size": os.getenv("VOL_SIZE"), "snapshot_name": os.getenv("VOL_SNAPSHOT_NAME"), "cephx": cephx,