Skip to content
Snippets Groups Projects
Commit a3101706 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Use VOL_NAME instead of CNAME

The latter is “pretty” and not necessarily unique.
parent f14ae02e
Branches
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment