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/tmposyp_ghn 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/tmpwwh795q9/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpwwh795q9/tests/_backup.yml:6 Wednesday 03 August 2022 15:22:25 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-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": 1659540144.0970292, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659540144.0970292, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 24541, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539895.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "912257974", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpwwh795q9/tests/_backup.yml:13 Wednesday 03 August 2022 15:22:25 +0000 (0:00:00.580) 0:00:00.598 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-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': 24541, 'dev': 64516, 'nlink': 1, 'atime': 1659540144.0970292, 'mtime': 1659539895.0, 'ctime': 1659540144.0970292, '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': '912257974', '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": 1659540144.0970292, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659540144.0970292, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 24541, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539895.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "912257974", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpwwh795q9/tests/_backup.yml:19 Wednesday 03 August 2022 15:22:25 +0000 (0:00:00.036) 0:00:00.634 ****** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003699", "end": "2022-08-03 11:22:25.799482", "rc": 0, "start": "2022-08-03 11:22:25.795783" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:22:26 +0000 (0:00:00.498) 0:00:01.132 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.58s /tmp/tmpwwh795q9/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.50s /tmp/tmpwwh795q9/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpwwh795q9/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_bridge_nm.yml ************************************************** 10 plays in /tmp/tmpwwh795q9/tests/tests_bridge_nm.yml PLAY [Run playbook 'playbooks/tests_bridge.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/tests_bridge_nm.yml:5 Wednesday 03 August 2022 15:22:26 +0000 (0:00:00.067) 0:00:01.199 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/tests_bridge_nm.yml:8 Wednesday 03 August 2022 15:22:27 +0000 (0:00:01.076) 0:00:02.276 ****** included: /tmp/tmpwwh795q9/tests/tasks/el_repo_setup.yml for /cache/rhel-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpwwh795q9/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.027) 0:00:02.304 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.020) 0:00:02.324 ****** included: /tmp/tmpwwh795q9/tests/tasks/enable_epel.yml for /cache/rhel-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmpwwh795q9/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.029) 0:00:02.353 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpwwh795q9/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.021) 0:00:02.375 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpwwh795q9/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.021) 0:00:02.397 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpwwh795q9/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.022) 0:00:02.419 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmpwwh795q9/tests/tests_bridge_nm.yml:9 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.021) 0:00:02.440 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [Test configuring bridges] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:3 Wednesday 03 August 2022 15:22:27 +0000 (0:00:00.047) 0:00:02.488 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [set interface=LSR-TST-br31] ********************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:9 Wednesday 03 August 2022 15:22:28 +0000 (0:00:00.804) 0:00:03.293 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "interface": "LSR-TST-br31" }, "changed": false } TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:12 Wednesday 03 August 2022 15:22:28 +0000 (0:00:00.031) 0:00:03.324 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/show_interfaces.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:22:28 +0000 (0:00:00.029) 0:00:03.354 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:22:28 +0000 (0:00:00.030) 0:00:03.384 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003186", "end": "2022-08-03 11:22:28.420452", "rc": 0, "start": "2022-08-03 11:22:28.417266" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:22:28 +0000 (0:00:00.365) 0:00:03.750 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:22:28 +0000 (0:00:00.033) 0:00:03.783 ****** ok: [/cache/rhel-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:13 Wednesday 03 August 2022 15:22:28 +0000 (0:00:00.037) 0:00:03.820 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_absent.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:22:29 +0000 (0:00:00.037) 0:00:03.857 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:22:29 +0000 (0:00:00.031) 0:00:03.889 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:22:29 +0000 (0:00:00.380) 0:00:04.269 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Add test bridge] ********************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:15 Wednesday 03 August 2022 15:22:29 +0000 (0:00:00.054) 0:00:04.324 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 15:22:30 +0000 (0:00:00.814) 0:00:05.139 ****** included: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:22:30 +0000 (0:00:00.032) 0:00:05.171 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 15:22:30 +0000 (0:00:00.543) 0:00:05.715 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 15:22:32 +0000 (0:00:01.731) 0:00:07.446 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.997) 0:00:08.444 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.048) 0:00:08.493 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.069) 0:00:08.562 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.039) 0:00:08.602 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.075) 0:00:08.677 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.039) 0:00:08.716 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.039) 0:00:08.756 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 15:22:33 +0000 (0:00:00.053) 0:00:08.809 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:22:34 +0000 (0:00:00.795) 0:00:09.605 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 15:22:34 +0000 (0:00:00.055) 0:00:09.661 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 15:22:34 +0000 (0:00:00.037) 0:00:09.699 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 15:22:34 +0000 (0:00:00.036) 0:00:09.735 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/rhel-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d [004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 15:22:35 +0000 (0:00:00.862) 0:00:10.597 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 15:22:35 +0000 (0:00:00.039) 0:00:10.637 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 15:22:35 +0000 (0:00:00.052) 0:00:10.690 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d\n[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 0aa02b39-7bef-4b96-ac72-2941f4f2757d (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 15:22:35 +0000 (0:00:00.055) 0:00:10.745 ****** skipping: [/cache/rhel-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 15:22:35 +0000 (0:00:00.040) 0:00:10.785 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_device_present.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:22:36 +0000 (0:00:00.543) 0:00:11.329 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:22:37 +0000 (0:00:00.898) 0:00:12.227 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_present.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 15:22:37 +0000 (0:00:00.095) 0:00:12.323 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:22:37 +0000 (0:00:00.061) 0:00:12.385 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659540155.1637065, "block_size": 4096, "blocks": 0, "ctime": 1659540155.1637065, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26909, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/LSR-TST-br31", "lnk_target": "../../devices/virtual/net/LSR-TST-br31", "mode": "0777", "mtime": 1659540155.1637065, "nlink": 1, "path": "/sys/class/net/LSR-TST-br31", "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 LSR-TST-br31 is present] *************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 15:22:37 +0000 (0:00:00.385) 0:00:12.771 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_profile_present.yml] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:22:38 +0000 (0:00:00.093) 0:00:12.864 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:22:38 +0000 (0:00:00.869) 0:00:13.734 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_profile_present.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:22:38 +0000 (0:00:00.059) 0:00:13.793 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml for /cache/rhel-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.091) 0:00:13.884 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.047) 0:00:13.932 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659540155.198029, "block_size": 4096, "blocks": 8, "ctime": 1659540155.161029, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17263006, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659540155.161029, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 249, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.396) 0:00:14.328 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.049) 0:00:14.378 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.025818", "end": "2022-08-03 11:22:39.441377", "rc": 0, "start": "2022-08-03 11:22:39.415559" } STDOUT: LSR-TST-br31 /etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:22:39 +0000 (0:00:00.407) 0:00:14.785 ****** ok: [/cache/rhel-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-LSR-TST-br31] ******************* task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:22:40 +0000 (0:00:00.050) 0:00:14.836 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:22:40 +0000 (0:00:00.037) 0:00:14.874 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is present] *************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:22:40 +0000 (0:00:00.035) 0:00:14.910 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'LSR-TST-br31' is present] ******** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:22:40 +0000 (0:00:00.052) 0:00:14.962 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/down_profile.yml:3 Wednesday 03 August 2022 15:22:40 +0000 (0:00:00.093) 0:00:15.056 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 15:22:41 +0000 (0:00:00.896) 0:00:15.952 ****** included: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:22:41 +0000 (0:00:00.060) 0:00:16.013 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 15:22:41 +0000 (0:00:00.534) 0:00:16.547 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 15:22:43 +0000 (0:00:01.604) 0:00:18.152 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.729) 0:00:18.881 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.049) 0:00:18.931 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.040) 0:00:18.971 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.044) 0:00:19.015 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.077) 0:00:19.093 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.037) 0:00:19.131 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.043) 0:00:19.174 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.055) 0:00:19.229 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:22:44 +0000 (0:00:00.574) 0:00:19.803 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.057) 0:00:19.861 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.035) 0:00:19.896 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.036) 0:00:19.933 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/rhel-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.596) 0:00:20.529 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.045) 0:00:20.575 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.047) 0:00:20.622 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.050) 0:00:20.672 ****** skipping: [/cache/rhel-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 15:22:45 +0000 (0:00:00.040) 0:00:20.713 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/down_profile+delete_interface.yml:4 Wednesday 03 August 2022 15:22:46 +0000 (0:00:00.431) 0:00:21.145 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/down_profile+delete_interface.yml:7 Wednesday 03 August 2022 15:22:47 +0000 (0:00:00.871) 0:00:22.016 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/delete_interface.yml for /cache/rhel-9.qcow2.snap TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 15:22:47 +0000 (0:00:00.056) 0:00:22.073 ****** fatal: [/cache/rhel-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "LSR-TST-br31" ], "delta": "0:00:00.007448", "end": "2022-08-03 11:22:47.119198", "rc": 1, "start": "2022-08-03 11:22:47.111750" } STDERR: Cannot find device "LSR-TST-br31" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/remove_profile.yml:3 Wednesday 03 August 2022 15:22:47 +0000 (0:00:00.440) 0:00:22.513 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 15:22:48 +0000 (0:00:00.871) 0:00:23.385 ****** included: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:22:48 +0000 (0:00:00.057) 0:00:23.442 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 15:22:49 +0000 (0:00:00.522) 0:00:23.964 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 15:22:50 +0000 (0:00:01.601) 0:00:25.566 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.756) 0:00:26.322 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.122) 0:00:26.445 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.045) 0:00:26.491 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.040) 0:00:26.532 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.080) 0:00:26.613 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.041) 0:00:26.654 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.039) 0:00:26.694 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 15:22:51 +0000 (0:00:00.057) 0:00:26.752 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:22:52 +0000 (0:00:00.558) 0:00:27.310 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 15:22:52 +0000 (0:00:00.055) 0:00:27.366 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 15:22:52 +0000 (0:00:00.035) 0:00:27.401 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 15:22:52 +0000 (0:00:00.035) 0:00:27.437 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/rhel-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 15:22:53 +0000 (0:00:00.555) 0:00:27.993 ****** skipping: [/cache/rhel-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/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 15:22:53 +0000 (0:00:00.089) 0:00:28.082 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 15:22:53 +0000 (0:00:00.049) 0:00:28.131 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 15:22:53 +0000 (0:00:00.050) 0:00:28.182 ****** skipping: [/cache/rhel-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 15:22:53 +0000 (0:00:00.039) 0:00:28.222 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_profile_absent.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:22:53 +0000 (0:00:00.432) 0:00:28.654 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:22:54 +0000 (0:00:00.857) 0:00:29.512 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 15:22:54 +0000 (0:00:00.057) 0:00:29.570 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml for /cache/rhel-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 15:22:54 +0000 (0:00:00.094) 0:00:29.665 ****** ok: [/cache/rhel-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/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 15:22:54 +0000 (0:00:00.044) 0:00:29.709 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 15:22:55 +0000 (0:00:00.379) 0:00:30.088 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:22:55 +0000 (0:00:00.034) 0:00:30.123 ****** fatal: [/cache/rhel-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.019244", "end": "2022-08-03 11:22:55.174122", "rc": 1, "start": "2022-08-03 11:22:55.154878" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:22:55 +0000 (0:00:00.395) 0:00:30.518 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-LSR-TST-br31] ******************* task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:22:55 +0000 (0:00:00.041) 0:00:30.560 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:22:55 +0000 (0:00:00.038) 0:00:30.598 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is absent] **************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 15:22:55 +0000 (0:00:00.036) 0:00:30.635 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_device_absent.yml] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:22:55 +0000 (0:00:00.098) 0:00:30.733 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:22:56 +0000 (0:00:00.863) 0:00:31.597 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_absent.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:22:56 +0000 (0:00:00.054) 0:00:31.652 ****** included: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:22:56 +0000 (0:00:00.055) 0:00:31.707 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmpwwh795q9/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:22:57 +0000 (0:00:00.392) 0:00:32.099 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=81 changed=4 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 15:22:57 +0000 (0:00:00.068) 0:00:32.167 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.73s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.60s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.60s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Gathering Facts --------------------------------------------------------- 1.08s /tmp/tmpwwh795q9/tests/tests_bridge_nm.yml:5 ---------------------------------- linux-system-roles.network : Check which packages are installed --------- 1.00s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 0.90s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.90s /tmp/tmpwwh795q9/tests/playbooks/down_profile.yml:3 --------------------------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpwwh795q9/tests/playbooks/remove_profile.yml:3 ------------------------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpwwh795q9/tests/playbooks/down_profile+delete_interface.yml:4 ---------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ linux-system-roles.network : Configure networking connection profiles --- 0.86s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:15 -------------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:3 --------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.80s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- linux-system-roles.network : Check which packages are installed --------- 0.76s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Check which packages are installed --------- 0.73s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Configure networking connection profiles --- 0.60s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Get stats of system files ----------------------------------------------- 0.58s /tmp/tmpwwh795q9/tests/_backup.yml:6 ------------------------------------------ PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpwwh795q9/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpwwh795q9/tests/_restore.yml:4 Wednesday 03 August 2022 15:22:57 +0000 (0:00:00.044) 0:00:32.212 ****** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.005870", "end": "2022-08-03 11:22:57.255307", "rc": 0, "start": "2022-08-03 11:22:57.249437" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=82 changed=5 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 15:22:57 +0000 (0:00:00.410) 0:00:32.623 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.73s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.60s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.60s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Gathering Facts --------------------------------------------------------- 1.08s /tmp/tmpwwh795q9/tests/tests_bridge_nm.yml:5 ---------------------------------- linux-system-roles.network : Check which packages are installed --------- 1.00s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 0.90s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.90s /tmp/tmpwwh795q9/tests/playbooks/down_profile.yml:3 --------------------------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpwwh795q9/tests/playbooks/remove_profile.yml:3 ------------------------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpwwh795q9/tests/playbooks/down_profile+delete_interface.yml:4 ---------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ linux-system-roles.network : Configure networking connection profiles --- 0.86s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmpwwh795q9/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:15 -------------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpwwh795q9/tests/playbooks/tests_bridge.yml:3 --------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.80s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- linux-system-roles.network : Check which packages are installed --------- 0.76s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Check which packages are installed --------- 0.73s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Configure networking connection profiles --- 0.60s /tmp/tmpwwh795q9/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Get stats of system files ----------------------------------------------- 0.58s /tmp/tmpwwh795q9/tests/_backup.yml:6 ------------------------------------------ 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/tmposyp_ghn 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/tmp1gs4m1jh/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp1gs4m1jh/tests/network/_backup.yml:6 Wednesday 03 August 2022 15:41:16 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/rhel-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": 1659541275.213115, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659541275.213115, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659541026.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "3192380675", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp1gs4m1jh/tests/network/_backup.yml:13 Wednesday 03 August 2022 15:41:17 +0000 (0:00:00.565) 0:00:00.583 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-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': 13422, 'dev': 64516, 'nlink': 1, 'atime': 1659541275.213115, 'mtime': 1659541026.0, 'ctime': 1659541275.213115, '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': '3192380675', '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": 1659541275.213115, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659541275.213115, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13422, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659541026.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "3192380675", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/_backup.yml:19 Wednesday 03 August 2022 15:41:17 +0000 (0:00:00.033) 0:00:00.617 ****** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003213", "end": "2022-08-03 11:41:16.840584", "rc": 0, "start": "2022-08-03 11:41:16.837371" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:41:17 +0000 (0:00:00.458) 0:00:01.075 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.57s /tmp/tmp1gs4m1jh/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.46s /tmp/tmp1gs4m1jh/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmp1gs4m1jh/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_bridge_nm.yml ************************************************** 10 plays in /tmp/tmp1gs4m1jh/tests/network/tests_bridge_nm.yml PLAY [Run playbook 'playbooks/tests_bridge.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/tests_bridge_nm.yml:5 Wednesday 03 August 2022 15:41:17 +0000 (0:00:00.060) 0:00:01.135 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tests_bridge_nm.yml:8 Wednesday 03 August 2022 15:41:18 +0000 (0:00:01.059) 0:00:02.194 ****** included: /tmp/tmp1gs4m1jh/tests/network/tasks/el_repo_setup.yml for /cache/rhel-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.027) 0:00:02.222 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.021) 0:00:02.243 ****** included: /tmp/tmp1gs4m1jh/tests/network/tasks/enable_epel.yml for /cache/rhel-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.030) 0:00:02.273 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.020) 0:00:02.294 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.022) 0:00:02.316 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.022) 0:00:02.338 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmp1gs4m1jh/tests/network/tests_bridge_nm.yml:9 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.021) 0:00:02.360 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [Test configuring bridges] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:3 Wednesday 03 August 2022 15:41:18 +0000 (0:00:00.046) 0:00:02.407 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [set interface=LSR-TST-br31] ********************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:9 Wednesday 03 August 2022 15:41:19 +0000 (0:00:00.790) 0:00:03.198 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "interface": "LSR-TST-br31" }, "changed": false } TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:12 Wednesday 03 August 2022 15:41:19 +0000 (0:00:00.034) 0:00:03.233 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/show_interfaces.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:41:19 +0000 (0:00:00.030) 0:00:03.263 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:41:19 +0000 (0:00:00.031) 0:00:03.294 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003127", "end": "2022-08-03 11:41:19.409462", "rc": 0, "start": "2022-08-03 11:41:19.406335" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:41:20 +0000 (0:00:00.341) 0:00:03.636 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:41:20 +0000 (0:00:00.029) 0:00:03.666 ****** ok: [/cache/rhel-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:13 Wednesday 03 August 2022 15:41:20 +0000 (0:00:00.032) 0:00:03.698 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:41:20 +0000 (0:00:00.028) 0:00:03.727 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:41:20 +0000 (0:00:00.035) 0:00:03.762 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:41:20 +0000 (0:00:00.360) 0:00:04.122 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Add test bridge] ********************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:15 Wednesday 03 August 2022 15:41:20 +0000 (0:00:00.057) 0:00:04.179 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 15:41:21 +0000 (0:00:00.813) 0:00:04.993 ****** included: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:41:21 +0000 (0:00:00.036) 0:00:05.029 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 15:41:22 +0000 (0:00:00.534) 0:00:05.564 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 15:41:23 +0000 (0:00:01.662) 0:00:07.226 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 15:41:24 +0000 (0:00:00.963) 0:00:08.190 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 15:41:24 +0000 (0:00:00.047) 0:00:08.238 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 15:41:24 +0000 (0:00:00.041) 0:00:08.280 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 15:41:24 +0000 (0:00:00.039) 0:00:08.320 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 15:41:24 +0000 (0:00:00.075) 0:00:08.395 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 15:41:24 +0000 (0:00:00.040) 0:00:08.435 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 15:41:24 +0000 (0:00:00.039) 0:00:08.475 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 15:41:25 +0000 (0:00:00.057) 0:00:08.532 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 15:41:25 +0000 (0:00:00.851) 0:00:09.384 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 15:41:25 +0000 (0:00:00.057) 0:00:09.442 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 15:41:25 +0000 (0:00:00.034) 0:00:09.476 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 15:41:26 +0000 (0:00:00.035) 0:00:09.512 ****** changed: [/cache/rhel-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018 [004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 15:41:26 +0000 (0:00:00.777) 0:00:10.289 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 15:41:26 +0000 (0:00:00.039) 0:00:10.328 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 15:41:26 +0000 (0:00:00.043) 0:00:10.372 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018\n[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 3298da66-e10c-4e9c-b0e0-2207f2df6018 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 15:41:26 +0000 (0:00:00.047) 0:00:10.420 ****** skipping: [/cache/rhel-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 15:41:26 +0000 (0:00:00.046) 0:00:10.466 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_device_present.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:41:27 +0000 (0:00:00.594) 0:00:11.061 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:41:28 +0000 (0:00:00.878) 0:00:11.939 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_present.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 15:41:28 +0000 (0:00:00.054) 0:00:11.994 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:41:28 +0000 (0:00:00.057) 0:00:12.051 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659541285.998791, "block_size": 4096, "blocks": 0, "ctime": 1659541285.998791, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26909, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/LSR-TST-br31", "lnk_target": "../../devices/virtual/net/LSR-TST-br31", "mode": "0777", "mtime": 1659541285.998791, "nlink": 1, "path": "/sys/class/net/LSR-TST-br31", "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 LSR-TST-br31 is present] *************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 15:41:28 +0000 (0:00:00.376) 0:00:12.428 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_profile_present.yml] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:41:29 +0000 (0:00:00.096) 0:00:12.525 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:41:29 +0000 (0:00:00.901) 0:00:13.426 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:41:29 +0000 (0:00:00.059) 0:00:13.486 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/rhel-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 15:41:30 +0000 (0:00:00.065) 0:00:13.551 ****** ok: [/cache/rhel-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/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 15:41:30 +0000 (0:00:00.046) 0:00:13.598 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659541286.032115, "block_size": 4096, "blocks": 8, "ctime": 1659541285.996115, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17263006, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659541285.996115, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 249, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 15:41:30 +0000 (0:00:00.385) 0:00:13.984 ****** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:41:30 +0000 (0:00:00.047) 0:00:14.032 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.020005", "end": "2022-08-03 11:41:30.187860", "rc": 0, "start": "2022-08-03 11:41:30.167855" } STDOUT: LSR-TST-br31 /etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:41:30 +0000 (0:00:00.402) 0:00:14.434 ****** ok: [/cache/rhel-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-LSR-TST-br31] ******************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:41:31 +0000 (0:00:00.106) 0:00:14.541 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:41:31 +0000 (0:00:00.038) 0:00:14.579 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is present] *************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:41:31 +0000 (0:00:00.036) 0:00:14.617 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'LSR-TST-br31' is present] ******** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:41:31 +0000 (0:00:00.051) 0:00:14.668 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/down_profile.yml:3 Wednesday 03 August 2022 15:41:31 +0000 (0:00:00.096) 0:00:14.765 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 15:41:32 +0000 (0:00:00.853) 0:00:15.619 ****** included: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:41:32 +0000 (0:00:00.067) 0:00:15.686 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 15:41:32 +0000 (0:00:00.542) 0:00:16.229 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 15:41:34 +0000 (0:00:01.522) 0:00:17.752 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.750) 0:00:18.502 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.112) 0:00:18.614 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.040) 0:00:18.655 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.039) 0:00:18.695 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.075) 0:00:18.771 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.038) 0:00:18.809 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.039) 0:00:18.849 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.051) 0:00:18.900 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 15:41:35 +0000 (0:00:00.568) 0:00:19.468 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.057) 0:00:19.526 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.037) 0:00:19.563 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.037) 0:00:19.601 ****** changed: [/cache/rhel-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.576) 0:00:20.177 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.076) 0:00:20.253 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.048) 0:00:20.301 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.051) 0:00:20.353 ****** skipping: [/cache/rhel-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 15:41:36 +0000 (0:00:00.039) 0:00:20.393 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/down_profile+delete_interface.yml:4 Wednesday 03 August 2022 15:41:37 +0000 (0:00:00.452) 0:00:20.846 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/down_profile+delete_interface.yml:7 Wednesday 03 August 2022 15:41:38 +0000 (0:00:00.842) 0:00:21.688 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/delete_interface.yml for /cache/rhel-9.qcow2.snap TASK [remove test interface if necessary] ************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 15:41:38 +0000 (0:00:00.058) 0:00:21.747 ****** fatal: [/cache/rhel-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "LSR-TST-br31" ], "delta": "0:00:00.007049", "end": "2022-08-03 11:41:37.933871", "rc": 1, "start": "2022-08-03 11:41:37.926822" } STDERR: Cannot find device "LSR-TST-br31" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/remove_profile.yml:3 Wednesday 03 August 2022 15:41:38 +0000 (0:00:00.474) 0:00:22.222 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 15:41:39 +0000 (0:00:00.888) 0:00:23.110 ****** included: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:41:39 +0000 (0:00:00.080) 0:00:23.191 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 15:41:40 +0000 (0:00:00.659) 0:00:23.850 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 15:41:41 +0000 (0:00:01.587) 0:00:25.437 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 15:41:42 +0000 (0:00:00.729) 0:00:26.167 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 15:41:42 +0000 (0:00:00.047) 0:00:26.214 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 15:41:42 +0000 (0:00:00.041) 0:00:26.255 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 15:41:42 +0000 (0:00:00.041) 0:00:26.297 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 15:41:42 +0000 (0:00:00.102) 0:00:26.399 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 15:41:42 +0000 (0:00:00.040) 0:00:26.440 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 15:41:42 +0000 (0:00:00.039) 0:00:26.479 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 15:41:43 +0000 (0:00:00.057) 0:00:26.536 ****** ok: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 15:41:43 +0000 (0:00:00.556) 0:00:27.093 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 15:41:43 +0000 (0:00:00.054) 0:00:27.148 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 15:41:43 +0000 (0:00:00.033) 0:00:27.181 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 15:41:43 +0000 (0:00:00.035) 0:00:27.216 ****** changed: [/cache/rhel-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 15:41:44 +0000 (0:00:00.560) 0:00:27.776 ****** skipping: [/cache/rhel-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/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 15:41:44 +0000 (0:00:00.039) 0:00:27.816 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 15:41:44 +0000 (0:00:00.055) 0:00:27.871 ****** ok: [/cache/rhel-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 15:41:44 +0000 (0:00:00.049) 0:00:27.921 ****** skipping: [/cache/rhel-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 15:41:44 +0000 (0:00:00.078) 0:00:27.999 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_profile_absent.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:41:44 +0000 (0:00:00.464) 0:00:28.464 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:41:45 +0000 (0:00:00.883) 0:00:29.348 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 15:41:45 +0000 (0:00:00.057) 0:00:29.405 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/rhel-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 15:41:45 +0000 (0:00:00.058) 0:00:29.463 ****** ok: [/cache/rhel-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/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 15:41:46 +0000 (0:00:00.144) 0:00:29.608 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 15:41:46 +0000 (0:00:00.370) 0:00:29.979 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:41:46 +0000 (0:00:00.035) 0:00:30.015 ****** fatal: [/cache/rhel-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.016971", "end": "2022-08-03 11:41:46.174599", "rc": 1, "start": "2022-08-03 11:41:46.157628" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:41:46 +0000 (0:00:00.406) 0:00:30.422 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-LSR-TST-br31] ******************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:41:46 +0000 (0:00:00.042) 0:00:30.464 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:41:47 +0000 (0:00:00.040) 0:00:30.505 ****** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is absent] **************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 15:41:47 +0000 (0:00:00.038) 0:00:30.544 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_device_absent.yml] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 15:41:47 +0000 (0:00:00.097) 0:00:30.641 ****** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 15:41:48 +0000 (0:00:00.864) 0:00:31.505 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/rhel-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:41:48 +0000 (0:00:00.056) 0:00:31.562 ****** included: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:41:48 +0000 (0:00:00.059) 0:00:31.621 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmp1gs4m1jh/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:41:48 +0000 (0:00:00.372) 0:00:31.993 ****** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=81 changed=4 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 15:41:48 +0000 (0:00:00.067) 0:00:32.060 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.66s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.59s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.52s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp1gs4m1jh/tests/network/tests_bridge_nm.yml:5 -------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.96s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Gathering Facts --------------------------------------------------------- 0.90s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.89s /tmp/tmp1gs4m1jh/tests/network/playbooks/remove_profile.yml:3 ----------------- Gathering Facts --------------------------------------------------------- 0.88s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.88s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmp1gs4m1jh/tests/network/playbooks/down_profile.yml:3 ------------------- fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.85s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmp1gs4m1jh/tests/network/playbooks/down_profile+delete_interface.yml:4 -- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:15 ------------------ Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:3 ------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.78s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which packages are installed --- 0.75s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 0.73s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.66s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.59s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp1gs4m1jh/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp1gs4m1jh/tests/network/_restore.yml:4 Wednesday 03 August 2022 15:41:48 +0000 (0:00:00.046) 0:00:32.107 ****** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.005462", "end": "2022-08-03 11:41:48.237722", "rc": 0, "start": "2022-08-03 11:41:48.232260" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=82 changed=5 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 15:41:49 +0000 (0:00:00.396) 0:00:32.504 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.66s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.59s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.52s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp1gs4m1jh/tests/network/tests_bridge_nm.yml:5 -------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.96s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Gathering Facts --------------------------------------------------------- 0.90s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.89s /tmp/tmp1gs4m1jh/tests/network/playbooks/remove_profile.yml:3 ----------------- Gathering Facts --------------------------------------------------------- 0.88s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.88s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmp1gs4m1jh/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmp1gs4m1jh/tests/network/playbooks/down_profile.yml:3 ------------------- fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.85s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmp1gs4m1jh/tests/network/playbooks/down_profile+delete_interface.yml:4 -- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:15 ------------------ Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmp1gs4m1jh/tests/network/playbooks/tests_bridge.yml:3 ------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.78s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which packages are installed --- 0.75s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 0.73s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.66s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.59s /tmp/tmposyp_ghn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139