Last active
February 13, 2019 15:39
-
-
Save mcornea/370e37608ccee05c0ae51cb7af8477ae to your computer and use it in GitHub Desktop.
temp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@sealusa2 rhhi]# cat linchpin.log | |
DEBUG 2019-02-13 17:34:24,234 Processing target: libvirt-network | |
DEBUG 2019-02-13 17:34:24,238 rundb_id: 24 | |
DEBUG 2019-02-13 17:34:24,238 uhash: 4e5fc8 | |
DEBUG 2019-02-13 17:34:24,319 calling: preup | |
DEBUG 2019-02-13 17:34:24,319 hook preup initiated | |
DEBUG 2019-02-13 17:34:53,690 Processing target: libvirt-network | |
DEBUG 2019-02-13 17:34:53,694 rundb_id: 25 | |
DEBUG 2019-02-13 17:34:53,694 uhash: 42d268 | |
DEBUG 2019-02-13 17:34:53,776 calling: preup | |
DEBUG 2019-02-13 17:34:53,776 hook preup initiated | |
DEBUG 2019-02-13 17:35:32,465 Processing target: libvirt-network | |
DEBUG 2019-02-13 17:35:32,469 rundb_id: 26 | |
DEBUG 2019-02-13 17:35:32,469 uhash: e649d9 | |
DEBUG 2019-02-13 17:35:32,550 calling: preup | |
DEBUG 2019-02-13 17:35:32,550 hook preup initiated | |
INFO 2019-02-13 17:35:48,453 Playbook Return code 0 | |
DEBUG 2019-02-13 17:35:48,453 STATE - Action 'up' on Target 'libvirt-network' is complete | |
DEBUG 2019-02-13 17:35:48,453 hook postinv initiated | |
DEBUG 2019-02-13 17:35:48,466 Processing target: libvirt-new | |
DEBUG 2019-02-13 17:35:48,469 rundb_id: 20 | |
DEBUG 2019-02-13 17:35:48,469 uhash: b78486 | |
DEBUG 2019-02-13 17:35:48,501 calling: preup | |
DEBUG 2019-02-13 17:35:48,501 hook preup initiated | |
INFO 2019-02-13 17:36:30,519 Playbook Return code 0 | |
DEBUG 2019-02-13 17:36:30,519 STATE - Action 'up' on Target 'libvirt-new' is complete | |
DEBUG 2019-02-13 17:36:30,519 hook postinv initiated | |
DEBUG 2019-02-13 17:36:30,566 hook postup initiated | |
DEBUG 2019-02-13 17:36:30,566 STATE - | |
ID: 21 | |
Action: up | |
Target Run ID uHash Exit Code | |
------------------------------------------------- | |
libvirt-network 26 e649d9 0 | |
libvirt-new 20 b78486 0 | |
[root@sealusa2 rhhi]# cat resources/rhhi.output | |
[{"ip": "? (192.168.123.139) at 52:54:00:12:1f:b7 [ether] on external", "name": "master_0", "resource_type": "libvirt_res"}] | |
[root@sealusa2 rhhi]# cat linchpin_out.log | |
[WARNING]: Unable to parse /root/linchpin/rhhi/localhost as an inventory source | |
[WARNING]: No inventory was parsed, only implicit localhost is available | |
PLAY [schema check and Pre Provisioning Activities on topology_file] ************************************************************************************************************************************************************************* | |
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [common : assign async value] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"async": false}, "changed": false} | |
TASK [common : declare async_types array] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [common : output vars] ****************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_outputs": {}}, "changed": false} | |
PLAY [Provisioning libvirt resources] ******************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [libvirt : Gather facts] **************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [libvirt : declaring output vars] ******************************************************************************************************************************************************************************************************* | |
ok: [localhost] => {"ansible_facts": {"topology_outputs_libvirt_nodes": []}, "changed": false} | |
TASK [libvirt : Initiating libvirt resource group] ******************************************************************************************************************************************************************************************* | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_resource_group.yml for localhost => (item={'resource_group_name': u'libvirt_network', 'resource_definitions': [{'bridge': u'external', 'domain': u'redhat.local', 'name': u'external', 'dhcp_start': u'192.168.123.100', 'dhcp_end': u'192.168.123.150', 'ip': u'192.168.123.1', 'uri': u'qemu:///system', 'role': u'libvirt_network'}, {'bridge': u'internal', 'ip': u'192.168.124.1', 'role': u'libvirt_network', 'uri': u'qemu:///system', 'name': u'internal'}], 'resource_group_type': u'libvirt'}) | |
TASK [libvirt : gather resource definitions of current group] ******************************************************************************************************************************************************************************** | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_res_defs.yml for localhost | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_res_defs.yml for localhost | |
TASK [libvirt : Get host from uri] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"uri_hostname": "localhost"}, "changed": false} | |
TASK [libvirt : set resource_type] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"resource_type": "libvirt_network"}, "changed": false} | |
TASK [libvirt : provision libvirt network] *************************************************************************************************************************************************************************************************** | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_libvirt_network.yml for localhost | |
TASK [libvirt : define network] ************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false} | |
TASK [libvirt : start network] *************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false} | |
TASK [libvirt : Set the resource node name] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"libvirt_resource_name": "external"}, "changed": false} | |
TASK [libvirt : Create name using uhash value] *********************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : provision libvirt node] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : teardown libvirt node] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Get host from uri] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"uri_hostname": "localhost"}, "changed": false} | |
TASK [libvirt : set resource_type] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"resource_type": "libvirt_network"}, "changed": false} | |
TASK [libvirt : provision libvirt network] *************************************************************************************************************************************************************************************************** | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_libvirt_network.yml for localhost | |
TASK [libvirt : define network] ************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false} | |
TASK [libvirt : start network] *************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false} | |
TASK [libvirt : Set the resource node name] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"libvirt_resource_name": "internal"}, "changed": false} | |
TASK [libvirt : Create name using uhash value] *********************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : provision libvirt node] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : teardown libvirt node] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
PLAY [Writing contents to file] ************************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Declare topology_outputs] ******************************************************************************************************************************************************************************************* | |
ok: [localhost] => {"ansible_facts": {"topology_outputs": []}, "changed": false} | |
TASK [gather_resources : Add dummy_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add nummy_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_server_res] ************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_keypair_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_obj_res] ***************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_volume_res] ************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_heat_res] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_sg_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_network_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_ec2_res] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_s3_res] ***************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_ec2_key_res] ************************************************************************************************************************************************************************************************ | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_cfn_res] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add gcloud_gce_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add duffy_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add rax_server_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add beaker_res] ***************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add libvirt_res] **************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_outputs": []}, "changed": false} | |
TASK [gather_resources : Add ovirt_vms_res] ************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : set value] ********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"value": [{"resources": []}]}, "changed": false} | |
TASK [gather_resources : Add topology_outputs to the rundb] ********************************************************************************************************************************************************************************** | |
changed: [localhost] => {"changed": true, "output": 26} | |
TASK [gather_resources : Create resources directory (v1.0.x compatibility)] ****************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/root/linchpin/rhhi/resources/", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 4096, "state": "directory", "uid": 0} | |
TASK [gather_resources : set topology_name] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_name": "libvirt_network"}, "changed": false} | |
TASK [gather_resources : Generate resources file (v1.0.x compatibility)] ********************************************************************************************************************************************************************* | |
ok: [localhost] => {"changed": false, "checksum": "cd0d4cc32346750408f7d4f5e78ec9a6e5b79a0d", "dest": "/root/linchpin/rhhi/resources/libvirt_network.output", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/root/linchpin/rhhi/resources/libvirt_network.output", "secontext": "system_u:object_r:admin_home_t:s0", "size": 3, "state": "file", "uid": 0} | |
TASK [gather_resources : set topology_name] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_name": "libvirt_network"}, "changed": false} | |
TASK [gather_resources : get inventory file name from layout] ******************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Updating uhash-based inventory_path with the absolute path] ********************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Updating inventory_path with the absolute path] ********************************************************************************************************************************************************************* | |
ok: [localhost] => {"ansible_facts": {"inventory_path": "/root/linchpin/rhhi/inventories/libvirt_network.inventory"}, "changed": false} | |
TASK [gather_resources : Info] *************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => { | |
"msg": "/root/linchpin/rhhi/inventories/libvirt_network.inventory" | |
} | |
TASK [gather_resources : Add inventory_path to outputs] ************************************************************************************************************************************************************************************** | |
changed: [localhost] => {"changed": true, "output": 26} | |
PLAY RECAP *********************************************************************************************************************************************************************************************************************************** | |
localhost : ok=33 changed=2 unreachable=0 failed=0 | |
Action 'up' on Target 'libvirt-network' is complete | |
PLAY [schema check and Pre Provisioning Activities on topology_file] ************************************************************************************************************************************************************************* | |
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [common : assign async value] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"async": false}, "changed": false} | |
TASK [common : declare async_types array] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [common : output vars] ****************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_outputs": {}}, "changed": false} | |
PLAY [Provisioning libvirt resources] ******************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [libvirt : Gather facts] **************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [libvirt : declaring output vars] ******************************************************************************************************************************************************************************************************* | |
ok: [localhost] => {"ansible_facts": {"topology_outputs_libvirt_nodes": []}, "changed": false} | |
TASK [libvirt : Initiating libvirt resource group] ******************************************************************************************************************************************************************************************* | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_resource_group.yml for localhost => (item={'resource_group_name': u'libvirt', 'resource_definitions': [{'count': 1, 'name': u'master', 'ssh_key': u'id_rsa', 'uri': u'qemu:///system', 'networks': [{'name': u'external'}, {'name': u'internal'}], 'vcpus': 4, 'role': u'libvirt_node', 'memory': 16384, 'arch': u'x86_64', 'image_src': u'file:///var/lib/libvirt/images/rhel-guest-image-7.6-215.x86_64.qcow2'}], 'resource_group_type': u'libvirt'}) | |
TASK [libvirt : gather resource definitions of current group] ******************************************************************************************************************************************************************************** | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_res_defs.yml for localhost | |
TASK [libvirt : Get host from uri] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"uri_hostname": "localhost"}, "changed": false} | |
TASK [libvirt : set resource_type] *********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"resource_type": "libvirt_node"}, "changed": false} | |
TASK [libvirt : provision libvirt network] *************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Set the resource node name] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"libvirt_resource_name": "master"}, "changed": false} | |
TASK [libvirt : Create name using uhash value] *********************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : provision libvirt node] ****************************************************************************************************************************************************************************************************** | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/provision_libvirt_node.yml for localhost | |
TASK [libvirt : register resource count] ***************************************************************************************************************************************************************************************************** | |
changed: [localhost] => {"changed": true, "cmd": "python -c \"print [x for x in range( 0, 1 )]\"", "delta": "0:00:00.011155", "end": "2019-02-13 17:35:56.378182", "rc": 0, "start": "2019-02-13 17:35:56.367027", "stderr": "", "stderr_lines": [], "stdout": "[0]", "stdout_lines": ["[0]"]} | |
TASK [libvirt : does node already exist] ***************************************************************************************************************************************************************************************************** | |
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: VMNotFound: virtual machine master_0 not found | |
failed: [localhost] (item=[u'master', 0]) => {"changed": false, "msg": "virtual machine master_0 not found", "nodeinfo": ["master", 0]} | |
...ignoring | |
TASK [libvirt : set empty local_image_path] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"local_image_path": ""}, "changed": false} | |
TASK [libvirt : set empty img_src_ext] ******************************************************************************************************************************************************************************************************* | |
ok: [localhost] => {"ansible_facts": {"img_src_ext": ""}, "changed": false} | |
TASK [libvirt : copy image_src: localhost] *************************************************************************************************************************************************************************************************** | |
included: /root/linchpin/.venv/lib/python2.7/site-packages/linchpin/provision/roles/libvirt/tasks/copy_image_src_local.yml for localhost | |
TASK [libvirt : set local_image_path] ******************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"local_image_path": "/var/lib/libvirt/images/linchpin/"}, "changed": false} | |
TASK [libvirt : delegate_to localhost :ensure local_image_path directory exists] ************************************************************************************************************************************************************* | |
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/var/lib/libvirt/images/linchpin/", "secontext": "unconfined_u:object_r:virt_image_t:s0", "size": 4096, "state": "directory", "uid": 0} | |
TASK [libvirt : set image_src_basename] ****************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"image_src_basename": "rhel-guest-image-7.6-215.x86_64.qcow2"}, "changed": false} | |
TASK [libvirt : Register local_image_src absolute path] ************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"local_image_src": "/var/lib/libvirt/images/linchpin//rhel-guest-image-7.6-215.x86_64.qcow2"}, "changed": false} | |
TASK [libvirt : does a local copy of image_src exist?] *************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false, "stat": {"atime": 1549929629.2366087, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 1366536, "charset": "binary", "checksum": "6016c0adf75a33a3cb90884a9de9ba1482c7b2df", "ctime": 1549929629.2356088, "dev": 64768, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19136622, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "application/octet-stream", "mode": "0644", "mtime": 1549929628.3016348, "nlink": 1, "path": "/var/lib/libvirt/images/linchpin//rhel-guest-image-7.6-215.x86_64.qcow2", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 699662336, "uid": 0, "version": "18446744072690668985", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} | |
TASK [libvirt : download image_src] ********************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : determine image_src mime_type] *********************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false, "stat": {"atime": 1550072157.5259604, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 1366536, "charset": "binary", "checksum": "6016c0adf75a33a3cb90884a9de9ba1482c7b2df", "ctime": 1549929629.2356088, "dev": 64768, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19136622, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "application/octet-stream", "mode": "0644", "mtime": 1549929628.3016348, "nlink": 1, "path": "/var/lib/libvirt/images/linchpin//rhel-guest-image-7.6-215.x86_64.qcow2", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 699662336, "uid": 0, "version": "18446744072690668985", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} | |
TASK [libvirt : debug] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => { | |
"msg": { | |
"changed": false, | |
"failed": false, | |
"stat": { | |
"atime": 1550072157.5259604, | |
"attr_flags": "e", | |
"attributes": [ | |
"extents" | |
], | |
"block_size": 4096, | |
"blocks": 1366536, | |
"charset": "binary", | |
"checksum": "6016c0adf75a33a3cb90884a9de9ba1482c7b2df", | |
"ctime": 1549929629.2356088, | |
"dev": 64768, | |
"device_type": 0, | |
"executable": false, | |
"exists": true, | |
"gid": 0, | |
"gr_name": "root", | |
"inode": 19136622, | |
"isblk": false, | |
"ischr": false, | |
"isdir": false, | |
"isfifo": false, | |
"isgid": false, | |
"islnk": false, | |
"isreg": true, | |
"issock": false, | |
"isuid": false, | |
"mimetype": "application/octet-stream", | |
"mode": "0644", | |
"mtime": 1549929628.3016348, | |
"nlink": 1, | |
"path": "/var/lib/libvirt/images/linchpin//rhel-guest-image-7.6-215.x86_64.qcow2", | |
"pw_name": "root", | |
"readable": true, | |
"rgrp": true, | |
"roth": true, | |
"rusr": true, | |
"size": 699662336, | |
"uid": 0, | |
"version": "18446744072690668985", | |
"wgrp": false, | |
"woth": false, | |
"writeable": true, | |
"wusr": true, | |
"xgrp": false, | |
"xoth": false, | |
"xusr": false | |
} | |
} | |
} | |
TASK [libvirt : set image_src for uncompressed files] **************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"img_src": "/var/lib/libvirt/images/linchpin//rhel-guest-image-7.6-215.x86_64.qcow2"}, "changed": false} | |
TASK [libvirt : set image_src basename to remove .xz extension] ****************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : set img_src for xz compressed files] ***************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : get img_src_basename extension] ********************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"img_src_ext": "qcow2"}, "changed": false} | |
TASK [libvirt : get img_src_basename extension] ********************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : does img_src exist at local_image_path?] ************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : uncompress xz local_image_src] *********************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : cp img_src to match node name] *********************************************************************************************************************************************************************************************** | |
changed: [localhost] => (item=[u'/var/lib/libvirt/images/linchpin/', u'master', 0, u'qcow2']) => {"changed": true, "checksum": "6016c0adf75a33a3cb90884a9de9ba1482c7b2df", "dest": "/var/lib/libvirt/images/linchpin/master_0.qcow2", "gid": 0, "group": "root", "img_item": ["/var/lib/libvirt/images/linchpin/", "master", 0, "qcow2"], "md5sum": "9cb56c82eef853f5b54afd81ec226bd7", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:virt_image_t:s0", "size": 699662336, "src": "/root/.ansible/tmp/ansible-tmp-1550072160.27-19246070724554/source", "state": "file", "uid": 0} | |
TASK [libvirt : copy image_src: remote] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : set qemu_path] *************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"qemu_path": "/usr/libexec/"}, "changed": false} | |
TASK [libvirt : set cloud config default] **************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"cloud_config": {}}, "changed": false} | |
TASK [libvirt : set cloud_config virt_type] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"virt_type": "cloud-init"}, "changed": false} | |
TASK [libvirt : define node template] ******************************************************************************************************************************************************************************************************** | |
ok: [localhost] => (item=[u'qemu:///system', {'count': 1, 'name': u'master', 'networks': [{'name': u'external'}, {'name': u'internal'}], 'ssh_key': u'id_rsa', 'uri': u'qemu:///system', 'vcpus': 4, 'role': u'libvirt_node', 'memory': 16384, 'arch': u'x86_64', 'image_src': u'file:///var/lib/libvirt/images/rhel-guest-image-7.6-215.x86_64.qcow2'}, 0, u'/var/lib/libvirt/images/linchpin/', u'qcow2']) => {"changed": false, "checksum": "5728a45d19a40c3dc4c7bf73c08ecf539024e2e2", "definition": ["qemu:///system", {"arch": "x86_64", "count": 1, "image_src": "file:///var/lib/libvirt/images/rhel-guest-image-7.6-215.x86_64.qcow2", "memory": 16384, "name": "master", "networks": [{"name": "external"}, {"name": "internal"}], "role": "libvirt_node", "ssh_key": "id_rsa", "uri": "qemu:///system", "vcpus": 4}, 0, "/var/lib/libvirt/images/linchpin/", "qcow2"], "dest": "/tmp/master_/var/lib/libvirt/images/linchpin/libvirt_node.xml.j2", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/master_/var/lib/libvirt/images/linchpin/libvirt_node.xml.j2", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 1842, "state": "file", "uid": 0} | |
TASK [libvirt : set_ssh_key_name] ************************************************************************************************************************************************************************************************************ | |
ok: [localhost] => {"ansible_facts": {"ssh_key_path": "~/.ssh/id_rsa"}, "changed": false} | |
TASK [libvirt : local: does ssh key already exists ?] **************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false, "stat": {"atime": 1549993367.8335965, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2d7ba385d4a3a393606219a9513fbee8953fa69c", "ctime": 1533250668.992924, "dev": 64768, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17563666, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1533250668.992924, "nlink": 1, "path": "/root/.ssh/id_rsa", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1679, "uid": 0, "version": "492522405", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} | |
TASK [libvirt : remote: does ssh key already exists ?] *************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : local: Generate ssh keys when they don't exist] ****************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : remote: Generate ssh keys when they don't exist] ***************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : local: cat out contents of public key] *************************************************************************************************************************************************************************************** | |
changed: [localhost] => {"changed": true, "cmd": "cat ~/.ssh/id_rsa.pub", "delta": "0:00:00.003102", "end": "2019-02-13 17:36:05.811308", "rc": 0, "start": "2019-02-13 17:36:05.808206", "stderr": "", "stderr_lines": [], "stdout": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGeNoyMHkw/P66BuQaKPB1T8En0AkUYF0rq9qr9sw0FAX2ozfbYvbnfT6UiPnqTab61yCjyYwsvBWGYY6LSYPs3Yf86DU4WhxKEgosWinRAYjLBvIn4tLSWaFu1s5wydJf+QLoI1w+0PG6GVNQsxCvisyWDa0DmIcYRhK08NUuwpsS6LeU2SXFc7MJx9ChFQwvxWMZo5EiyY6a3sx26SD/AUyaAqt4mR9ZFCtEDn59BcYAqVLeEuP0qLbrBGg0MeYZguFEpj8esBvc75xKTY3HpBM0WUt7390ifVtQ1v6XdGRndSNf2SWI4UaaSIbf2KuG7vfHyLSxYKuSxqhze/OZ [email protected]", "stdout_lines": ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGeNoyMHkw/P66BuQaKPB1T8En0AkUYF0rq9qr9sw0FAX2ozfbYvbnfT6UiPnqTab61yCjyYwsvBWGYY6LSYPs3Yf86DU4WhxKEgosWinRAYjLBvIn4tLSWaFu1s5wydJf+QLoI1w+0PG6GVNQsxCvisyWDa0DmIcYRhK08NUuwpsS6LeU2SXFc7MJx9ChFQwvxWMZo5EiyY6a3sx26SD/AUyaAqt4mR9ZFCtEDn59BcYAqVLeEuP0qLbrBGg0MeYZguFEpj8esBvc75xKTY3HpBM0WUt7390ifVtQ1v6XdGRndSNf2SWI4UaaSIbf2KuG7vfHyLSxYKuSxqhze/OZ [email protected]"]} | |
TASK [libvirt : remote: cat out contents of public key] ************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Add additional storage] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', u'/var/lib/libvirt/images/linchpin/', u'qcow2', u'1G', 0]) => {"changed": false, "definition": ["master", "/var/lib/libvirt/images/linchpin/", "qcow2", "1G", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Add additional storage] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', u'/var/lib/libvirt/images/linchpin/', u'qcow2', u'1G', 0]) => {"changed": false, "definition": ["master", "/var/lib/libvirt/images/linchpin/", "qcow2", "1G", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : include_tasks] *************************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Create directories] ********************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', 0]) => {"changed": false, "definition": ["master", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Create directories] ********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => (item=[u'master', 0]) => {"changed": false, "definition": ["master", 0], "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/tmp/vm-master_0", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} | |
TASK [libvirt : Prepare cloud-config/user-data-local] **************************************************************************************************************************************************************************************** | |
ok: [localhost] => (item=[u'master', 0]) => {"changed": false, "checksum": "929ba14009300813449a7580050c2c1ac31d63f7", "definition": ["master", 0], "dest": "/tmp/vm-master_0/user-data", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/vm-master_0/user-data", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 829, "state": "file", "uid": 0} | |
TASK [libvirt : Prepare cloud-config/user-data-remote] *************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', 0]) => {"changed": false, "definition": ["master", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Prepare cloud-config/meta-data] ********************************************************************************************************************************************************************************************** | |
ok: [localhost] => (item=[u'master', 0]) => {"changed": false, "checksum": "8496973e5df69a49ceff9d4652a64af263206942", "definition": ["master", 0], "dest": "/tmp/vm-master_0/meta-data", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/tmp/vm-master_0/meta-data", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 59, "state": "file", "uid": 0} | |
TASK [libvirt : Prepare cloud-config/meta-data remote] *************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', 0]) => {"changed": false, "definition": ["master", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : localhost: Generate ci data cd image for cloud-init when cloud config is defined] ******************************************************************************************************************************************** | |
changed: [localhost] => (item=[u'master', 0]) => {"changed": true, "cmd": ["mkisofs", "-o", "/tmp/vm-master_0.iso", "-V", "cidata", "-r", "-J", "--quiet", "/tmp/vm-master_0/user-data", "/tmp/vm-master_0/meta-data"], "definition": ["master", 0], "delta": "0:00:00.005598", "end": "2019-02-13 17:36:07.372345", "rc": 0, "start": "2019-02-13 17:36:07.366747", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} | |
TASK [libvirt : remote_host: Generate ci data cd image for cloud-init when cloud config is defined] ****************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', 0]) => {"changed": false, "definition": ["master", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : debug] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => { | |
"msg": "I execute normally" | |
} | |
TASK [libvirt : Install VM] ****************************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', u'/var/lib/libvirt/images/linchpin/', u'qcow2', u'virbr0', u'16384', u'qcow2', u'qemu:///system', 0]) => {"changed": false, "definition": ["master", "/var/lib/libvirt/images/linchpin/", "qcow2", "virbr0", "16384", "qcow2", "qemu:///system", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Install VM] ****************************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', u'/var/lib/libvirt/images/linchpin/', u'qcow2', u'virbr0', u'16384', u'qcow2', u'qemu:///system', 0]) => {"changed": false, "definition": ["master", "/var/lib/libvirt/images/linchpin/", "qcow2", "virbr0", "16384", "qcow2", "qemu:///system", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Remove cloud-init cdrom] ***************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=[u'master', u'qemu:///system', 0]) => {"changed": false, "definition": ["master", "qemu:///system", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : define node when the cloud_config not defined] ******************************************************************************************************************************************************************************* | |
changed: [localhost] => (item=[u'qemu:///system', {'count': 1, 'name': u'master', 'networks': [{'name': u'external'}, {'name': u'internal'}], 'ssh_key': u'id_rsa', 'uri': u'qemu:///system', 'vcpus': 4, 'role': u'libvirt_node', 'memory': 16384, 'arch': u'x86_64', 'image_src': u'file:///var/lib/libvirt/images/rhel-guest-image-7.6-215.x86_64.qcow2'}, 0, u'/var/lib/libvirt/images/linchpin/', u'qcow2']) => {"changed": true, "created": "master", "definition": ["qemu:///system", {"arch": "x86_64", "count": 1, "image_src": "file:///var/lib/libvirt/images/rhel-guest-image-7.6-215.x86_64.qcow2", "memory": 16384, "name": "master", "networks": [{"name": "external"}, {"name": "internal"}], "role": "libvirt_node", "ssh_key": "id_rsa", "uri": "qemu:///system", "vcpus": 4}, 0, "/var/lib/libvirt/images/linchpin/", "qcow2"]} | |
TASK [libvirt : Create disk if it does not exist] ******************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Start VM] ******************************************************************************************************************************************************************************************************************** | |
changed: [localhost] => (item=[u'master', u'qemu:///system', 0]) => {"changed": true, "definition": ["master", "qemu:///system", 0], "msg": 0} | |
TASK [libvirt : mac_and_ip | extract mac address] ******************************************************************************************************************************************************************************************** | |
changed: [localhost] => (item=[u'master', u'qemu:///system', 0]) => {"changed": true, "cmd": "virsh -c qemu:///system dumpxml master_0 | grep 'mac address' | cut -f 2 -d \"'\"", "delta": "0:00:00.021597", "end": "2019-02-13 17:36:12.133470", "node": ["master", "qemu:///system", 0], "rc": 0, "start": "2019-02-13 17:36:12.111873", "stderr": "", "stderr_lines": [], "stdout": "52:54:00:12:1f:b7\n52:54:00:87:e5:2a", "stdout_lines": ["52:54:00:12:1f:b7", "52:54:00:87:e5:2a"]} | |
TASK [libvirt : mac_and_ip | wait up to 5 mins for dhcp ip address] ************************************************************************************************************************************************************************** | |
FAILED - RETRYING: mac_and_ip | wait up to 5 mins for dhcp ip address (30 retries left). | |
changed: [localhost] => (item=0) => {"attempts": 2, "changed": true, "cmd": "/usr/sbin/arp -an | grep -F 52:54:00:12:1f:b7\n52:54:00:87:e5:2a | cut -f 2 -d \"(\" | cut -f 1 -d \")\"", "delta": "0:00:00.005717", "end": "2019-02-13 17:36:22.453138", "mac": 0, "rc": 0, "start": "2019-02-13 17:36:22.447421", "stderr": "/bin/sh: line 1: 52:54:00:87:e5:2a: command not found", "stderr_lines": ["/bin/sh: line 1: 52:54:00:87:e5:2a: command not found"], "stdout": "? (192.168.123.139) at 52:54:00:12:1f:b7 [ether] on external", "stdout_lines": ["? (192.168.123.139) at 52:54:00:12:1f:b7 [ether] on external"]} | |
TASK [libvirt : mac_and_ip | wait up to 5 mins for dhcp ip address] ************************************************************************************************************************************************************************** | |
skipping: [localhost] => (item=0) => {"changed": false, "mac": 0, "skip_reason": "Conditional result was False"} | |
TASK [libvirt : Remove cloud-init cdrom] ***************************************************************************************************************************************************************************************************** | |
changed: [localhost] => (item=[u'master', u'qemu:///system', 0]) => {"changed": true, "cmd": ["virsh", "-c", "qemu:///system", "change-media", "master_0", "hda", "--eject", "--config"], "definition": ["master", "qemu:///system", 0], "delta": "0:00:00.034042", "end": "2019-02-13 17:36:22.830523", "rc": 0, "start": "2019-02-13 17:36:22.796481", "stderr": "", "stderr_lines": [], "stdout": "Successfully ejected media.", "stdout_lines": ["Successfully ejected media."]} | |
TASK [libvirt : dump node data] ************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => (item=[u'master', u'qemu:///system', 0]) => {"changed": false, "data": ["master", "qemu:///system", 0], "get_xml": "<domain type='kvm' id='15'>\n <name>master_0</name>\n <uuid>d5d20610-18f4-482a-8edd-faa6abe6cb65</uuid>\n <memory unit='KiB'>16777216</memory>\n <currentMemory unit='KiB'>16777216</currentMemory>\n <vcpu placement='static'>4</vcpu>\n <resource>\n <partition>/machine</partition>\n </resource>\n <os>\n <type arch='x86_64' machine='pc-i440fx-rhel7.6.0'>hvm</type>\n <boot dev='hd'/>\n </os>\n <features>\n <acpi/>\n <apic/>\n <pae/>\n </features>\n <cpu mode='custom' match='exact' check='full'>\n <model fallback='forbid'>Skylake-Client</model>\n <vendor>Intel</vendor>\n <feature policy='require' name='ss'/>\n <feature policy='require' name='vmx'/>\n <feature policy='require' name='hypervisor'/>\n <feature policy='require' name='tsc_adjust'/>\n <feature policy='require' name='pdpe1gb'/>\n <feature policy='disable' name='mpx'/>\n <feature policy='disable' name='xsavec'/>\n <feature policy='disable' name='xgetbv1'/>\n </cpu>\n <clock offset='utc'/>\n <on_poweroff>destroy</on_poweroff>\n <on_reboot>restart</on_reboot>\n <on_crash>destroy</on_crash>\n <devices>\n <emulator>/usr/libexec/qemu-kvm</emulator>\n <disk type='file' device='cdrom'>\n <driver name='qemu' type='raw'/>\n <source file='/tmp/vm-master_0.iso'/>\n <backingStore/>\n <target dev='hda' bus='ide'/>\n <readonly/>\n <alias name='ide0-0-0'/>\n <address type='drive' controller='0' bus='0' target='0' unit='0'/>\n </disk>\n <disk type='file' device='disk'>\n <driver name='qemu' type='qcow2'/>\n <source file='/var/lib/libvirt/images/linchpin//master_0.qcow2'/>\n <backingStore/>\n <target dev='vda' bus='virtio'/>\n <alias name='virtio-disk0'/>\n <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>\n </disk>\n <controller type='usb' index='0' model='piix3-uhci'>\n <alias name='usb'/>\n <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>\n </controller>\n <controller type='pci' index='0' model='pci-root'>\n <alias name='pci.0'/>\n </controller>\n <controller type='ide' index='0'>\n <alias name='ide'/>\n <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>\n </controller>\n <interface type='network'>\n <mac address='52:54:00:12:1f:b7'/>\n <source network='external' bridge='external'/>\n <target dev='vnet0'/>\n <guest dev='eth0'/>\n <model type='virtio'/>\n <alias name='net0'/>\n <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>\n </interface>\n <interface type='network'>\n <mac address='52:54:00:87:e5:2a'/>\n <source network='internal' bridge='internal'/>\n <target dev='vnet1'/>\n <guest dev='eth1'/>\n <model type='virtio'/>\n <alias name='net1'/>\n <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>\n </interface>\n <serial type='pty'>\n <source path='/dev/pts/2'/>\n <target type='isa-serial' port='0'>\n <model name='isa-serial'/>\n </target>\n <alias name='serial0'/>\n </serial>\n <console type='pty' tty='/dev/pts/2'>\n <source path='/dev/pts/2'/>\n <target type='serial' port='0'/>\n <alias name='serial0'/>\n </console>\n <input type='mouse' bus='ps2'>\n <alias name='input0'/>\n </input>\n <input type='keyboard' bus='ps2'>\n <alias name='input1'/>\n </input>\n <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' keymap='en-us'>\n <listen type='address' address='127.0.0.1'/>\n </graphics>\n <video>\n <model type='cirrus' vram='16384' heads='1' primary='yes'/>\n <alias name='video0'/>\n <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>\n </video>\n <memballoon model='virtio'>\n <alias name='balloon0'/>\n <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>\n </memballoon>\n </devices>\n <seclabel type='dynamic' model='selinux' relabel='yes'>\n <label>system_u:system_r:svirt_t:s0:c134,c374</label>\n <imagelabel>system_u:object_r:svirt_image_t:s0:c134,c374</imagelabel>\n </seclabel>\n <seclabel type='dynamic' model='dac' relabel='yes'>\n <label>+107:+107</label>\n <imagelabel>+107:+107</imagelabel>\n </seclabel>\n</domain>\n"} | |
TASK [libvirt : Set Output name] ************************************************************************************************************************************************************************************************************* | |
ok: [localhost] => (item=[u'master', 0]) => {"ansible_facts": {"output_name": "master_0"}, "changed": false, "data": ["master", 0]} | |
TASK [libvirt : Append ip_addresses and node_data to topology_outputs_libvirt_nodes] ********************************************************************************************************************************************************* | |
ok: [localhost] => (item=[u'master_0', 0]) => {"ansible_facts": {"topology_outputs_libvirt_nodes": [{"ip": "? (192.168.123.139) at 52:54:00:12:1f:b7 [ether] on external", "name": "master_0", "resource_type": "libvirt_res"}]}, "changed": false, "data": ["master_0", 0]} | |
TASK [libvirt : remote: Append ip_addresses and node_data to topology_outputs_libvirt_nodes] ************************************************************************************************************************************************* | |
skipping: [localhost] => (item=[u'master_0', 0]) => {"changed": false, "data": ["master_0", 0], "skip_reason": "Conditional result was False"} | |
TASK [libvirt : teardown libvirt node] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
PLAY [Writing contents to file] ************************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** | |
ok: [localhost] | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Wait on jobs] ******************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Declare topology_outputs] ******************************************************************************************************************************************************************************************* | |
ok: [localhost] => {"ansible_facts": {"topology_outputs": []}, "changed": false} | |
TASK [gather_resources : Add dummy_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add nummy_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_server_res] ************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_keypair_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_obj_res] ***************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_volume_res] ************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_heat_res] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_sg_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add os_network_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_ec2_res] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_s3_res] ***************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_ec2_key_res] ************************************************************************************************************************************************************************************************ | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add aws_cfn_res] **************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add gcloud_gce_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add duffy_res] ****************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add rax_server_res] ************************************************************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add beaker_res] ***************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Add libvirt_res] **************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_outputs": [{"ip": "? (192.168.123.139) at 52:54:00:12:1f:b7 [ether] on external", "name": "master_0", "resource_type": "libvirt_res"}]}, "changed": false} | |
TASK [gather_resources : Add ovirt_vms_res] ************************************************************************************************************************************************************************************************** | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : set value] ********************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"value": [{"resources": [{"ip": "? (192.168.123.139) at 52:54:00:12:1f:b7 [ether] on external", "name": "master_0", "resource_type": "libvirt_res"}]}]}, "changed": false} | |
TASK [gather_resources : Add topology_outputs to the rundb] ********************************************************************************************************************************************************************************** | |
changed: [localhost] => {"changed": true, "output": 20} | |
TASK [gather_resources : Create resources directory (v1.0.x compatibility)] ****************************************************************************************************************************************************************** | |
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/root/linchpin/rhhi/resources/", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 4096, "state": "directory", "uid": 0} | |
TASK [gather_resources : set topology_name] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_name": "rhhi"}, "changed": false} | |
TASK [gather_resources : Generate resources file (v1.0.x compatibility)] ********************************************************************************************************************************************************************* | |
changed: [localhost] => {"changed": true, "checksum": "39d68ccd6a07ab85b7179065044aeafee12ef3df", "dest": "/root/linchpin/rhhi/resources/rhhi.output", "gid": 0, "group": "root", "md5sum": "d15a9d8129cae5b24ed20d3e60cb2ed2", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:admin_home_t:s0", "size": 125, "src": "/root/.ansible/tmp/ansible-tmp-1550072189.03-280490022729154/source", "state": "file", "uid": 0} | |
TASK [gather_resources : set topology_name] ************************************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {"topology_name": "rhhi"}, "changed": false} | |
TASK [gather_resources : get inventory file name from layout] ******************************************************************************************************************************************************************************** | |
ok: [localhost] => {"ansible_facts": {}, "changed": false} | |
TASK [gather_resources : Updating uhash-based inventory_path with the absolute path] ********************************************************************************************************************************************************* | |
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} | |
TASK [gather_resources : Updating inventory_path with the absolute path] ********************************************************************************************************************************************************************* | |
ok: [localhost] => {"ansible_facts": {"inventory_path": "/root/linchpin/rhhi/inventories/rhhi.inventory"}, "changed": false} | |
TASK [gather_resources : Info] *************************************************************************************************************************************************************************************************************** | |
ok: [localhost] => { | |
"msg": "/root/linchpin/rhhi/inventories/rhhi.inventory" | |
} | |
TASK [gather_resources : Add inventory_path to outputs] ************************************************************************************************************************************************************************************** | |
changed: [localhost] => {"changed": true, "output": 20} | |
PLAY RECAP *********************************************************************************************************************************************************************************************************************************** | |
localhost : ok=60 changed=12 unreachable=0 failed=0 | |
Action 'up' on Target 'libvirt-new' is complete | |
ID: 21 | |
Action: up | |
Target Run ID uHash Exit Code | |
------------------------------------------------- | |
libvirt-network 26 e649d9 0 | |
libvirt-new 20 b78486 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment