implement MOL-175: automatically select amount of vm
diff --git a/run_test.py b/run_test.py
index bc1f8fc..d3f5707 100644
--- a/run_test.py
+++ b/run_test.py
@@ -170,8 +170,11 @@
aff_group = create_vms_opts.pop("aff_group", None)
raw_count = create_vms_opts.pop("count", "x1")
+ nova = nova_connect()
+
if raw_count.startswith("x"):
- raise NotImplementedError("xXXXX count not implemented yet")
+ count = len(nova.services.list(binary="nova-compute"))
+ count *= int(raw_count)
else:
count = int(raw_count)
@@ -184,8 +187,6 @@
latest_start_time = opts.max_preparation_time + time.time()
- nova = nova_connect()
-
# nova, amount, keypair_name, img_name,
# flavor_name, vol_sz=None, network_zone_name=None,
# flt_ip_pool=None, name_templ='ceph-test-{}',