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/tmp40vowjjo 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: _backup.yml ********************************************************** 1 plays in /tmp/tmp05ac0kav/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:6 Wednesday 03 August 2022 16:09:38 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/centos-9.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659542976.9489353, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659542976.9489353, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737482", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp05ac0kav/tests/_backup.yml:13 Wednesday 03 August 2022 16:09:38 +0000 (0:00:00.610) 0:00:00.629 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (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': 4210438, 'dev': 64513, 'nlink': 1, 'atime': 1659542976.9489353, 'mtime': 1659542505.0, 'ctime': 1659542976.9489353, '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': '1127737482', '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'}}, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python3'}, '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_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "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": 1659542976.9489353, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659542976.9489353, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737482", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:19 Wednesday 03 August 2022 16:09:38 +0000 (0:00:00.036) 0:00:00.665 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003765", "end": "2022-08-03 12:09:38.717621", "rc": 0, "start": "2022-08-03 12:09:38.713856" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:09:39 +0000 (0:00:00.493) 0:00:01.159 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.61s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.49s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_dummy_nm.yml *************************************************** 2 plays in /tmp/tmp05ac0kav/tests/tests_dummy_nm.yml PLAY [Run playbook 'playbooks/tests_dummy.yml' with nm as provider] ************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/tests_dummy_nm.yml:5 Wednesday 03 August 2022 16:09:39 +0000 (0:00:00.011) 0:00:01.170 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tests_dummy_nm.yml:8 Wednesday 03 August 2022 16:09:40 +0000 (0:00:01.032) 0:00:02.203 ****** included: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.026) 0:00:02.230 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.022) 0:00:02.252 ****** included: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.028) 0:00:02.281 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.020) 0:00:02.301 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.018) 0:00:02.320 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.018) 0:00:02.338 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmp05ac0kav/tests/tests_dummy_nm.yml:9 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.018) 0:00:02.356 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tests_dummy.yml:3 Wednesday 03 August 2022 16:09:40 +0000 (0:00:00.047) 0:00:02.403 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_dummy.yml:10 Wednesday 03 August 2022 16:09:41 +0000 (0:00:00.774) 0:00:03.178 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: this is: playbooks/tests_dummy.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_dummy.yml:17 Wednesday 03 August 2022 16:09:41 +0000 (0:00:00.028) 0:00:03.206 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml for /cache/centos-9.qcow2.snap TASK [TEST: Create a dummy interface] ****************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:09:41 +0000 (0:00:00.034) 0:00:03.241 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: ########## Create a dummy interface ########## TASK [Show item] *************************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:09:41 +0000 (0:00:00.030) 0:00:03.272 ****** ok: [/cache/centos-9.qcow2.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a dummy interface" } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_dummy_profile.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (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-9.qcow2.snap] => (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-9.qcow2.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 16:09:41 +0000 (0:00:00.120) 0:00:03.392 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:09:41 +0000 (0:00:00.033) 0:00:03.426 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:09:41 +0000 (0:00:00.033) 0:00:03.459 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003301", "end": "2022-08-03 12:09:41.400166", "rc": 0, "start": "2022-08-03 12:09:41.396865" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.380) 0:00:03.840 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.037) 0:00:03.877 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.037) 0:00:03.914 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/delete_interface.yml for /cache/centos-9.qcow2.snap => (item=tasks/delete_interface.yml) included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml for /cache/centos-9.qcow2.snap => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.040) 0:00:03.955 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "dummy0" ], "delta": "0:00:00.007460", "end": "2022-08-03 12:09:41.926452", "rc": 1, "start": "2022-08-03 12:09:41.918992" } STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.405) 0:00:04.361 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.030) 0:00:04.392 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface dummy0 is absent] ********************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.353) 0:00:04.745 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.033) 0:00:04.778 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/create_dummy_profile.yml for /cache/centos-9.qcow2.snap => (item=tasks/create_dummy_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/create_dummy_profile.yml:3 Wednesday 03 August 2022 16:09:42 +0000 (0:00:00.035) 0:00:04.814 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:09:43 +0000 (0:00:00.045) 0:00:04.859 ****** included: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:09:43 +0000 (0:00:00.037) 0:00:04.896 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:09:43 +0000 (0:00:00.544) 0:00:05.441 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:09:45 +0000 (0:00:01.608) 0:00:07.049 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:09:46 +0000 (0:00:01.038) 0:00:08.088 ****** ok: [/cache/centos-9.qcow2.snap] => {} 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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:09:46 +0000 (0:00:00.044) 0:00:08.132 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:09:46 +0000 (0:00:00.063) 0:00:08.196 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:09:46 +0000 (0:00:00.037) 0:00:08.233 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:09:46 +0000 (0:00:00.074) 0:00:08.308 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:09:46 +0000 (0:00:00.038) 0:00:08.346 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:09:46 +0000 (0:00:00.039) 0:00:08.386 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:09:46 +0000 (0:00:00.053) 0:00:08.439 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:09:47 +0000 (0:00:00.809) 0:00:09.248 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:09:47 +0000 (0:00:00.054) 0:00:09.303 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:09:47 +0000 (0:00:00.035) 0:00:09.338 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:09:47 +0000 (0:00:00.035) 0:00:09.374 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-9.qcow2.snap] => { "_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, 69407921-43b0-45eb-86e3-f3e6b7af6136 [004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136 (is-modified) TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:09:48 +0000 (0:00:00.763) 0:00:10.137 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:09:48 +0000 (0:00:00.080) 0:00:10.217 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136 (is-modified)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:09:48 +0000 (0:00:00.047) 0:00:10.265 ****** ok: [/cache/centos-9.qcow2.snap] => { "__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, 69407921-43b0-45eb-86e3-f3e6b7af6136\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136 (is-modified)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136 (is-modified)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:09:48 +0000 (0:00:00.045) 0:00:10.310 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:09:48 +0000 (0:00:00.036) 0:00:10.346 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap TASK [Show result] ************************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/create_dummy_profile.yml:14 Wednesday 03 August 2022 16:09:48 +0000 (0:00:00.478) 0:00:10.824 ****** ok: [/cache/centos-9.qcow2.snap] => { "__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, 69407921-43b0-45eb-86e3-f3e6b7af6136\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136 (is-modified)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 69407921-43b0-45eb-86e3-f3e6b7af6136 (is-modified)" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:09:49 +0000 (0:00:00.048) 0:00:10.873 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml for /cache/centos-9.qcow2.snap => (item=tasks/assert_profile_present.yml) included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_present.yml for /cache/centos-9.qcow2.snap => (item=tasks/assert_device_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:09:49 +0000 (0:00:00.066) 0:00:10.940 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml for /cache/centos-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:09:49 +0000 (0:00:00.058) 0:00:10.999 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:09:49 +0000 (0:00:00.046) 0:00:11.045 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:09:49 +0000 (0:00:00.381) 0:00:11.427 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:09:49 +0000 (0:00:00.034) 0:00:11.461 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep dummy0 | grep /etc", "delta": "0:00:00.018703", "end": "2022-08-03 12:09:49.454516", "rc": 0, "start": "2022-08-03 12:09:49.435813" } 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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.442) 0:00:11.904 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.047) 0:00:11.952 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-dummy0] ********************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.034) 0:00:11.986 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'dummy0' is present] ********************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.033) 0:00:12.020 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'dummy0' is present] ************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.043) 0:00:12.064 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.046) 0:00:12.110 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.053) 0:00:12.163 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659542987.6503735, "block_size": 4096, "blocks": 0, "ctime": 1659542987.6503735, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 29027, "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": 1659542987.6503735, "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/tmp05ac0kav/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.385) 0:00:12.549 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.047) 0:00:12.596 ****** TASK [Success in test 'Create a dummy interface'] ****************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.045) 0:00:12.641 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: +++++ Success in test 'Create a dummy interface' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.045) 0:00:12.687 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-9.qcow2.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 16:09:50 +0000 (0:00:00.063) 0:00:12.750 ****** fatal: [/cache/centos-9.qcow2.snap]: 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.044625", "end": "2022-08-03 12:09:50.722704", "rc": 1, "start": "2022-08-03 12:09:50.678079" } STDOUT: Connection 'dummy0' (69407921-43b0-45eb-86e3-f3e6b7af6136) successfully deleted. STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=50 changed=2 unreachable=0 failed=0 skipped=20 rescued=0 ignored=2 Wednesday 03 August 2022 16:09:51 +0000 (0:00:00.454) 0:00:13.204 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.61s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.04s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp05ac0kav/tests/tests_dummy_nm.yml:5 ----------------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.81s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Gathering Facts --------------------------------------------------------- 0.77s /tmp/tmp05ac0kav/tests/playbooks/tests_dummy.yml:3 ---------------------------- linux-system-roles.network : Configure networking connection profiles --- 0.76s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Get stats of system files ----------------------------------------------- 0.61s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.54s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Back up system files ---------------------------------------------------- 0.49s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- linux-system-roles.network : Re-test connectivity ----------------------- 0.48s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- Cleanup profile and device ---------------------------------------------- 0.45s /tmp/tmp05ac0kav/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- Get NM profile info ----------------------------------------------------- 0.44s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- remove test interface if necessary -------------------------------------- 0.41s /tmp/tmp05ac0kav/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Get stat for interface dummy0 ------------------------------------------- 0.39s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- stat profile file ------------------------------------------------------- 0.38s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:8 ----------------- Gather current interface info ------------------------------------------- 0.38s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- Get stat for interface dummy0 ------------------------------------------- 0.35s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- Show item --------------------------------------------------------------- 0.12s /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:9 ------------------------- linux-system-roles.network : Configure networking state ----------------- 0.08s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:128 ---- linux-system-roles.network : Install packages --------------------------- 0.07s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 ----- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp05ac0kav/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp05ac0kav/tests/_restore.yml:4 Wednesday 03 August 2022 16:09:51 +0000 (0:00:00.041) 0:00:13.246 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.005831", "end": "2022-08-03 12:09:51.209981", "rc": 0, "start": "2022-08-03 12:09:51.204150" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=51 changed=3 unreachable=0 failed=0 skipped=20 rescued=0 ignored=2 Wednesday 03 August 2022 16:09:51 +0000 (0:00:00.435) 0:00:13.681 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.61s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.04s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp05ac0kav/tests/tests_dummy_nm.yml:5 ----------------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.81s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Gathering Facts --------------------------------------------------------- 0.77s /tmp/tmp05ac0kav/tests/playbooks/tests_dummy.yml:3 ---------------------------- linux-system-roles.network : Configure networking connection profiles --- 0.76s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Get stats of system files ----------------------------------------------- 0.61s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.54s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Back up system files ---------------------------------------------------- 0.49s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- linux-system-roles.network : Re-test connectivity ----------------------- 0.48s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- Cleanup profile and device ---------------------------------------------- 0.45s /tmp/tmp05ac0kav/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- Get NM profile info ----------------------------------------------------- 0.44s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- Restore system files ---------------------------------------------------- 0.44s /tmp/tmp05ac0kav/tests/_restore.yml:4 ----------------------------------------- remove test interface if necessary -------------------------------------- 0.41s /tmp/tmp05ac0kav/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Get stat for interface dummy0 ------------------------------------------- 0.39s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- stat profile file ------------------------------------------------------- 0.38s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:8 ----------------- Gather current interface info ------------------------------------------- 0.38s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- Get stat for interface dummy0 ------------------------------------------- 0.35s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- Show item --------------------------------------------------------------- 0.12s /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:9 ------------------------- linux-system-roles.network : Configure networking state ----------------- 0.08s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:128 ---- 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/tmp40vowjjo 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: _backup.yml ********************************************************** 1 plays in /tmp/tmpem3y1lsc/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 Wednesday 03 August 2022 16:30:47 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/centos-9.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659544245.4349024, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544245.4349024, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080143", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 Wednesday 03 August 2022 16:30:47 +0000 (0:00:00.596) 0:00:00.614 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (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': 4210118, 'dev': 64513, 'nlink': 1, 'atime': 1659544245.4349024, 'mtime': 1659543778.0, 'ctime': 1659544245.4349024, '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': '561080143', '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'}}, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python3'}, '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_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "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": 1659544245.4349024, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544245.4349024, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080143", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 Wednesday 03 August 2022 16:30:47 +0000 (0:00:00.034) 0:00:00.649 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003747", "end": "2022-08-03 12:30:47.214067", "rc": 0, "start": "2022-08-03 12:30:47.210320" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.498) 0:00:01.147 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.60s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.50s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_dummy_nm.yml *************************************************** 2 plays in /tmp/tmpem3y1lsc/tests/network/tests_dummy_nm.yml PLAY [Run playbook 'playbooks/tests_dummy.yml' with nm as provider] ************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/tests_dummy_nm.yml:5 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.011) 0:00:01.159 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_dummy_nm.yml:8 Wednesday 03 August 2022 16:30:49 +0000 (0:00:01.032) 0:00:02.191 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.026) 0:00:02.218 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.022) 0:00:02.240 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.028) 0:00:02.268 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.020) 0:00:02.289 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.021) 0:00:02.310 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.021) 0:00:02.332 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_dummy_nm.yml:9 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.020) 0:00:02.352 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_dummy.yml:3 Wednesday 03 August 2022 16:30:49 +0000 (0:00:00.048) 0:00:02.400 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_dummy.yml:10 Wednesday 03 August 2022 16:30:50 +0000 (0:00:00.800) 0:00:03.200 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: this is: playbooks/tests_dummy.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_dummy.yml:17 Wednesday 03 August 2022 16:30:50 +0000 (0:00:00.031) 0:00:03.232 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml for /cache/centos-9.qcow2.snap TASK [TEST: Create a dummy interface] ****************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:30:50 +0000 (0:00:00.035) 0:00:03.267 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: ########## Create a dummy interface ########## TASK [Show item] *************************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:30:50 +0000 (0:00:00.033) 0:00:03.301 ****** ok: [/cache/centos-9.qcow2.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a dummy interface" } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_dummy_profile.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (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-9.qcow2.snap] => (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-9.qcow2.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 16:30:50 +0000 (0:00:00.121) 0:00:03.422 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:30:50 +0000 (0:00:00.032) 0:00:03.454 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:30:50 +0000 (0:00:00.030) 0:00:03.485 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003551", "end": "2022-08-03 12:30:49.929869", "rc": 0, "start": "2022-08-03 12:30:49.926318" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.382) 0:00:03.867 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.035) 0:00:03.903 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.032) 0:00:03.936 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/delete_interface.yml for /cache/centos-9.qcow2.snap => (item=tasks/delete_interface.yml) included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/centos-9.qcow2.snap => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.042) 0:00:03.978 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "dummy0" ], "delta": "0:00:00.008443", "end": "2022-08-03 12:30:50.434420", "rc": 1, "start": "2022-08-03 12:30:50.425977" } STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.392) 0:00:04.371 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.034) 0:00:04.405 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface dummy0 is absent] ********************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.383) 0:00:04.788 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.033) 0:00:04.822 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/create_dummy_profile.yml for /cache/centos-9.qcow2.snap => (item=tasks/create_dummy_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/create_dummy_profile.yml:3 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.038) 0:00:04.860 ****** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.054) 0:00:04.914 ****** included: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.040) 0:00:04.955 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.500) 0:00:05.456 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:30:54 +0000 (0:00:01.583) 0:00:07.039 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.990) 0:00:08.029 ****** ok: [/cache/centos-9.qcow2.snap] => {} 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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.048) 0:00:08.078 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.038) 0:00:08.116 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.038) 0:00:08.155 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.070) 0:00:08.225 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.035) 0:00:08.261 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.039) 0:00:08.301 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.054) 0:00:08.355 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:30:56 +0000 (0:00:00.839) 0:00:09.195 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:30:56 +0000 (0:00:00.055) 0:00:09.251 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:30:56 +0000 (0:00:00.036) 0:00:09.287 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:30:56 +0000 (0:00:00.032) 0:00:09.319 ****** changed: [/cache/centos-9.qcow2.snap] => { "_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, 7df1f522-d18a-4cf8-879b-18ee7d26ef91 [004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91 (is-modified) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.752) 0:00:10.072 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.039) 0:00:10.111 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91 (is-modified)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.046) 0:00:10.158 ****** ok: [/cache/centos-9.qcow2.snap] => { "__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, 7df1f522-d18a-4cf8-879b-18ee7d26ef91\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91 (is-modified)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91 (is-modified)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.049) 0:00:10.208 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.040) 0:00:10.248 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap TASK [Show result] ************************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/create_dummy_profile.yml:14 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.518) 0:00:10.766 ****** ok: [/cache/centos-9.qcow2.snap] => { "__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, 7df1f522-d18a-4cf8-879b-18ee7d26ef91\n[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91 (is-modified)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'dummy0': add connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91", "[004] #0, state:up persistent_state:present, 'dummy0': up connection dummy0, 7df1f522-d18a-4cf8-879b-18ee7d26ef91 (is-modified)" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.119) 0:00:10.885 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/centos-9.qcow2.snap => (item=tasks/assert_profile_present.yml) included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_present.yml for /cache/centos-9.qcow2.snap => (item=tasks/assert_device_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.067) 0:00:10.953 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/centos-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.057) 0:00:11.010 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.046) 0:00:11.056 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.367) 0:00:11.424 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.035) 0:00:11.460 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep dummy0 | grep /etc", "delta": "0:00:00.017425", "end": "2022-08-03 12:30:57.907970", "rc": 0, "start": "2022-08-03 12:30:57.890545" } 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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.389) 0:00:11.849 ****** ok: [/cache/centos-9.qcow2.snap] => { "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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.044) 0:00:11.893 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-dummy0] ********************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.032) 0:00:11.926 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'dummy0' is present] ********************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.032) 0:00:11.959 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'dummy0' is present] ************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.045) 0:00:12.004 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.047) 0:00:12.052 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface dummy0] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.085) 0:00:12.138 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659544256.0936396, "block_size": 4096, "blocks": 0, "ctime": 1659544256.0936396, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 29027, "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": 1659544256.0936396, "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/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.381) 0:00:12.519 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.047) 0:00:12.566 ****** TASK [Success in test 'Create a dummy interface'] ****************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.045) 0:00:12.612 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: +++++ Success in test 'Create a dummy interface' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.045) 0:00:12.657 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-9.qcow2.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 16:30:59 +0000 (0:00:00.066) 0:00:12.723 ****** fatal: [/cache/centos-9.qcow2.snap]: 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.058629", "end": "2022-08-03 12:30:59.220009", "rc": 1, "start": "2022-08-03 12:30:59.161380" } STDOUT: Connection 'dummy0' (7df1f522-d18a-4cf8-879b-18ee7d26ef91) successfully deleted. STDERR: Cannot find device "dummy0" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=50 changed=2 unreachable=0 failed=0 skipped=20 rescued=0 ignored=2 Wednesday 03 August 2022 16:31:00 +0000 (0:00:00.461) 0:00:13.184 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.58s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpem3y1lsc/tests/network/tests_dummy_nm.yml:5 --------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.99s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.84s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_dummy.yml:3 -------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.75s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Get stats of system files ----------------------------------------------- 0.60s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.52s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.50s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Back up system files ---------------------------------------------------- 0.50s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Cleanup profile and device ---------------------------------------------- 0.46s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- remove test interface if necessary -------------------------------------- 0.39s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/delete_interface.yml:3 --------- Get NM profile info ----------------------------------------------------- 0.39s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:24 -------- Get stat for interface dummy0 ------------------------------------------- 0.38s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- Gather current interface info ------------------------------------------- 0.38s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Get stat for interface dummy0 ------------------------------------------- 0.38s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- stat profile file ------------------------------------------------------- 0.37s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:8 --------- Show item --------------------------------------------------------------- 0.12s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:9 ----------------- Show result ------------------------------------------------------------- 0.12s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/create_dummy_profile.yml:14 ---- include_tasks ----------------------------------------------------------- 0.09s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_present.yml:3 ---- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpem3y1lsc/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/_restore.yml:4 Wednesday 03 August 2022 16:31:00 +0000 (0:00:00.043) 0:00:13.228 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006111", "end": "2022-08-03 12:30:59.683564", "rc": 0, "start": "2022-08-03 12:30:59.677453" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=51 changed=3 unreachable=0 failed=0 skipped=20 rescued=0 ignored=2 Wednesday 03 August 2022 16:31:00 +0000 (0:00:00.426) 0:00:13.654 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.58s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpem3y1lsc/tests/network/tests_dummy_nm.yml:5 --------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.99s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.84s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_dummy.yml:3 -------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.75s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Get stats of system files ----------------------------------------------- 0.60s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.52s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.50s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Back up system files ---------------------------------------------------- 0.50s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Cleanup profile and device ---------------------------------------------- 0.46s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Restore system files ---------------------------------------------------- 0.43s /tmp/tmpem3y1lsc/tests/network/_restore.yml:4 --------------------------------- remove test interface if necessary -------------------------------------- 0.39s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/delete_interface.yml:3 --------- Get NM profile info ----------------------------------------------------- 0.39s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:24 -------- Get stat for interface dummy0 ------------------------------------------- 0.38s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- Gather current interface info ------------------------------------------- 0.38s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Get stat for interface dummy0 ------------------------------------------- 0.38s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- stat profile file ------------------------------------------------------- 0.37s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:8 --------- Show item --------------------------------------------------------------- 0.12s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:9 ----------------- Show result ------------------------------------------------------------- 0.12s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/create_dummy_profile.yml:14 ----