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

QA: Make the ispec values configurable


Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
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))
cmd.append("--specs-mem-size=max=1024")
cmd.append("--specs-disk-size=min=512")
for spec_type in ("mem-size", "disk-size", "disk-count", "cpu-count",
"nic-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