Allow to define the number of test vms to be created

To test features that need several VMs to be created, enable
this setting that reuses the NODECOUNT setting already present
on the test script.

Change-Id: I43d1625f277b1c073441b70e47ba95e121dd116a
This commit is contained in:
Yolanda Robla 2016-02-02 19:39:47 +01:00
parent 2e19f19fc7
commit 3c6d272574
3 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,10 @@ test_vm_memory_size: Tunable setting to allow a user to define a specific
between test runs, you may need to undefine the test between test runs, you may need to undefine the test
virtual machine(s) that were previously created. virtual machine(s) that were previously created.
test_vm_num_nodes: Tunable setting to allow a user to define the number of
test VMs that will be created. They will all be created
with same settings.
Dependencies Dependencies
------------ ------------

View File

@ -2,3 +2,4 @@
# defaults file for bifrost-create-vm-nodes # defaults file for bifrost-create-vm-nodes
baremetal_csv_file: "/tmp/baremetal.csv" baremetal_csv_file: "/tmp/baremetal.csv"
test_vm_memory_size: "3072" test_vm_memory_size: "3072"
test_vm_num_nodes: "1"

View File

@ -56,6 +56,7 @@
environment: environment:
NODEOUTPUT: "{{baremetal_csv_file}}" NODEOUTPUT: "{{baremetal_csv_file}}"
VM_RAM: "{{ test_vm_memory_size }}" VM_RAM: "{{ test_vm_memory_size }}"
NODECOUNT: "{{ test_vm_num_nodes }}"
register: task_create_vm_nodes register: task_create_vm_nodes
ignore_errors: yes ignore_errors: yes
delegate_to: localhost delegate_to: localhost