backend.vm_manage.spawn¶
-
backend.vm_manage.spawn.get_vm_name_from_log(ansible_output)[source]¶ Parse vm_name from ansible log
-
backend.vm_manage.spawn.spawn_instance(spawn_playbook, log, timeout=None)[source]¶ Spawn new VM, executing the following steps:
call the spawn playbook to startup/provision a building instance
get an IP and test if the builder responds
repeat this until you get an IP of working builder
- Returns
dict with ip and name of created VM
- Raises