ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp40vowjjo executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmp05ac0kav/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:6 Wednesday 03 August 2022 16:08:06 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/centos-9.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659542885.1409354, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659542885.1409354, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737477", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp05ac0kav/tests/_backup.yml:13 Wednesday 03 August 2022 16:08:07 +0000 (0:00:00.635) 0:00:00.653 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 4210438, 'dev': 64513, 'nlink': 1, 'atime': 1659542885.1409354, 'mtime': 1659542505.0, 'ctime': 1659542885.1409354, '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': '1127737477', '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": 1659542885.1409354, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659542885.1409354, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737477", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:19 Wednesday 03 August 2022 16:08:07 +0000 (0:00:00.038) 0:00:00.691 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003650", "end": "2022-08-03 12:08:06.908362", "rc": 0, "start": "2022-08-03 12:08:06.904712" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:08:07 +0000 (0:00:00.474) 0:00:01.166 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.64s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.47s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmp05ac0kav/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_bridge_nm.yml ************************************************** 10 plays in /tmp/tmp05ac0kav/tests/tests_bridge_nm.yml PLAY [Run playbook 'playbooks/tests_bridge.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/tests_bridge_nm.yml:5 Wednesday 03 August 2022 16:08:07 +0000 (0:00:00.065) 0:00:01.232 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tests_bridge_nm.yml:8 Wednesday 03 August 2022 16:08:08 +0000 (0:00:01.026) 0:00:02.258 ****** included: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.026) 0:00:02.284 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.024) 0:00:02.309 ****** included: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.029) 0:00:02.339 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.021) 0:00:02.360 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.021) 0:00:02.381 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.021) 0:00:02.403 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmp05ac0kav/tests/tests_bridge_nm.yml:9 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.021) 0:00:02.424 ****** ok: [/cache/centos-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/tmp05ac0kav/tests/playbooks/tests_bridge.yml:3 Wednesday 03 August 2022 16:08:08 +0000 (0:00:00.047) 0:00:02.471 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [set interface=LSR-TST-br31] ********************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_bridge.yml:9 Wednesday 03 August 2022 16:08:09 +0000 (0:00:00.801) 0:00:03.273 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "interface": "LSR-TST-br31" }, "changed": false } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_bridge.yml:12 Wednesday 03 August 2022 16:08:09 +0000 (0:00:00.033) 0:00:03.307 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:08:09 +0000 (0:00:00.028) 0:00:03.336 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:08:09 +0000 (0:00:00.030) 0:00:03.366 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003957", "end": "2022-08-03 12:08:09.490005", "rc": 0, "start": "2022-08-03 12:08:09.486048" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.394) 0:00:03.760 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.042) 0:00:03.803 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_bridge.yml:13 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.032) 0:00:03.836 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.028) 0:00:03.864 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.028) 0:00:03.893 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.375) 0:00:04.268 ****** ok: [/cache/centos-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/tmp05ac0kav/tests/playbooks/tests_bridge.yml:15 Wednesday 03 August 2022 16:08:10 +0000 (0:00:00.053) 0:00:04.322 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.817) 0:00:05.140 ****** included: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:08:11 +0000 (0:00:00.030) 0:00:05.170 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:08:12 +0000 (0:00:00.530) 0:00:05.701 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:08:13 +0000 (0:00:01.592) 0:00:07.293 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:08:14 +0000 (0:00:01.058) 0:00:08.352 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:08:14 +0000 (0:00:00.042) 0:00:08.395 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:08:14 +0000 (0:00:00.034) 0:00:08.429 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:08:14 +0000 (0:00:00.034) 0:00:08.463 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:08:14 +0000 (0:00:00.067) 0:00:08.531 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:08:14 +0000 (0:00:00.033) 0:00:08.564 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:08:14 +0000 (0:00:00.037) 0:00:08.602 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:08:15 +0000 (0:00:00.053) 0:00:08.656 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:08:15 +0000 (0:00:00.811) 0:00:09.468 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:08:15 +0000 (0:00:00.052) 0:00:09.520 ****** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:08:15 +0000 (0:00:00.031) 0:00:09.551 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:08:15 +0000 (0:00:00.032) 0:00:09.583 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "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, 78fc4290-701c-49af-923a-4238aab34171 [004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 78fc4290-701c-49af-923a-4238aab34171 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:08:16 +0000 (0:00:00.793) 0:00:10.377 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:08:16 +0000 (0:00:00.038) 0:00:10.415 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 78fc4290-701c-49af-923a-4238aab34171", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 78fc4290-701c-49af-923a-4238aab34171 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:08:16 +0000 (0:00:00.045) 0:00:10.461 ****** ok: [/cache/centos-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, 78fc4290-701c-49af-923a-4238aab34171\n[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 78fc4290-701c-49af-923a-4238aab34171 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 78fc4290-701c-49af-923a-4238aab34171", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 78fc4290-701c-49af-923a-4238aab34171 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:08:16 +0000 (0:00:00.047) 0:00:10.508 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:08:16 +0000 (0:00:00.037) 0:00:10.545 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_device_present.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:08:17 +0000 (0:00:00.563) 0:00:11.108 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:08:18 +0000 (0:00:00.843) 0:00:11.952 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_present.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:08:18 +0000 (0:00:00.054) 0:00:12.006 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:08:18 +0000 (0:00:00.055) 0:00:12.062 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659542896.0765884, "block_size": 4096, "blocks": 0, "ctime": 1659542896.0765884, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28609, "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": 1659542896.0765884, "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/tmp05ac0kav/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:08:18 +0000 (0:00:00.351) 0:00:12.413 ****** ok: [/cache/centos-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/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:08:18 +0000 (0:00:00.091) 0:00:12.505 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:08:19 +0000 (0:00:00.824) 0:00:13.330 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:08:19 +0000 (0:00:00.055) 0:00:13.386 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml for /cache/centos-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:08:19 +0000 (0:00:00.091) 0:00:13.477 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:08:19 +0000 (0:00:00.043) 0:00:13.521 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659542896.0999353, "block_size": 4096, "blocks": 8, "ctime": 1659542896.0749354, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8941520, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659542896.0749354, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 250, "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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.381) 0:00:13.902 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.046) 0:00:13.949 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.016606", "end": "2022-08-03 12:08:20.070601", "rc": 0, "start": "2022-08-03 12:08:20.053995" } 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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.389) 0:00:14.338 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-LSR-TST-br31] ******************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.048) 0:00:14.386 ****** skipping: [/cache/centos-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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.037) 0:00:14.424 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is present] *************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.034) 0:00:14.458 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'LSR-TST-br31' is present] ******** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.046) 0:00:14.505 ****** ok: [/cache/centos-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/tmp05ac0kav/tests/playbooks/down_profile.yml:3 Wednesday 03 August 2022 16:08:20 +0000 (0:00:00.091) 0:00:14.597 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:08:21 +0000 (0:00:00.845) 0:00:15.442 ****** included: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:08:21 +0000 (0:00:00.057) 0:00:15.499 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:08:22 +0000 (0:00:00.530) 0:00:16.030 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:08:23 +0000 (0:00:01.446) 0:00:17.476 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.793) 0:00:18.270 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.048) 0:00:18.318 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.040) 0:00:18.358 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.045) 0:00:18.403 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.073) 0:00:18.477 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.037) 0:00:18.514 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.037) 0:00:18.552 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:08:24 +0000 (0:00:00.054) 0:00:18.606 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:08:25 +0000 (0:00:00.560) 0:00:19.167 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:08:25 +0000 (0:00:00.056) 0:00:19.223 ****** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:08:25 +0000 (0:00:00.069) 0:00:19.292 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:08:25 +0000 (0:00:00.035) 0:00:19.328 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:08:26 +0000 (0:00:00.597) 0:00:19.925 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:08:26 +0000 (0:00:00.037) 0:00:19.963 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:08:26 +0000 (0:00:00.048) 0:00:20.012 ****** ok: [/cache/centos-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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:08:26 +0000 (0:00:00.046) 0:00:20.058 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:08:26 +0000 (0:00:00.038) 0:00:20.097 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/down_profile+delete_interface.yml:4 Wednesday 03 August 2022 16:08:26 +0000 (0:00:00.453) 0:00:20.551 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/down_profile+delete_interface.yml:7 Wednesday 03 August 2022 16:08:27 +0000 (0:00:00.826) 0:00:21.378 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/delete_interface.yml for /cache/centos-9.qcow2.snap TASK [remove test interface if necessary] ************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 16:08:27 +0000 (0:00:00.056) 0:00:21.434 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "LSR-TST-br31" ], "delta": "0:00:00.006829", "end": "2022-08-03 12:08:27.555279", "rc": 1, "start": "2022-08-03 12:08:27.548450" } 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/tmp05ac0kav/tests/playbooks/remove_profile.yml:3 Wednesday 03 August 2022 16:08:28 +0000 (0:00:00.435) 0:00:21.870 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:08:29 +0000 (0:00:00.815) 0:00:22.685 ****** included: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:08:29 +0000 (0:00:00.063) 0:00:22.749 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:08:29 +0000 (0:00:00.573) 0:00:23.323 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:08:32 +0000 (0:00:02.474) 0:00:25.798 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:08:32 +0000 (0:00:00.739) 0:00:26.537 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:08:32 +0000 (0:00:00.044) 0:00:26.582 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:08:32 +0000 (0:00:00.063) 0:00:26.645 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.038) 0:00:26.683 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.076) 0:00:26.760 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.038) 0:00:26.798 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.036) 0:00:26.834 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.070) 0:00:26.905 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.568) 0:00:27.474 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.057) 0:00:27.531 ****** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.035) 0:00:27.567 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:08:33 +0000 (0:00:00.034) 0:00:27.602 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:08:34 +0000 (0:00:00.550) 0:00:28.152 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:08:34 +0000 (0:00:00.040) 0:00:28.192 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:08:34 +0000 (0:00:00.129) 0:00:28.322 ****** ok: [/cache/centos-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/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:08:34 +0000 (0:00:00.046) 0:00:28.369 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:08:34 +0000 (0:00:00.041) 0:00:28.410 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_profile_absent.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:08:35 +0000 (0:00:00.439) 0:00:28.849 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:08:35 +0000 (0:00:00.789) 0:00:29.639 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_absent.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 16:08:36 +0000 (0:00:00.057) 0:00:29.696 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml for /cache/centos-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:08:36 +0000 (0:00:00.066) 0:00:29.763 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:08:36 +0000 (0:00:00.162) 0:00:29.926 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:08:36 +0000 (0:00:00.374) 0:00:30.300 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:08:36 +0000 (0:00:00.035) 0:00:30.336 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.016744", "end": "2022-08-03 12:08:36.462148", "rc": 1, "start": "2022-08-03 12:08:36.445404" } 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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:08:37 +0000 (0:00:00.397) 0:00:30.733 ****** skipping: [/cache/centos-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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:08:37 +0000 (0:00:00.036) 0:00:30.770 ****** skipping: [/cache/centos-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/tmp05ac0kav/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:08:37 +0000 (0:00:00.034) 0:00:30.804 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is absent] **************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 16:08:37 +0000 (0:00:00.032) 0:00:30.836 ****** ok: [/cache/centos-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/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:08:37 +0000 (0:00:00.090) 0:00:30.927 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:08:38 +0000 (0:00:00.851) 0:00:31.779 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:08:38 +0000 (0:00:00.056) 0:00:31.835 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:08:38 +0000 (0:00:00.057) 0:00:31.892 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:08:38 +0000 (0:00:00.406) 0:00:32.299 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=81 changed=4 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 16:08:38 +0000 (0:00:00.069) 0:00:32.368 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 2.47s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.59s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.45s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.06s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp05ac0kav/tests/tests_bridge_nm.yml:5 ---------------------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmp05ac0kav/tests/playbooks/down_profile.yml:3 --------------------------- Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.83s /tmp/tmp05ac0kav/tests/playbooks/down_profile+delete_interface.yml:4 ---------- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmp05ac0kav/tests/playbooks/tests_bridge.yml:15 -------------------------- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmp05ac0kav/tests/playbooks/remove_profile.yml:3 ------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.81s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmp05ac0kav/tests/playbooks/tests_bridge.yml:3 --------------------------- linux-system-roles.network : Check which packages are installed --------- 0.79s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Configure networking connection profiles --- 0.79s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ linux-system-roles.network : Check which packages are installed --------- 0.74s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Get stats of system files ----------------------------------------------- 0.64s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ linux-system-roles.network : Configure networking connection profiles --- 0.60s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp05ac0kav/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp05ac0kav/tests/_restore.yml:4 Wednesday 03 August 2022 16:08:38 +0000 (0:00:00.041) 0:00:32.410 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.007414", "end": "2022-08-03 12:08:38.516460", "rc": 0, "start": "2022-08-03 12:08:38.509046" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=82 changed=5 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 16:08:39 +0000 (0:00:00.405) 0:00:32.815 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 2.47s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.59s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.45s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.06s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmp05ac0kav/tests/tests_bridge_nm.yml:5 ---------------------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmp05ac0kav/tests/playbooks/down_profile.yml:3 --------------------------- Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.83s /tmp/tmp05ac0kav/tests/playbooks/down_profile+delete_interface.yml:4 ---------- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmp05ac0kav/tests/playbooks/tests_bridge.yml:15 -------------------------- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmp05ac0kav/tests/playbooks/remove_profile.yml:3 ------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.81s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmp05ac0kav/tests/playbooks/tests_bridge.yml:3 --------------------------- linux-system-roles.network : Check which packages are installed --------- 0.79s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Configure networking connection profiles --- 0.79s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmp05ac0kav/tests/playbooks/run_tasks.yml:3 ------------------------------ linux-system-roles.network : Check which packages are installed --------- 0.74s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Get stats of system files ----------------------------------------------- 0.64s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ linux-system-roles.network : Configure networking connection profiles --- 0.60s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp40vowjjo executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpem3y1lsc/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 Wednesday 03 August 2022 16:29:15 +0000 (0:00:00.019) 0:00:00.019 ****** ok: [/cache/centos-9.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659544153.4049025, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544153.4049025, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080138", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 Wednesday 03 August 2022 16:29:15 +0000 (0:00:00.609) 0:00:00.628 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 4210118, 'dev': 64513, 'nlink': 1, 'atime': 1659544153.4049025, 'mtime': 1659543778.0, 'ctime': 1659544153.4049025, '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': '561080138', '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": 1659544153.4049025, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544153.4049025, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080138", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 Wednesday 03 August 2022 16:29:15 +0000 (0:00:00.043) 0:00:00.671 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004000", "end": "2022-08-03 12:29:15.183805", "rc": 0, "start": "2022-08-03 12:29:15.179805" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:29:16 +0000 (0:00:00.521) 0:00:01.193 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.61s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.52s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_bridge_nm.yml ************************************************** 10 plays in /tmp/tmpem3y1lsc/tests/network/tests_bridge_nm.yml PLAY [Run playbook 'playbooks/tests_bridge.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/tests_bridge_nm.yml:5 Wednesday 03 August 2022 16:29:16 +0000 (0:00:00.079) 0:00:01.272 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_bridge_nm.yml:8 Wednesday 03 August 2022 16:29:17 +0000 (0:00:01.065) 0:00:02.337 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.027) 0:00:02.364 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.022) 0:00:02.386 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.029) 0:00:02.416 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.022) 0:00:02.438 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.021) 0:00:02.459 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.020) 0:00:02.479 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_bridge_nm.yml:9 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.020) 0:00:02.500 ****** ok: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:3 Wednesday 03 August 2022 16:29:17 +0000 (0:00:00.048) 0:00:02.549 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [set interface=LSR-TST-br31] ********************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:9 Wednesday 03 August 2022 16:29:18 +0000 (0:00:00.799) 0:00:03.348 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "interface": "LSR-TST-br31" }, "changed": false } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:12 Wednesday 03 August 2022 16:29:18 +0000 (0:00:00.030) 0:00:03.379 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:29:18 +0000 (0:00:00.029) 0:00:03.409 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:29:18 +0000 (0:00:00.030) 0:00:03.439 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003752", "end": "2022-08-03 12:29:17.814997", "rc": 0, "start": "2022-08-03 12:29:17.811245" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:29:19 +0000 (0:00:00.387) 0:00:03.826 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:29:19 +0000 (0:00:00.039) 0:00:03.866 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:13 Wednesday 03 August 2022 16:29:19 +0000 (0:00:00.034) 0:00:03.900 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:29:19 +0000 (0:00:00.032) 0:00:03.932 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:29:19 +0000 (0:00:00.032) 0:00:03.965 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:29:19 +0000 (0:00:00.370) 0:00:04.335 ****** ok: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:15 Wednesday 03 August 2022 16:29:19 +0000 (0:00:00.056) 0:00:04.391 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:29:20 +0000 (0:00:00.799) 0:00:05.190 ****** included: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:29:20 +0000 (0:00:00.034) 0:00:05.224 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:29:20 +0000 (0:00:00.503) 0:00:05.728 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:29:22 +0000 (0:00:01.628) 0:00:07.357 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.983) 0:00:08.340 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.048) 0:00:08.388 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.038) 0:00:08.427 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.035) 0:00:08.462 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.074) 0:00:08.537 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.038) 0:00:08.575 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.037) 0:00:08.613 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.051) 0:00:08.664 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:29:24 +0000 (0:00:00.816) 0:00:09.481 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:29:24 +0000 (0:00:00.055) 0:00:09.537 ****** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:29:24 +0000 (0:00:00.037) 0:00:09.574 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:29:24 +0000 (0:00:00.033) 0:00:09.608 ****** changed: [/cache/centos-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, c8bf7c65-fafe-4ff8-a825-7da21f604672 [004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, c8bf7c65-fafe-4ff8-a825-7da21f604672 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.740) 0:00:10.348 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.038) 0:00:10.386 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, c8bf7c65-fafe-4ff8-a825-7da21f604672", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, c8bf7c65-fafe-4ff8-a825-7da21f604672 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.046) 0:00:10.433 ****** ok: [/cache/centos-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, c8bf7c65-fafe-4ff8-a825-7da21f604672\n[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, c8bf7c65-fafe-4ff8-a825-7da21f604672 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, c8bf7c65-fafe-4ff8-a825-7da21f604672", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, c8bf7c65-fafe-4ff8-a825-7da21f604672 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.052) 0:00:10.485 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.040) 0:00:10.526 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_device_present.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:29:26 +0000 (0:00:00.649) 0:00:11.175 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.839) 0:00:12.015 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_present.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.056) 0:00:12.072 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.056) 0:00:12.128 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659544164.2943504, "block_size": 4096, "blocks": 0, "ctime": 1659544164.2943504, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28609, "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": 1659544164.2943504, "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/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.392) 0:00:12.521 ****** ok: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.090) 0:00:12.612 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.866) 0:00:13.478 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.058) 0:00:13.537 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/centos-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.059) 0:00:13.597 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.045) 0:00:13.643 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1659544164.3229024, "block_size": 4096, "blocks": 8, "ctime": 1659544164.2919023, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8941520, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659544164.2919023, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 250, "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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.376) 0:00:14.019 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.045) 0:00:14.064 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.018702", "end": "2022-08-03 12:29:28.444754", "rc": 0, "start": "2022-08-03 12:29:28.426052" } 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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.405) 0:00:14.470 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-LSR-TST-br31] ******************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.046) 0:00:14.516 ****** skipping: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.035) 0:00:14.552 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is present] *************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.060) 0:00:14.612 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'LSR-TST-br31' is present] ******** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.046) 0:00:14.659 ****** ok: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/down_profile.yml:3 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.091) 0:00:14.750 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:29:30 +0000 (0:00:00.853) 0:00:15.604 ****** included: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:29:30 +0000 (0:00:00.067) 0:00:15.671 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:29:31 +0000 (0:00:00.563) 0:00:16.235 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:29:33 +0000 (0:00:01.606) 0:00:17.841 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.741) 0:00:18.583 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.045) 0:00:18.628 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.037) 0:00:18.666 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.035) 0:00:18.701 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.115) 0:00:18.817 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.039) 0:00:18.856 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.045) 0:00:18.902 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.052) 0:00:18.954 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.586) 0:00:19.541 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.056) 0:00:19.598 ****** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.034) 0:00:19.632 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.032) 0:00:19.664 ****** changed: [/cache/centos-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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.598) 0:00:20.263 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.039) 0:00:20.302 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.048) 0:00:20.351 ****** ok: [/cache/centos-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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.051) 0:00:20.403 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.039) 0:00:20.442 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/down_profile+delete_interface.yml:4 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.500) 0:00:20.942 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/down_profile+delete_interface.yml:7 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.835) 0:00:21.778 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/delete_interface.yml for /cache/centos-9.qcow2.snap TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 16:29:37 +0000 (0:00:00.062) 0:00:21.840 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "LSR-TST-br31" ], "delta": "0:00:00.007682", "end": "2022-08-03 12:29:36.212796", "rc": 1, "start": "2022-08-03 12:29:36.205114" } 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/tmpem3y1lsc/tests/network/playbooks/remove_profile.yml:3 Wednesday 03 August 2022 16:29:37 +0000 (0:00:00.438) 0:00:22.279 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:29:38 +0000 (0:00:00.867) 0:00:23.147 ****** included: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:29:38 +0000 (0:00:00.060) 0:00:23.208 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:29:38 +0000 (0:00:00.545) 0:00:23.753 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:29:40 +0000 (0:00:01.451) 0:00:25.204 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.719) 0:00:25.924 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.047) 0:00:25.971 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.040) 0:00:26.012 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.039) 0:00:26.051 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.073) 0:00:26.125 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.040) 0:00:26.165 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.039) 0:00:26.204 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:29:41 +0000 (0:00:00.057) 0:00:26.262 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.576) 0:00:26.838 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.058) 0:00:26.896 ****** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.034) 0:00:26.930 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.034) 0:00:26.965 ****** changed: [/cache/centos-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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.563) 0:00:27.528 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.039) 0:00:27.568 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.043) 0:00:27.611 ****** ok: [/cache/centos-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/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.044) 0:00:27.656 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:29:42 +0000 (0:00:00.039) 0:00:27.696 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Run the tasklist tasks/assert_profile_absent.yml] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:29:43 +0000 (0:00:00.441) 0:00:28.137 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:29:44 +0000 (0:00:00.849) 0:00:28.987 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_absent.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 16:29:44 +0000 (0:00:00.053) 0:00:29.041 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/centos-9.qcow2.snap TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:29:44 +0000 (0:00:00.057) 0:00:29.098 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:29:44 +0000 (0:00:00.055) 0:00:29.153 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:29:44 +0000 (0:00:00.402) 0:00:29.555 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:29:44 +0000 (0:00:00.036) 0:00:29.592 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.015357", "end": "2022-08-03 12:29:43.969961", "rc": 1, "start": "2022-08-03 12:29:43.954604" } 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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:29:45 +0000 (0:00:00.395) 0:00:29.988 ****** skipping: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:29:45 +0000 (0:00:00.034) 0:00:30.023 ****** skipping: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:29:45 +0000 (0:00:00.064) 0:00:30.088 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is absent] **************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 16:29:45 +0000 (0:00:00.039) 0:00:30.127 ****** ok: [/cache/centos-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/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 Wednesday 03 August 2022 16:29:45 +0000 (0:00:00.103) 0:00:30.231 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:6 Wednesday 03 August 2022 16:29:46 +0000 (0:00:00.857) 0:00:31.089 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:29:46 +0000 (0:00:00.050) 0:00:31.140 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-9.qcow2.snap TASK [Get stat for interface LSR-TST-br31] ************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:29:46 +0000 (0:00:00.051) 0:00:31.191 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:29:46 +0000 (0:00:00.391) 0:00:31.583 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=81 changed=4 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 16:29:46 +0000 (0:00:00.099) 0:00:31.683 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.63s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.61s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.45s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmpem3y1lsc/tests/network/tests_bridge_nm.yml:5 -------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.98s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpem3y1lsc/tests/network/playbooks/remove_profile.yml:3 ----------------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmpem3y1lsc/tests/network/playbooks/down_profile.yml:3 ------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmpem3y1lsc/tests/network/playbooks/down_profile+delete_interface.yml:4 -- fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.82s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:3 ------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:15 ------------------ fedora.linux_system_roles.network : Check which packages are installed --- 0.74s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Configure networking connection profiles --- 0.74s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which packages are installed --- 0.72s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.65s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Get stats of system files ----------------------------------------------- 0.61s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpem3y1lsc/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/_restore.yml:4 Wednesday 03 August 2022 16:29:46 +0000 (0:00:00.041) 0:00:31.725 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.005967", "end": "2022-08-03 12:29:46.098998", "rc": 0, "start": "2022-08-03 12:29:46.093031" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=82 changed=5 unreachable=0 failed=0 skipped=44 rescued=0 ignored=2 Wednesday 03 August 2022 16:29:47 +0000 (0:00:00.411) 0:00:32.136 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.63s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.61s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.45s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmpem3y1lsc/tests/network/tests_bridge_nm.yml:5 -------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.98s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpem3y1lsc/tests/network/playbooks/remove_profile.yml:3 ----------------- Gathering Facts --------------------------------------------------------- 0.87s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.86s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmpem3y1lsc/tests/network/playbooks/down_profile.yml:3 ------------------- Gathering Facts --------------------------------------------------------- 0.85s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmpem3y1lsc/tests/network/playbooks/run_tasks.yml:3 ---------------------- Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmpem3y1lsc/tests/network/playbooks/down_profile+delete_interface.yml:4 -- fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.82s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:3 ------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_bridge.yml:15 ------------------ fedora.linux_system_roles.network : Check which packages are installed --- 0.74s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Configure networking connection profiles --- 0.74s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which packages are installed --- 0.72s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.65s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Get stats of system files ----------------------------------------------- 0.61s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ----------------------------------