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: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
"# 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",
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"]