e3f8f86b08
It appears that test nodes, once are explicitly powered off, depending on libvirt, may completely vanish. As we only test at the end of the process if we've observed additional DHCP leases, we should move to only defining the VMs such that they are powered on when the sequence is ready, not in advance of the test sequence. Moving to defining instead of creating does improve the overall efficency of the sequence as no processes are spawning suddenly using CPU and RAM during the start of the test. This also allows us to remove and correct ansible virt module invocations. The ansible virt module is an extra module, not a core module, at least on Ubuntu Trusty, cannot have it's requirements installed via pip. Change-Id: I8948ba5a941384fdcacebcdfe9b6fd4fe8384cb1 Depends-On: I01885c397ed1e020aae306db1656678b26306532 |
||
---|---|---|
.. | ||
defaults | ||
files | ||
handlers | ||
meta | ||
tasks | ||
vars | ||
README.md |
bifrost-create-vm-nodes
This role creates virtual machines for testing bifrost.
Requirements
The following packages are required and ensured to be present:
- libvirt-bin
- qemu-utils
- qemu-kvm
- sgabios
Role Variables
baremetal_csv_file: "/tmp/baremetal.csv"
test_vm_memory_size: Tunable setting to allow a user to define a specific amount of RAM in MB to allocate to guest/test VMs. Defaults to "3072". Note: if this setting is modified between test runs, you may need to undefine the test 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
None at this time.
Example Playbook
- hosts: localhost
connection: local
become: yes
gather_facts: yes
roles:
- role: bifrost-create-vm-nodes
License
Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Author Information
Ironic Developers