Commit 20286f7c authored by René Nussbaumer's avatar René Nussbaumer
Browse files

QA: Make the ispec values configurable

Signed-off-by: default avatarRené Nussbaumer <>
Reviewed-by: default avatarIustin Pop <>
parent 995736c6
......@@ -16,6 +16,10 @@
"maxmem": "1024M",
"minmem": "512M",
"# Instance policy specs": null,
"ispec_mem_size_max": 1024,
"ispec_disk_size_min": 512.
"# Lists of disk sizes": null,
"disk": ["1G", "512M"],
"disk-growth": ["2G", "768M"],
......@@ -89,8 +89,14 @@ def TestClusterInit(rapi_user, rapi_secret):
cmd.append("--primary-ip-version=%d" %
qa_config.get("primary_ip_version", 4))
for spec_type in ("mem-size", "disk-size", "disk-count", "cpu-count",
for spec_val in ("min", "max", "std"):
spec = qa_config.get("ispec_%s_%s" %
(spec_type.replace('-', '_'), spec_val), None)
if spec:
cmd.append("--specs-%s=%s=%d" % (spec_type, spec_val, spec))
if master.get("secondary", None):
cmd.append("--secondary-ip=%s" % master["secondary"])
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