Commit becf9d5c authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

QA: Support additional arguments for initialization



In some scenarios it can be useful to add more arguments to “gnt-cluster
init”, such as “--no-drbd-storage”, if DRBD is not installed.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 3b0db9e3
......@@ -24,6 +24,9 @@
"# Cluster-level value of the exclusive-storage flag": null,
"exclusive-storage": null,
"# Additional arguments for initializing cluster": null,
"cluster-init-args": [],
"# Network interface for master role": null,
"#master-netdev": "xen-br0",
......
......@@ -209,7 +209,12 @@ def TestClusterInit(rapi_user, rapi_secret):
e_s = False
qa_config.SetExclusiveStorage(e_s)
extra_args = qa_config.get("cluster-init-args")
if extra_args:
cmd.extend(extra_args)
cmd.append(qa_config.get("name"))
AssertCommand(cmd)
cmd = ["gnt-cluster", "modify"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment