Skip to content

Instantly share code, notes, and snippets.

@holtgrewe
Created November 8, 2021 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holtgrewe/0f479a7588301bc3452c1a3a83c8a89f to your computer and use it in GitHub Desktop.
Save holtgrewe/0f479a7588301bc3452c1a3a83c8a89f to your computer and use it in GitHub Desktop.
(kayobe) [centos@stack-ctrl kayobe-config]$ kayobe seed vm provision
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Ensure IP addresses are allocated] ****************************************************************************************************************************************************************************************************
TASK [Initialise the IP allocations fact] ***************************************************************************************************************************************************************************************************
ok: [stack-seed]
TASK [Update the IP allocations fact with IP allocation requests] ***************************************************************************************************************************************************************************
ok: [stack-seed] => (item=compute_net)
TASK [ip-allocation : Ensure IP addresses are allocated] ************************************************************************************************************************************************************************************
ok: [stack-seed -> localhost] => (item={'net_name': 'compute_net', 'cidr': '172.16.32.0/19', 'allocation_pool_start': '172.16.32.11', 'allocation_pool_end': '172.16.32.20'})
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
stack-seed : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Ensure that the seed VM configdrive exists] *******************************************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [Verify the seed host exists in the Ansible inventory] *********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [Ensure coreutils package is installed] ************************************************************************************************************************************************************************************************
[WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this
message.
changed: [stack-seed-hypervisor]
TASK [Ensure the image cache directory exists] **********************************************************************************************************************************************************************************************
[WARNING]: The value "1001" (type int) was converted to "'1001'" (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Install required packages to create the images] ****************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item={'key': 'genisoimage', 'value': {'state': 'latest'}})
ok: [stack-seed-hypervisor] => (item={'key': 'gzip', 'value': {'state': 'latest'}})
ok: [stack-seed-hypervisor] => (item={'key': 'coreutils', 'value': {'state': 'latest'}})
TASK [jriguera.configdrive : Include OS specific variables] *********************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup configdrive instance folder] *****************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Create configdrive metadata folders] ***************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
changed: [stack-seed-hypervisor] => (item=openstack/content)
TASK [jriguera.configdrive : Create configdrive temporary metadata folder] ******************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/_)
TASK [jriguera.configdrive : Setup temporary folder for include files] **********************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Check if the ssh public key is defined locally] ****************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Read ssh public key locally] ***********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Check if the ssh public key is on the server] ******************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Read ssh public key on the server] *****************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Check if the ssh public key is readable] ***********************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Load file ssh public keys] *************************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Get a list the backend devices] ********************************************************************************************************************************************************************************
TASK [jriguera.configdrive : Create network_data.json] **************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Create network_info.json] **************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Create the network configuration folders] **********************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=/etc/sysconfig/network-scripts/)
TASK [jriguera.configdrive : Setup resolver file resolv.conf] *******************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup static hosts file] ***************************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup network/interfaces for Debian] ***************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup undefined backend devices] *******************************************************************************************************************************************************************************
TASK [jriguera.configdrive : Setup all defined devices] *************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item={'device': 'eth0', 'address': '172.16.32.11', 'netmask': '255.255.224.0', 'gateway': '172.16.32.1', 'bootproto': 'static'})
TASK [jriguera.configdrive : Setup route configuration for RedHat] **************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'device': 'eth0', 'address': '172.16.32.11', 'netmask': '255.255.224.0', 'gateway': '172.16.32.1', 'bootproto': 'static'})
TASK [jriguera.configdrive : List the include files on temporary folder] ********************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Get the list of include files on temporary folder] *************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Move files to destination from temporary folder] ***************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=[0, '/etc/sysconfig/network-scripts/ifcfg-eth0'])
changed: [stack-seed-hypervisor] => (item=[1, '/etc/resolv.conf'])
TASK [jriguera.configdrive : Delete temporary folder] ***************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Create meta_data.json] *****************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Copy metadata file user_data] **********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
skipping: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Create configdrive volume file] ********************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Cleanup instance configdrive folder] ***************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [Set a fact containing the configdrive image path] *************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [Ensure configdrive is decoded and decompressed] ***************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [Ensure unnecessary files are removed] *************************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=/opt/kayobe/images/60eac6c3-35f6-54d0-8e59-eef8d3c3a65a.gz)
PLAY [Ensure that the seed VM is provisioned] ***********************************************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [Check the size of the configdrive image] **********************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Gather os specific variables] ***********************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item=/home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/vars/RedHat.yml)
TASK [stackhpc.libvirt-vm : include_tasks] **************************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/autodetect.yml for stack-seed-hypervisor
TASK [stackhpc.libvirt-vm : Load the kvm kernel module] *************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Check for the KVM device] ***************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Set a fact containing the virtualisation engine] ****************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Detect the KVM emulator binary path] ****************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item=/usr/bin/kvm)
ok: [stack-seed-hypervisor] => (item=/usr/bin/qemu-kvm)
ok: [stack-seed-hypervisor] => (item=/usr/libexec/qemu-kvm)
TASK [stackhpc.libvirt-vm : Set a fact containing the KVM emulator binary path] *************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'changed': False, 'stat': {'exists': False}, 'invocation': {'module_args': {'path': '/usr/bin/kvm', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/usr/bin/kvm', 'ansible_loop_var': 'item'})
skipping: [stack-seed-hypervisor] => (item={'changed': False, 'stat': {'exists': False}, 'invocation': {'module_args': {'path': '/usr/bin/qemu-kvm', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/usr/bin/qemu-kvm', 'ansible_loop_var': 'item'})
ok: [stack-seed-hypervisor] => (item={'changed': False, 'stat': {'exists': True, 'path': '/usr/libexec/qemu-kvm', 'mode': '0755', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 14112288, 'inode': 1355261, 'dev': 2049, 'nlink': 1, 'atime': 1636374662.402019, 'mtime': 1624998325.0, 'ctime': 1636374167.8928788, 'wusr': True, 'rusr': True, 'xusr': True, 'wgrp': False, 'rgrp': True, 'xgrp': True, 'woth': False, 'roth': True, 'xoth': True, 'isuid': False, 'isgid': False, 'blocks': 27568, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': True, 'pw_name': 'root', 'gr_name': 'root', 'checksum': '94fdd53eb15813b8fc5cf6665af9c79f32924d2d', 'mimetype': 'application/x-sharedlib', 'charset': 'binary', 'version': '780127439', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/usr/libexec/qemu-kvm', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/usr/libexec/qemu-kvm', 'ansible_loop_var': 'item'})
TASK [stackhpc.libvirt-vm : Detect the QEMU emulator binary path] ***************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Set a fact containing the QEMU emulator binary path] ************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Detect the QEMU emulator binary path] ***************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Set a fact containing the QEMU emulator binary path] ************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Fail if unable to detect the emulator] **************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Ensure qemu-img is installed] ***********************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : include_tasks] **************************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/volumes.yml for stack-seed-hypervisor => (item={'name': 'stack-seed', 'memory_mb': '16384', 'vcpus': '4', 'volumes': [{'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'}, {'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'}, {'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'}], 'interfaces': [{'network': 'compute_net', 'net_name': 'compute_net'}], 'console_log_enabled': True})
TASK [stackhpc.libvirt-vm : Ensure remote images are downloaded] ****************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : Ensure local images are copied] *********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : Ensure the VM disk volumes exist] *******************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'})
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : Ensure the VM network volumes exist] ****************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'})
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : include_tasks] **************************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/vm.yml for stack-seed-hypervisor => (item={'name': 'stack-seed', 'memory_mb': '16384', 'vcpus': '4', 'volumes': [{'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'}, {'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'}, {'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'}], 'interfaces': [{'network': 'compute_net', 'net_name': 'compute_net'}], 'console_log_enabled': True})
TASK [stackhpc.libvirt-vm : Ensure the VM console log directory exists] *********************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Validate VM interfaces] *****************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/check-interface.yml for stack-seed-hypervisor => (item={'network': 'compute_net', 'net_name': 'compute_net'})
TASK [stackhpc.libvirt-vm : Check network interface has a network name] *********************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Check direct interface has an interface device name] ************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Ensure the VM is defined] ***************************************************************************************************************************************************************************************
[WARNING]: 'xml' is given - ignoring 'name'
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Ensure the VM is running and started at boot] *******************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: libvirt.libvirtError: Network not found: no network with matching name 'compute_net'
fatal: [stack-seed-hypervisor]: FAILED! => {"changed": false, "msg": "Network not found: no network with matching name 'compute_net'"}
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
stack-seed-hypervisor : ok=42 changed=16 unreachable=0 failed=1 skipped=21 rescued=0 ignored=0
Kayobe playbook(s) /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/seed-vm-provision.yml exited 2
(kayobe) [centos@stack-ctrl kayobe-config]$ fg
vim etc/kayobe/inventory/hosts etc/kayobe/networks.yml
[1]+ Stopped vim etc/kayobe/inventory/hosts etc/kayobe/networks.yml
(kayobe) [centos@stack-ctrl kayobe-config]$ kayobe seed vm provision
(kayobe) [centos@stack-ctrl kayobe-config]$ kayobe seed vm provision
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Ensure IP addresses are allocated] ****************************************************************************************************************************************************************************************************
TASK [Initialise the IP allocations fact] ***************************************************************************************************************************************************************************************************
ok: [stack-seed]
TASK [Update the IP allocations fact with IP allocation requests] ***************************************************************************************************************************************************************************
ok: [stack-seed] => (item=compute_net)
TASK [ip-allocation : Ensure IP addresses are allocated] ************************************************************************************************************************************************************************************
ok: [stack-seed -> localhost] => (item={'net_name': 'compute_net', 'cidr': '172.16.32.0/19', 'allocation_pool_start': '172.16.32.11', 'allocation_pool_end': '172.16.32.20'})
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
stack-seed : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Ensure that the seed VM configdrive exists] *******************************************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [Verify the seed host exists in the Ansible inventory] *********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [Ensure coreutils package is installed] ************************************************************************************************************************************************************************************************
[WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this
message.
changed: [stack-seed-hypervisor]
TASK [Ensure the image cache directory exists] **********************************************************************************************************************************************************************************************
[WARNING]: The value "1001" (type int) was converted to "'1001'" (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Install required packages to create the images] ****************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item={'key': 'genisoimage', 'value': {'state': 'latest'}})
ok: [stack-seed-hypervisor] => (item={'key': 'gzip', 'value': {'state': 'latest'}})
ok: [stack-seed-hypervisor] => (item={'key': 'coreutils', 'value': {'state': 'latest'}})
TASK [jriguera.configdrive : Include OS specific variables] *********************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup configdrive instance folder] *****************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Create configdrive metadata folders] ***************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
changed: [stack-seed-hypervisor] => (item=openstack/content)
TASK [jriguera.configdrive : Create configdrive temporary metadata folder] ******************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/_)
TASK [jriguera.configdrive : Setup temporary folder for include files] **********************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Check if the ssh public key is defined locally] ****************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Read ssh public key locally] ***********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Check if the ssh public key is on the server] ******************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Read ssh public key on the server] *****************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Check if the ssh public key is readable] ***********************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Load file ssh public keys] *************************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Get a list the backend devices] ********************************************************************************************************************************************************************************
TASK [jriguera.configdrive : Create network_data.json] **************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Create network_info.json] **************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Create the network configuration folders] **********************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=/etc/sysconfig/network-scripts/)
TASK [jriguera.configdrive : Setup resolver file resolv.conf] *******************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup static hosts file] ***************************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup network/interfaces for Debian] ***************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Setup undefined backend devices] *******************************************************************************************************************************************************************************
TASK [jriguera.configdrive : Setup all defined devices] *************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item={'device': 'eth0', 'address': '172.16.32.11', 'netmask': '255.255.224.0', 'gateway': '172.16.32.1', 'bootproto': 'static'})
TASK [jriguera.configdrive : Setup route configuration for RedHat] **************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'device': 'eth0', 'address': '172.16.32.11', 'netmask': '255.255.224.0', 'gateway': '172.16.32.1', 'bootproto': 'static'})
TASK [jriguera.configdrive : List the include files on temporary folder] ********************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Get the list of include files on temporary folder] *************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Move files to destination from temporary folder] ***************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=[0, '/etc/sysconfig/network-scripts/ifcfg-eth0'])
changed: [stack-seed-hypervisor] => (item=[1, '/etc/resolv.conf'])
TASK [jriguera.configdrive : Delete temporary folder] ***************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Create meta_data.json] *****************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
changed: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Copy metadata file user_data] **********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item=openstack/2012-08-10)
skipping: [stack-seed-hypervisor] => (item=openstack/latest)
TASK [jriguera.configdrive : Create configdrive volume file] ********************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [jriguera.configdrive : Cleanup instance configdrive folder] ***************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [Set a fact containing the configdrive image path] *************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [Ensure configdrive is decoded and decompressed] ***************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor]
TASK [Ensure unnecessary files are removed] *************************************************************************************************************************************************************************************************
changed: [stack-seed-hypervisor] => (item=/opt/kayobe/images/60eac6c3-35f6-54d0-8e59-eef8d3c3a65a.gz)
PLAY [Ensure that the seed VM is provisioned] ***********************************************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [Check the size of the configdrive image] **********************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Gather os specific variables] ***********************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item=/home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/vars/RedHat.yml)
TASK [stackhpc.libvirt-vm : include_tasks] **************************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/autodetect.yml for stack-seed-hypervisor
TASK [stackhpc.libvirt-vm : Load the kvm kernel module] *************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Check for the KVM device] ***************************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Set a fact containing the virtualisation engine] ****************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Detect the KVM emulator binary path] ****************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item=/usr/bin/kvm)
ok: [stack-seed-hypervisor] => (item=/usr/bin/qemu-kvm)
ok: [stack-seed-hypervisor] => (item=/usr/libexec/qemu-kvm)
TASK [stackhpc.libvirt-vm : Set a fact containing the KVM emulator binary path] *************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'changed': False, 'stat': {'exists': False}, 'invocation': {'module_args': {'path': '/usr/bin/kvm', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/usr/bin/kvm', 'ansible_loop_var': 'item'})
skipping: [stack-seed-hypervisor] => (item={'changed': False, 'stat': {'exists': False}, 'invocation': {'module_args': {'path': '/usr/bin/qemu-kvm', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/usr/bin/qemu-kvm', 'ansible_loop_var': 'item'})
ok: [stack-seed-hypervisor] => (item={'changed': False, 'stat': {'exists': True, 'path': '/usr/libexec/qemu-kvm', 'mode': '0755', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 14112288, 'inode': 1355261, 'dev': 2049, 'nlink': 1, 'atime': 1636374662.402019, 'mtime': 1624998325.0, 'ctime': 1636374167.8928788, 'wusr': True, 'rusr': True, 'xusr': True, 'wgrp': False, 'rgrp': True, 'xgrp': True, 'woth': False, 'roth': True, 'xoth': True, 'isuid': False, 'isgid': False, 'blocks': 27568, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': True, 'pw_name': 'root', 'gr_name': 'root', 'checksum': '94fdd53eb15813b8fc5cf6665af9c79f32924d2d', 'mimetype': 'application/x-sharedlib', 'charset': 'binary', 'version': '780127439', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/usr/libexec/qemu-kvm', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/usr/libexec/qemu-kvm', 'ansible_loop_var': 'item'})
TASK [stackhpc.libvirt-vm : Detect the QEMU emulator binary path] ***************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Set a fact containing the QEMU emulator binary path] ************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Detect the QEMU emulator binary path] ***************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Set a fact containing the QEMU emulator binary path] ************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Fail if unable to detect the emulator] **************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Ensure qemu-img is installed] ***********************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : include_tasks] **************************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/volumes.yml for stack-seed-hypervisor => (item={'name': 'stack-seed', 'memory_mb': '16384', 'vcpus': '4', 'volumes': [{'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'}, {'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'}, {'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'}], 'interfaces': [{'network': 'compute_net', 'net_name': 'compute_net'}], 'console_log_enabled': True})
TASK [stackhpc.libvirt-vm : Ensure remote images are downloaded] ****************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : Ensure local images are copied] *********************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : Ensure the VM disk volumes exist] *******************************************************************************************************************************************************************************
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'})
ok: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : Ensure the VM network volumes exist] ****************************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'})
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'})
skipping: [stack-seed-hypervisor] => (item={'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'})
TASK [stackhpc.libvirt-vm : include_tasks] **************************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/vm.yml for stack-seed-hypervisor => (item={'name': 'stack-seed', 'memory_mb': '16384', 'vcpus': '4', 'volumes': [{'name': 'stack-seed-root', 'pool': 'default', 'capacity': '50G', 'format': 'qcow2', 'image': 'https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210210.0.x86_64.qcow2'}, {'name': 'stack-seed-data', 'pool': 'default', 'capacity': '100G', 'format': 'qcow2'}, {'name': 'stack-seed-configdrive', 'pool': 'default', 'capacity': '385024', 'device': 'cdrom', 'format': 'raw', 'image': '/opt/kayobe/images/stack-seed.iso'}], 'interfaces': [{'network': 'compute_net', 'net_name': 'compute_net'}], 'console_log_enabled': True})
TASK [stackhpc.libvirt-vm : Ensure the VM console log directory exists] *********************************************************************************************************************************************************************
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Validate VM interfaces] *****************************************************************************************************************************************************************************************
included: /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/roles/stackhpc.libvirt-vm/tasks/check-interface.yml for stack-seed-hypervisor => (item={'network': 'compute_net', 'net_name': 'compute_net'})
TASK [stackhpc.libvirt-vm : Check network interface has a network name] *********************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Check direct interface has an interface device name] ************************************************************************************************************************************************************
skipping: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Ensure the VM is defined] ***************************************************************************************************************************************************************************************
[WARNING]: 'xml' is given - ignoring 'name'
ok: [stack-seed-hypervisor]
TASK [stackhpc.libvirt-vm : Ensure the VM is running and started at boot] *******************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: libvirt.libvirtError: Network not found: no network with matching name 'compute_net'
fatal: [stack-seed-hypervisor]: FAILED! => {"changed": false, "msg": "Network not found: no network with matching name 'compute_net'"}
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
stack-seed-hypervisor : ok=42 changed=16 unreachable=0 failed=1 skipped=21 rescued=0 ignored=0
Kayobe playbook(s) /home/centos/kayobe-workspace/venvs/kayobe/share/kayobe/ansible/seed-vm-provision.yml exited 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment