ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp4wbeq7zn executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 03 August 2022 17:01:08 +0000 (0:00:00.018) 0:00:00.018 ****** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.215315", "end": "2022-08-03 17:01:08.458591", "rc": 0, "start": "2022-08-03 17:01:08.243276" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:01:09 +0000 (0:00:00.823) 0:00:00.841 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmp650e3cfh/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp650e3cfh/tests/_backup.yml:6 Wednesday 03 August 2022 17:01:09 +0000 (0:00:00.016) 0:00:00.858 ****** ok: [/cache/centos-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659546068.012285, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659546067.010285, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19231, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545238.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2437777411", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp650e3cfh/tests/_backup.yml:13 Wednesday 03 August 2022 17:01:10 +0000 (0:00:00.518) 0:00:01.377 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 19231, 'dev': 64513, 'nlink': 1, 'atime': 1659546068.012285, 'mtime': 1659545238.0, 'ctime': 1659546067.010285, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '2437777411', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659546068.012285, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659546067.010285, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19231, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545238.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2437777411", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp650e3cfh/tests/_backup.yml:19 Wednesday 03 August 2022 17:01:10 +0000 (0:00:00.059) 0:00:01.436 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004209", "end": "2022-08-03 17:01:09.438002", "rc": 0, "start": "2022-08-03 17:01:09.433793" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=4 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:01:10 +0000 (0:00:00.387) 0:00:01.824 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- Get stats of system files ----------------------------------------------- 0.52s /tmp/tmp650e3cfh/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.06s /tmp/tmp650e3cfh/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_dummy_nm.yml *************************************************** 2 plays in /tmp/tmp650e3cfh/tests/tests_dummy_nm.yml PLAY [Run playbook 'playbooks/tests_dummy.yml' with nm as provider] ************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp650e3cfh/tests/tests_dummy_nm.yml:5 Wednesday 03 August 2022 17:01:10 +0000 (0:00:00.012) 0:00:01.837 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tests_dummy_nm.yml:8 Wednesday 03 August 2022 17:01:11 +0000 (0:00:01.030) 0:00:02.867 ****** included: /tmp/tmp650e3cfh/tests/tasks/el_repo_setup.yml for /cache/centos-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:01:11 +0000 (0:00:00.026) 0:00:02.893 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:01:11 +0000 (0:00:00.021) 0:00:02.915 ****** included: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml for /cache/centos-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:01:11 +0000 (0:00:00.029) 0:00:02.944 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:01:11 +0000 (0:00:00.389) 0:00:03.333 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:01:11 +0000 (0:00:00.022) 0:00:03.356 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.203264", "end": "2022-08-03 17:01:11.555323", "rc": 0, "start": "2022-08-03 17:01:11.352059" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:01:12 +0000 (0:00:00.574) 0:00:03.931 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmp650e3cfh/tests/tests_dummy_nm.yml:9 Wednesday 03 August 2022 17:01:12 +0000 (0:00:00.021) 0:00:03.952 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tests_dummy.yml:3 Wednesday 03 August 2022 17:01:12 +0000 (0:00:00.045) 0:00:03.998 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_dummy.yml:10 Wednesday 03 August 2022 17:01:13 +0000 (0:00:00.799) 0:00:04.797 ****** ok: [/cache/centos-8.qcow2] => {} MSG: this is: playbooks/tests_dummy.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_dummy.yml:17 Wednesday 03 August 2022 17:01:13 +0000 (0:00:00.030) 0:00:04.828 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml for /cache/centos-8.qcow2 TASK [TEST: Create a dummy interface] ****************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 17:01:13 +0000 (0:00:00.034) 0:00:04.862 ****** ok: [/cache/centos-8.qcow2] => {} MSG: ########## Create a dummy interface ########## TASK [Show item] *************************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 17:01:13 +0000 (0:00:00.029) 0:00:04.891 ****** ok: [/cache/centos-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a dummy interface" } ok: [/cache/centos-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_dummy_profile.yml" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml", "tasks/assert_device_present.yml" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [/cache/centos-8.qcow2] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 17:01:13 +0000 (0:00:00.132) 0:00:05.024 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/show_interfaces.yml for /cache/centos-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 17:01:13 +0000 (0:00:00.033) 0:00:05.057 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_current_interfaces.yml for /cache/centos-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 17:01:13 +0000 (0:00:00.029) 0:00:05.087 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003075", "end": "2022-08-03 17:01:13.072178", "rc": 0, "start": "2022-08-03 17:01:13.069103" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 17:01:14 +0000 (0:00:00.364) 0:00:05.451 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 17:01:14 +0000 (0:00:00.029) 0:00:05.480 ****** ok: [/cache/centos-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 17:01:14 +0000 (0:00:00.027) 0:00:05.508 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/delete_interface.yml for /cache/centos-8.qcow2 => (item=tasks/delete_interface.yml) included: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_absent.yml for /cache/centos-8.qcow2 => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 17:01:14 +0000 (0:00:00.035) 0:00:05.544 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "dummy0" ], "delta": "0:00:00.009006", "end": "2022-08-03 17:01:13.551247", "rc": 1, "start": "2022-08-03 17:01:13.542241" } STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 17:01:14 +0000 (0:00:00.383) 0:00:05.928 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:01:14 +0000 (0:00:00.033) 0:00:05.962 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface dummy0 is absent] ********************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 17:01:14 +0000 (0:00:00.372) 0:00:06.335 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 17:01:15 +0000 (0:00:00.066) 0:00:06.401 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_dummy_profile.yml for /cache/centos-8.qcow2 => (item=tasks/create_dummy_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_dummy_profile.yml:3 Wednesday 03 August 2022 17:01:15 +0000 (0:00:00.036) 0:00:06.438 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 17:01:15 +0000 (0:00:00.042) 0:00:06.481 ****** included: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:01:15 +0000 (0:00:00.033) 0:00:06.515 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 17:01:15 +0000 (0:00:00.541) 0:00:07.057 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 17:01:17 +0000 (0:00:01.621) 0:00:08.678 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 17:01:18 +0000 (0:00:01.417) 0:00:10.095 ****** ok: [/cache/centos-8.qcow2] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 17:01:18 +0000 (0:00:00.044) 0:00:10.139 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 17:01:18 +0000 (0:00:00.066) 0:00:10.206 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 17:01:18 +0000 (0:00:00.039) 0:00:10.245 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 17:01:18 +0000 (0:00:00.073) 0:00:10.319 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 17:01:18 +0000 (0:00:00.039) 0:00:10.359 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 17:01:19 +0000 (0:00:00.039) 0:00:10.399 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 17:01:19 +0000 (0:00:00.055) 0:00:10.454 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 17:01:19 +0000 (0:00:00.821) 0:00:11.276 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 17:01:19 +0000 (0:00:00.055) 0:00:11.331 ****** skipping: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 17:01:19 +0000 (0:00:00.034) 0:00:11.365 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 17:01:20 +0000 (0:00:00.037) 0:00:11.403 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.42/30" ] }, "name": "dummy0", "state": "up", "type": "dummy" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf [004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 17:01:20 +0000 (0:00:00.865) 0:00:12.269 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 17:01:20 +0000 (0:00:00.039) 0:00:12.308 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 17:01:20 +0000 (0:00:00.046) 0:00:12.354 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.42/30" ] }, "name": "dummy0", "state": "up", "type": "dummy" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 17:01:21 +0000 (0:00:00.050) 0:00:12.405 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 17:01:21 +0000 (0:00:00.039) 0:00:12.444 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [Show result] ************************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_dummy_profile.yml:14 Wednesday 03 August 2022 17:01:21 +0000 (0:00:00.515) 0:00:12.960 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.42/30" ] }, "name": "dummy0", "state": "up", "type": "dummy" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 92f11aa9-4764-40ff-87cd-6819fc8044bf (not-active)" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 17:01:21 +0000 (0:00:00.053) 0:00:13.014 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=tasks/assert_profile_present.yml) included: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml for /cache/centos-8.qcow2 => (item=tasks/assert_device_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 17:01:21 +0000 (0:00:00.071) 0:00:13.086 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 17:01:21 +0000 (0:00:00.059) 0:00:13.145 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 17:01:21 +0000 (0:00:00.046) 0:00:13.192 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.409) 0:00:13.602 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.069) 0:00:13.671 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep dummy0 | grep /etc", "delta": "0:00:00.021454", "end": "2022-08-03 17:01:21.679782", "rc": 0, "start": "2022-08-03 17:01:21.658328" } STDOUT: dummy0 /etc/NetworkManager/system-connections/dummy0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.397) 0:00:14.068 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-dummy0] ************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.048) 0:00:14.117 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-dummy0] ********************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.035) 0:00:14.152 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'dummy0' is present] ********************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.035) 0:00:14.188 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'dummy0' is present] ************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.050) 0:00:14.238 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.044) 0:00:14.283 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:01:22 +0000 (0:00:00.053) 0:00:14.336 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659546079.783771, "block_size": 4096, "blocks": 0, "ctime": 1659546079.783771, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 31217, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/dummy0", "lnk_target": "../../devices/virtual/net/dummy0", "mode": "0777", "mtime": 1659546079.783771, "nlink": 1, "path": "/sys/class/net/dummy0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface dummy0 is present] ********************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 17:01:23 +0000 (0:00:00.391) 0:00:14.728 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 17:01:23 +0000 (0:00:00.049) 0:00:14.777 ****** TASK [Success in test 'Create a dummy interface'] ****************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 17:01:23 +0000 (0:00:00.045) 0:00:14.823 ****** ok: [/cache/centos-8.qcow2] => {} MSG: +++++ Success in test 'Create a dummy interface' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 17:01:23 +0000 (0:00:00.044) 0:00:14.867 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-8.qcow2 => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 17:01:23 +0000 (0:00:00.065) 0:00:14.933 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete dummy0\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-dummy0\nrm -f /etc/sysconfig/network-scripts/ifcfg-dummy0\nip link del dummy0\n", "delta": "0:00:00.047334", "end": "2022-08-03 17:01:23.021073", "rc": 1, "start": "2022-08-03 17:01:22.973739" } STDOUT: Connection 'dummy0' (92f11aa9-4764-40ff-87cd-6819fc8044bf) successfully deleted. STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=53 changed=4 unreachable=0 failed=0 skipped=18 rescued=0 ignored=2 Wednesday 03 August 2022 17:01:24 +0000 (0:00:00.497) 0:00:15.430 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.42s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp650e3cfh/tests/tests_dummy_nm.yml:5 ----------------------------------- linux-system-roles.network : Configure networking connection profiles --- 0.87s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.82s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmp650e3cfh/tests/playbooks/tests_dummy.yml:3 ---------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.57s /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:17 ------------------------------- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.54s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Get stats of system files ----------------------------------------------- 0.52s /tmp/tmp650e3cfh/tests/_backup.yml:6 ------------------------------------------ linux-system-roles.network : Re-test connectivity ----------------------- 0.52s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- Cleanup profile and device ---------------------------------------------- 0.50s /tmp/tmp650e3cfh/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- stat profile file ------------------------------------------------------- 0.41s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:8 ----------------- Get NM profile info ----------------------------------------------------- 0.40s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- Get stat for interface dummy0 ------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- Create EPEL 8 ----------------------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:4 -------------------------------- Back up system files ---------------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/_backup.yml:19 ----------------------------------------- remove test interface if necessary -------------------------------------- 0.38s /tmp/tmp650e3cfh/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Get stat for interface dummy0 ------------------------------------------- 0.37s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- Gather current interface info ------------------------------------------- 0.36s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp650e3cfh/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp650e3cfh/tests/_restore.yml:4 Wednesday 03 August 2022 17:01:24 +0000 (0:00:00.043) 0:00:15.474 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.007127", "end": "2022-08-03 17:01:23.467710", "rc": 0, "start": "2022-08-03 17:01:23.460583" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=54 changed=5 unreachable=0 failed=0 skipped=18 rescued=0 ignored=2 Wednesday 03 August 2022 17:01:24 +0000 (0:00:00.403) 0:00:15.877 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.42s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp650e3cfh/tests/tests_dummy_nm.yml:5 ----------------------------------- linux-system-roles.network : Configure networking connection profiles --- 0.87s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.82s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmp650e3cfh/tests/playbooks/tests_dummy.yml:3 ---------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.57s /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:17 ------------------------------- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.54s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Get stats of system files ----------------------------------------------- 0.52s /tmp/tmp650e3cfh/tests/_backup.yml:6 ------------------------------------------ linux-system-roles.network : Re-test connectivity ----------------------- 0.52s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- Cleanup profile and device ---------------------------------------------- 0.50s /tmp/tmp650e3cfh/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- stat profile file ------------------------------------------------------- 0.41s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:8 ----------------- Restore system files ---------------------------------------------------- 0.40s /tmp/tmp650e3cfh/tests/_restore.yml:4 ----------------------------------------- Get NM profile info ----------------------------------------------------- 0.40s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- Get stat for interface dummy0 ------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- Create EPEL 8 ----------------------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:4 -------------------------------- Back up system files ---------------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/_backup.yml:19 ----------------------------------------- remove test interface if necessary -------------------------------------- 0.38s /tmp/tmp650e3cfh/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Get stat for interface dummy0 ------------------------------------------- 0.37s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp4wbeq7zn executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 03 August 2022 17:40:22 +0000 (0:00:00.019) 0:00:00.019 ****** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.193890", "end": "2022-08-03 17:40:22.344898", "rc": 0, "start": "2022-08-03 17:40:22.151008" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:40:23 +0000 (0:00:00.766) 0:00:00.786 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpjloc5qmw/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpjloc5qmw/tests/network/_backup.yml:6 Wednesday 03 August 2022 17:40:23 +0000 (0:00:00.016) 0:00:00.803 ****** ok: [/cache/centos-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659548421.9650774, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659548420.9630773, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19274, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659547587.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2299847687", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpjloc5qmw/tests/network/_backup.yml:13 Wednesday 03 August 2022 17:40:24 +0000 (0:00:00.500) 0:00:01.303 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 19274, 'dev': 64513, 'nlink': 1, 'atime': 1659548421.9650774, 'mtime': 1659547587.0, 'ctime': 1659548420.9630773, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '2299847687', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659548421.9650774, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659548420.9630773, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19274, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659547587.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2299847687", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpjloc5qmw/tests/network/_backup.yml:19 Wednesday 03 August 2022 17:40:24 +0000 (0:00:00.060) 0:00:01.364 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004955", "end": "2022-08-03 17:40:23.348655", "rc": 0, "start": "2022-08-03 17:40:23.343700" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=4 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:40:24 +0000 (0:00:00.423) 0:00:01.788 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpjloc5qmw/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.42s /tmp/tmpjloc5qmw/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.06s /tmp/tmpjloc5qmw/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_dummy_nm.yml *************************************************** 2 plays in /tmp/tmpjloc5qmw/tests/network/tests_dummy_nm.yml PLAY [Run playbook 'playbooks/tests_dummy.yml' with nm as provider] ************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjloc5qmw/tests/network/tests_dummy_nm.yml:5 Wednesday 03 August 2022 17:40:24 +0000 (0:00:00.011) 0:00:01.799 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tests_dummy_nm.yml:8 Wednesday 03 August 2022 17:40:25 +0000 (0:00:01.026) 0:00:02.825 ****** included: /tmp/tmpjloc5qmw/tests/network/tasks/el_repo_setup.yml for /cache/centos-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:40:25 +0000 (0:00:00.028) 0:00:02.854 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:40:25 +0000 (0:00:00.022) 0:00:02.876 ****** included: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml for /cache/centos-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:40:25 +0000 (0:00:00.027) 0:00:02.904 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:40:26 +0000 (0:00:00.365) 0:00:03.270 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:40:26 +0000 (0:00:00.022) 0:00:03.292 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.196945", "end": "2022-08-03 17:40:25.419133", "rc": 0, "start": "2022-08-03 17:40:25.222188" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:40:26 +0000 (0:00:00.562) 0:00:03.855 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmpjloc5qmw/tests/network/tests_dummy_nm.yml:9 Wednesday 03 August 2022 17:40:26 +0000 (0:00:00.022) 0:00:03.877 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_dummy.yml:3 Wednesday 03 August 2022 17:40:26 +0000 (0:00:00.045) 0:00:03.922 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_dummy.yml:10 Wednesday 03 August 2022 17:40:27 +0000 (0:00:00.794) 0:00:04.717 ****** ok: [/cache/centos-8.qcow2] => {} MSG: this is: playbooks/tests_dummy.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_dummy.yml:17 Wednesday 03 August 2022 17:40:27 +0000 (0:00:00.031) 0:00:04.749 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml for /cache/centos-8.qcow2 TASK [TEST: Create a dummy interface] ****************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 17:40:27 +0000 (0:00:00.033) 0:00:04.782 ****** ok: [/cache/centos-8.qcow2] => {} MSG: ########## Create a dummy interface ########## TASK [Show item] *************************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 17:40:27 +0000 (0:00:00.030) 0:00:04.813 ****** ok: [/cache/centos-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a dummy interface" } ok: [/cache/centos-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_dummy_profile.yml" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml", "tasks/assert_device_present.yml" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [/cache/centos-8.qcow2] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-8.qcow2] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 17:40:27 +0000 (0:00:00.117) 0:00:04.931 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/show_interfaces.yml for /cache/centos-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 17:40:27 +0000 (0:00:00.038) 0:00:04.969 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/centos-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 17:40:27 +0000 (0:00:00.032) 0:00:05.002 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003806", "end": "2022-08-03 17:40:26.943155", "rc": 0, "start": "2022-08-03 17:40:26.939349" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 17:40:28 +0000 (0:00:00.378) 0:00:05.380 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 17:40:28 +0000 (0:00:00.031) 0:00:05.412 ****** ok: [/cache/centos-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 17:40:28 +0000 (0:00:00.032) 0:00:05.444 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/delete_interface.yml for /cache/centos-8.qcow2 => (item=tasks/delete_interface.yml) included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/centos-8.qcow2 => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 17:40:28 +0000 (0:00:00.038) 0:00:05.482 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "dummy0" ], "delta": "0:00:00.008668", "end": "2022-08-03 17:40:27.432089", "rc": 1, "start": "2022-08-03 17:40:27.423421" } STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 17:40:28 +0000 (0:00:00.385) 0:00:05.868 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:40:28 +0000 (0:00:00.032) 0:00:05.900 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface dummy0 is absent] ********************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 17:40:29 +0000 (0:00:00.370) 0:00:06.270 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 17:40:29 +0000 (0:00:00.034) 0:00:06.305 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_dummy_profile.yml for /cache/centos-8.qcow2 => (item=tasks/create_dummy_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_dummy_profile.yml:3 Wednesday 03 August 2022 17:40:29 +0000 (0:00:00.035) 0:00:06.341 ****** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 17:40:29 +0000 (0:00:00.052) 0:00:06.393 ****** included: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:40:29 +0000 (0:00:00.039) 0:00:06.433 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 17:40:29 +0000 (0:00:00.550) 0:00:06.983 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 17:40:31 +0000 (0:00:01.915) 0:00:08.898 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 17:40:33 +0000 (0:00:01.398) 0:00:10.297 ****** ok: [/cache/centos-8.qcow2] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 17:40:33 +0000 (0:00:00.048) 0:00:10.346 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 17:40:33 +0000 (0:00:00.042) 0:00:10.388 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 17:40:33 +0000 (0:00:00.080) 0:00:10.469 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 17:40:33 +0000 (0:00:00.076) 0:00:10.545 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 17:40:33 +0000 (0:00:00.039) 0:00:10.584 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 17:40:33 +0000 (0:00:00.036) 0:00:10.621 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 17:40:33 +0000 (0:00:00.054) 0:00:10.676 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 17:40:34 +0000 (0:00:00.802) 0:00:11.478 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 17:40:34 +0000 (0:00:00.054) 0:00:11.533 ****** skipping: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 17:40:34 +0000 (0:00:00.034) 0:00:11.567 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 17:40:34 +0000 (0:00:00.035) 0:00:11.603 ****** changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.42/30" ] }, "name": "dummy0", "state": "up", "type": "dummy" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401 [004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 17:40:35 +0000 (0:00:00.870) 0:00:12.473 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 17:40:35 +0000 (0:00:00.040) 0:00:12.513 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 17:40:35 +0000 (0:00:00.049) 0:00:12.563 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.42/30" ] }, "name": "dummy0", "state": "up", "type": "dummy" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 17:40:35 +0000 (0:00:00.045) 0:00:12.609 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 17:40:35 +0000 (0:00:00.036) 0:00:12.646 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [Show result] ************************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_dummy_profile.yml:14 Wednesday 03 August 2022 17:40:36 +0000 (0:00:00.508) 0:00:13.154 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "192.0.2.42/30" ] }, "name": "dummy0", "state": "up", "type": "dummy" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 9861ea9b-4850-46ce-a748-359e0a1f9401 (not-active)" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 17:40:36 +0000 (0:00:00.048) 0:00:13.203 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=tasks/assert_profile_present.yml) included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml for /cache/centos-8.qcow2 => (item=tasks/assert_device_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 17:40:36 +0000 (0:00:00.067) 0:00:13.271 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 17:40:36 +0000 (0:00:00.058) 0:00:13.329 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 17:40:36 +0000 (0:00:00.044) 0:00:13.374 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 17:40:36 +0000 (0:00:00.386) 0:00:13.760 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 17:40:36 +0000 (0:00:00.036) 0:00:13.797 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep dummy0 | grep /etc", "delta": "0:00:00.018549", "end": "2022-08-03 17:40:35.801347", "rc": 0, "start": "2022-08-03 17:40:35.782798" } STDOUT: dummy0 /etc/NetworkManager/system-connections/dummy0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.454) 0:00:14.252 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-dummy0] ************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.049) 0:00:14.302 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-dummy0] ********************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.037) 0:00:14.339 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'dummy0' is present] ********************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.037) 0:00:14.376 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'dummy0' is present] ************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.050) 0:00:14.427 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.049) 0:00:14.476 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.056) 0:00:14.533 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659548433.9324641, "block_size": 4096, "blocks": 0, "ctime": 1659548433.9324641, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 31217, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/dummy0", "lnk_target": "../../devices/virtual/net/dummy0", "mode": "0777", "mtime": 1659548433.9324641, "nlink": 1, "path": "/sys/class/net/dummy0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface dummy0 is present] ********************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.395) 0:00:14.928 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.046) 0:00:14.974 ****** TASK [Success in test 'Create a dummy interface'] ****************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.047) 0:00:15.022 ****** ok: [/cache/centos-8.qcow2] => {} MSG: +++++ Success in test 'Create a dummy interface' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 17:40:37 +0000 (0:00:00.048) 0:00:15.070 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-8.qcow2 => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 17:40:38 +0000 (0:00:00.065) 0:00:15.136 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete dummy0\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-dummy0\nrm -f /etc/sysconfig/network-scripts/ifcfg-dummy0\nip link del dummy0\n", "delta": "0:00:00.045764", "end": "2022-08-03 17:40:37.120516", "rc": 1, "start": "2022-08-03 17:40:37.074752" } STDOUT: Connection 'dummy0' (9861ea9b-4850-46ce-a748-359e0a1f9401) successfully deleted. STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=53 changed=4 unreachable=0 failed=0 skipped=18 rescued=0 ignored=2 Wednesday 03 August 2022 17:40:38 +0000 (0:00:00.452) 0:00:15.589 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.92s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which packages are installed --- 1.40s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpjloc5qmw/tests/network/tests_dummy_nm.yml:5 --------------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.87s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.80s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmpjloc5qmw/tests/network/playbooks/tests_dummy.yml:3 -------------------- Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.56s /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:17 ----------------------- fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.55s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.51s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpjloc5qmw/tests/network/_backup.yml:6 ---------------------------------- Get NM profile info ----------------------------------------------------- 0.45s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:24 -------- Cleanup profile and device ---------------------------------------------- 0.45s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Back up system files ---------------------------------------------------- 0.42s /tmp/tmpjloc5qmw/tests/network/_backup.yml:19 --------------------------------- Get stat for interface dummy0 ------------------------------------------- 0.40s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- stat profile file ------------------------------------------------------- 0.39s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:8 --------- remove test interface if necessary -------------------------------------- 0.39s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/delete_interface.yml:3 --------- Gather current interface info ------------------------------------------- 0.38s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Get stat for interface dummy0 ------------------------------------------- 0.37s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- Create EPEL 8 ----------------------------------------------------------- 0.37s /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:4 ------------------------ PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpjloc5qmw/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpjloc5qmw/tests/network/_restore.yml:4 Wednesday 03 August 2022 17:40:38 +0000 (0:00:00.042) 0:00:15.631 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006430", "end": "2022-08-03 17:40:37.575424", "rc": 0, "start": "2022-08-03 17:40:37.568994" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=54 changed=5 unreachable=0 failed=0 skipped=18 rescued=0 ignored=2 Wednesday 03 August 2022 17:40:38 +0000 (0:00:00.412) 0:00:16.043 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.92s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which packages are installed --- 1.40s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpjloc5qmw/tests/network/tests_dummy_nm.yml:5 --------------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.87s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.80s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmpjloc5qmw/tests/network/playbooks/tests_dummy.yml:3 -------------------- Enable HA repos --------------------------------------------------------- 0.77s /cache/centos-8_setup.yml:5 --------------------------------------------------- Enable EPEL 8 ----------------------------------------------------------- 0.56s /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:17 ----------------------- fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.55s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.51s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpjloc5qmw/tests/network/_backup.yml:6 ---------------------------------- Get NM profile info ----------------------------------------------------- 0.45s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:24 -------- Cleanup profile and device ---------------------------------------------- 0.45s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Back up system files ---------------------------------------------------- 0.42s /tmp/tmpjloc5qmw/tests/network/_backup.yml:19 --------------------------------- Restore system files ---------------------------------------------------- 0.41s /tmp/tmpjloc5qmw/tests/network/_restore.yml:4 --------------------------------- Get stat for interface dummy0 ------------------------------------------- 0.40s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- stat profile file ------------------------------------------------------- 0.39s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:8 --------- remove test interface if necessary -------------------------------------- 0.39s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/delete_interface.yml:3 --------- Gather current interface info ------------------------------------------- 0.38s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Get stat for interface dummy0 ------------------------------------------- 0.37s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 -------