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/tmpcwsggv7g 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 03 August 2022 15:52:37 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:52:39 +0000 (0:00:01.277) 0:00:01.295 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpd6fsfezc/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpd6fsfezc/tests/_backup.yml:6 Wednesday 03 August 2022 15:52:39 +0000 (0:00:00.014) 0:00:01.309 ****** ok: [/cache/rhel-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659541957.1147783, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659541956.1137784, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539931.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "98781534", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpd6fsfezc/tests/_backup.yml:13 Wednesday 03 August 2022 15:52:39 +0000 (0:00:00.500) 0:00:01.810 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 752168, 'dev': 64515, 'nlink': 1, 'atime': 1659541957.1147783, 'mtime': 1659539931.0, 'ctime': 1659541956.1137784, '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': '98781534', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659541957.1147783, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659541956.1137784, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539931.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "98781534", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpd6fsfezc/tests/_backup.yml:19 Wednesday 03 August 2022 15:52:39 +0000 (0:00:00.034) 0:00:01.845 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.005163", "end": "2022-08-03 11:52:39.075944", "rc": 0, "start": "2022-08-03 11:52:39.070781" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:52:40 +0000 (0:00:00.463) 0:00:02.308 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpd6fsfezc/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.46s /tmp/tmpd6fsfezc/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmpd6fsfezc/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_team_nm.yml **************************************************** 2 plays in /tmp/tmpd6fsfezc/tests/tests_team_nm.yml PLAY [Run playbook 'playbooks/tests_team.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/tests_team_nm.yml:5 Wednesday 03 August 2022 15:52:40 +0000 (0:00:00.011) 0:00:02.319 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tests_team_nm.yml:8 Wednesday 03 August 2022 15:52:41 +0000 (0:00:01.021) 0:00:03.341 ****** included: /tmp/tmpd6fsfezc/tests/tasks/el_repo_setup.yml for /cache/rhel-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:52:41 +0000 (0:00:00.025) 0:00:03.366 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:52:41 +0000 (0:00:00.018) 0:00:03.384 ****** included: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml for /cache/rhel-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:52:41 +0000 (0:00:00.025) 0:00:03.410 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:52:41 +0000 (0:00:00.350) 0:00:03.761 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:52:41 +0000 (0:00:00.020) 0:00:03.781 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.418567", "end": "2022-08-03 11:52:41.326131", "rc": 0, "start": "2022-08-03 11:52:40.907564" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:52:42 +0000 (0:00:00.772) 0:00:04.554 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmpd6fsfezc/tests/tests_team_nm.yml:9 Wednesday 03 August 2022 15:52:42 +0000 (0:00:00.021) 0:00:04.575 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_team.yml:3 Wednesday 03 August 2022 15:52:42 +0000 (0:00:00.044) 0:00:04.619 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_team.yml:10 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.817) 0:00:05.436 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: this is: playbooks/tests_team.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_team.yml:17 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.031) 0:00:05.468 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: Create a team interface without any port attached] ***************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.034) 0:00:05.503 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## Create a team interface without any port attached ########## TASK [Show item] *************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.032) 0:00:05.535 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a team interface without any port attached" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_team_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml", "tasks/assert_device_present.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [/cache/rhel-8.qcow2] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.151) 0:00:05.687 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.037) 0:00:05.724 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.030) 0:00:05.755 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003175", "end": "2022-08-03 11:52:42.897375", "rc": 0, "start": "2022-08-03 11:52:42.894200" } STDOUT: bonding_masters eth0 lo rpltstbr TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.371) 0:00:06.126 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "rpltstbr" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:52:43 +0000 (0:00:00.032) 0:00:06.159 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'rpltstbr'] TASK [setup] ******************************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.031) 0:00:06.190 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/delete_interface.yml for /cache/rhel-8.qcow2 => (item=tasks/delete_interface.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.045) 0:00:06.236 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "team0" ], "delta": "0:00:00.006558", "end": "2022-08-03 11:52:43.417470", "rc": 1, "start": "2022-08-03 11:52:43.410912" } STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.407) 0:00:06.643 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface team0] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.034) 0:00:06.678 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface team0 is absent] *********************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.359) 0:00:07.037 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.035) 0:00:07.072 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_team_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_team_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_team_profile.yml:3 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.039) 0:00:07.111 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 15:52:44 +0000 (0:00:00.046) 0:00:07.158 ****** included: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:52:45 +0000 (0:00:00.037) 0:00:07.196 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 15:52:45 +0000 (0:00:00.537) 0:00:07.733 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 15:52:47 +0000 (0:00:01.649) 0:00:09.382 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:52:48 +0000 (0:00:01.409) 0:00:10.792 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 15:52:48 +0000 (0:00:00.099) 0:00:10.891 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 15:52:48 +0000 (0:00:00.041) 0:00:10.933 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 15:52:48 +0000 (0:00:00.044) 0:00:10.977 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 15:52:48 +0000 (0:00:00.076) 0:00:11.053 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 15:52:48 +0000 (0:00:00.041) 0:00:11.095 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 15:52:48 +0000 (0:00:00.042) 0:00:11.138 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 15:52:49 +0000 (0:00:00.054) 0:00:11.192 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:52:49 +0000 (0:00:00.776) 0:00:11.968 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 15:52:49 +0000 (0:00:00.058) 0:00:12.027 ****** skipping: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 15:52:49 +0000 (0:00:00.037) 0:00:12.064 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 15:52:49 +0000 (0:00:00.039) 0:00:12.104 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'team0': add connection team0, b3b5afee-d762-48cd-86d8-fba078296ebd TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 15:52:50 +0000 (0:00:00.822) 0:00:12.926 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 15:52:50 +0000 (0:00:00.044) 0:00:12.971 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b3b5afee-d762-48cd-86d8-fba078296ebd" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 15:52:50 +0000 (0:00:00.046) 0:00:13.017 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b3b5afee-d762-48cd-86d8-fba078296ebd\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b3b5afee-d762-48cd-86d8-fba078296ebd" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 15:52:50 +0000 (0:00:00.048) 0:00:13.066 ****** skipping: [/cache/rhel-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 15:52:50 +0000 (0:00:00.039) 0:00:13.106 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [Show result] ************************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_team_profile.yml:14 Wednesday 03 August 2022 15:52:51 +0000 (0:00:00.526) 0:00:13.633 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b3b5afee-d762-48cd-86d8-fba078296ebd\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b3b5afee-d762-48cd-86d8-fba078296ebd" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 15:52:51 +0000 (0:00:00.050) 0:00:13.683 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:52:51 +0000 (0:00:00.080) 0:00:13.764 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml for /cache/rhel-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 15:52:51 +0000 (0:00:00.065) 0:00:13.829 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 15:52:51 +0000 (0:00:00.130) 0:00:13.959 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659541969.6267784, "block_size": 4096, "blocks": 8, "ctime": 1659541969.6257784, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17574583, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659541969.6257784, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-team0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 213, "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/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.372) 0:00:14.332 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.051) 0:00:14.383 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep team0 | grep /etc", "delta": "0:00:00.021395", "end": "2022-08-03 11:52:51.548169", "rc": 0, "start": "2022-08-03 11:52:51.526774" } STDOUT: team0 /etc/sysconfig/network-scripts/ifcfg-team0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.409) 0:00:14.793 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-team0] ************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.053) 0:00:14.846 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-team0] *********************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.040) 0:00:14.887 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'team0' is present] ********************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.041) 0:00:14.928 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'team0' is present] *************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.052) 0:00:14.981 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.049) 0:00:15.031 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface team0] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:52:52 +0000 (0:00:00.062) 0:00:15.093 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659541969.6401803, "block_size": 4096, "blocks": 0, "ctime": 1659541969.6401803, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38935, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/team0", "lnk_target": "../../devices/virtual/net/team0", "mode": "0777", "mtime": 1659541969.6401803, "nlink": 1, "path": "/sys/class/net/team0", "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 team0 is present] ********************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 15:52:53 +0000 (0:00:00.382) 0:00:15.475 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 15:52:53 +0000 (0:00:00.133) 0:00:15.609 ****** TASK [Success in test 'Create a team interface without any port attached'] ***** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 15:52:53 +0000 (0:00:00.049) 0:00:15.658 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'Create a team interface without any port attached' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:52:53 +0000 (0:00:00.049) 0:00:15.707 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/cleanup_profile+device.yml for /cache/rhel-8.qcow2 => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 15:52:53 +0000 (0:00:00.071) 0:00:15.779 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete team0\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-team0\nrm -f /etc/sysconfig/network-scripts/ifcfg-team0\nip link del team0\n", "delta": "0:00:00.061886", "end": "2022-08-03 11:52:52.971166", "rc": 1, "start": "2022-08-03 11:52:52.909280" } STDOUT: Connection 'team0' (b3b5afee-d762-48cd-86d8-fba078296ebd) successfully deleted. STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=54 changed=3 unreachable=0 failed=0 skipped=17 rescued=0 ignored=2 Wednesday 03 August 2022 15:52:54 +0000 (0:00:00.463) 0:00:16.243 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.65s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.41s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpd6fsfezc/tests/tests_team_nm.yml:5 ------------------------------------ linux-system-roles.network : Configure networking connection profiles --- 0.82s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmpd6fsfezc/tests/playbooks/tests_team.yml:3 ----------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.78s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Enable EPEL 8 ----------------------------------------------------------- 0.77s /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:17 ------------------------------- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.54s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - linux-system-roles.network : Re-test connectivity ----------------------- 0.53s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpd6fsfezc/tests/_backup.yml:6 ------------------------------------------ Cleanup profile and device ---------------------------------------------- 0.46s /tmp/tmpd6fsfezc/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- Back up system files ---------------------------------------------------- 0.46s /tmp/tmpd6fsfezc/tests/_backup.yml:19 ----------------------------------------- Get NM profile info ----------------------------------------------------- 0.41s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- remove test interface if necessary -------------------------------------- 0.41s /tmp/tmpd6fsfezc/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Get stat for interface team0 -------------------------------------------- 0.38s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- stat profile file ------------------------------------------------------- 0.37s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:8 ----------------- Gather current interface info ------------------------------------------- 0.37s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- Get stat for interface team0 -------------------------------------------- 0.36s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- Create EPEL 8 ----------------------------------------------------------- 0.35s /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:4 -------------------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpd6fsfezc/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpd6fsfezc/tests/_restore.yml:4 Wednesday 03 August 2022 15:52:54 +0000 (0:00:00.049) 0:00:16.292 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006552", "end": "2022-08-03 11:52:53.449753", "rc": 0, "start": "2022-08-03 11:52:53.443201" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=55 changed=4 unreachable=0 failed=0 skipped=17 rescued=0 ignored=2 Wednesday 03 August 2022 15:52:54 +0000 (0:00:00.423) 0:00:16.716 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.65s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.41s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpd6fsfezc/tests/tests_team_nm.yml:5 ------------------------------------ linux-system-roles.network : Configure networking connection profiles --- 0.82s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmpd6fsfezc/tests/playbooks/tests_team.yml:3 ----------------------------- linux-system-roles.network : Enable and start NetworkManager ------------ 0.78s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Enable EPEL 8 ----------------------------------------------------------- 0.77s /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:17 ------------------------------- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.54s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - linux-system-roles.network : Re-test connectivity ----------------------- 0.53s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpd6fsfezc/tests/_backup.yml:6 ------------------------------------------ Cleanup profile and device ---------------------------------------------- 0.46s /tmp/tmpd6fsfezc/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- Back up system files ---------------------------------------------------- 0.46s /tmp/tmpd6fsfezc/tests/_backup.yml:19 ----------------------------------------- Restore system files ---------------------------------------------------- 0.42s /tmp/tmpd6fsfezc/tests/_restore.yml:4 ----------------------------------------- Get NM profile info ----------------------------------------------------- 0.41s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- remove test interface if necessary -------------------------------------- 0.41s /tmp/tmpd6fsfezc/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Get stat for interface team0 -------------------------------------------- 0.38s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- stat profile file ------------------------------------------------------- 0.37s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:8 ----------------- Gather current interface info ------------------------------------------- 0.37s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- Get stat for interface team0 -------------------------------------------- 0.36s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpcwsggv7g 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 03 August 2022 16:29:21 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:29:23 +0000 (0:00:01.290) 0:00:01.308 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpzotb0bdj/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpzotb0bdj/tests/network/_backup.yml:6 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.014) 0:00:01.322 ****** ok: [/cache/rhel-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659544161.2405844, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544160.2395844, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "3731249178", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpzotb0bdj/tests/network/_backup.yml:13 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.479) 0:00:01.802 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 752168, 'dev': 64515, 'nlink': 1, 'atime': 1659544161.2405844, 'mtime': 1659542132.0, 'ctime': 1659544160.2395844, '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': '3731249178', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659544161.2405844, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544160.2395844, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "3731249178", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/_backup.yml:19 Wednesday 03 August 2022 16:29:23 +0000 (0:00:00.033) 0:00:01.836 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003942", "end": "2022-08-03 12:29:23.119533", "rc": 0, "start": "2022-08-03 12:29:23.115591" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:29:24 +0000 (0:00:00.447) 0:00:02.283 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Get stats of system files ----------------------------------------------- 0.48s /tmp/tmpzotb0bdj/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.45s /tmp/tmpzotb0bdj/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmpzotb0bdj/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_team_nm.yml **************************************************** 2 plays in /tmp/tmpzotb0bdj/tests/network/tests_team_nm.yml PLAY [Run playbook 'playbooks/tests_team.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/tests_team_nm.yml:5 Wednesday 03 August 2022 16:29:24 +0000 (0:00:00.011) 0:00:02.294 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tests_team_nm.yml:8 Wednesday 03 August 2022 16:29:25 +0000 (0:00:01.024) 0:00:03.319 ****** included: /tmp/tmpzotb0bdj/tests/network/tasks/el_repo_setup.yml for /cache/rhel-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.025) 0:00:03.344 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.018) 0:00:03.363 ****** included: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml for /cache/rhel-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.025) 0:00:03.388 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.349) 0:00:03.738 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:29:25 +0000 (0:00:00.020) 0:00:03.759 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.427613", "end": "2022-08-03 12:29:25.377191", "rc": 0, "start": "2022-08-03 12:29:24.949578" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:29:26 +0000 (0:00:00.783) 0:00:04.542 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/tests_team_nm.yml:9 Wednesday 03 August 2022 16:29:26 +0000 (0:00:00.019) 0:00:04.562 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_team.yml:3 Wednesday 03 August 2022 16:29:26 +0000 (0:00:00.042) 0:00:04.604 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_team.yml:10 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.806) 0:00:05.410 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: this is: playbooks/tests_team.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_team.yml:17 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.031) 0:00:05.442 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: Create a team interface without any port attached] ***************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.035) 0:00:05.477 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## Create a team interface without any port attached ########## TASK [Show item] *************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.033) 0:00:05.510 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a team interface without any port attached" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_team_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml", "tasks/assert_device_present.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [/cache/rhel-8.qcow2] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.146) 0:00:05.657 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.041) 0:00:05.698 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.031) 0:00:05.730 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003348", "end": "2022-08-03 12:29:26.961176", "rc": 0, "start": "2022-08-03 12:29:26.957828" } STDOUT: bonding_masters eth0 lo rpltstbr TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.394) 0:00:06.125 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "rpltstbr" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.031) 0:00:06.156 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'rpltstbr'] TASK [setup] ******************************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.029) 0:00:06.186 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/delete_interface.yml for /cache/rhel-8.qcow2 => (item=tasks/delete_interface.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 16:29:27 +0000 (0:00:00.041) 0:00:06.227 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "team0" ], "delta": "0:00:00.008157", "end": "2022-08-03 12:29:27.426576", "rc": 1, "start": "2022-08-03 12:29:27.418419" } STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.361) 0:00:06.589 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface team0] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.031) 0:00:06.621 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface team0 is absent] *********************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.375) 0:00:06.996 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.032) 0:00:07.029 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_team_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_team_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_team_profile.yml:3 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.037) 0:00:07.066 ****** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.050) 0:00:07.116 ****** included: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:29:28 +0000 (0:00:00.068) 0:00:07.185 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:29:29 +0000 (0:00:00.500) 0:00:07.686 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:29:31 +0000 (0:00:01.801) 0:00:09.488 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:29:32 +0000 (0:00:01.376) 0:00:10.865 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:29:32 +0000 (0:00:00.109) 0:00:10.974 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:29:32 +0000 (0:00:00.043) 0:00:11.018 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:29:32 +0000 (0:00:00.044) 0:00:11.062 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:29:32 +0000 (0:00:00.079) 0:00:11.141 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:29:32 +0000 (0:00:00.040) 0:00:11.182 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:29:32 +0000 (0:00:00.040) 0:00:11.223 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.056) 0:00:11.280 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.789) 0:00:12.069 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.058) 0:00:12.128 ****** skipping: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.037) 0:00:12.165 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:29:33 +0000 (0:00:00.037) 0:00:12.203 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'team0': add connection team0, 6669d44c-a5e2-40e3-aac1-eb0162ef293f TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.816) 0:00:13.020 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.041) 0:00:13.061 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 6669d44c-a5e2-40e3-aac1-eb0162ef293f" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.046) 0:00:13.108 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 6669d44c-a5e2-40e3-aac1-eb0162ef293f\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 6669d44c-a5e2-40e3-aac1-eb0162ef293f" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.048) 0:00:13.157 ****** skipping: [/cache/rhel-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:29:34 +0000 (0:00:00.039) 0:00:13.196 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [Show result] ************************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_team_profile.yml:14 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.533) 0:00:13.730 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 6669d44c-a5e2-40e3-aac1-eb0162ef293f\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 6669d44c-a5e2-40e3-aac1-eb0162ef293f" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.051) 0:00:13.782 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.079) 0:00:13.862 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/rhel-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.065) 0:00:13.927 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:29:35 +0000 (0:00:00.047) 0:00:13.975 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659544173.8585844, "block_size": 4096, "blocks": 8, "ctime": 1659544173.7775843, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17604259, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659544173.7775843, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-team0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 213, "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/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.433) 0:00:14.408 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.053) 0:00:14.461 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep team0 | grep /etc", "delta": "0:00:00.020095", "end": "2022-08-03 12:29:35.672628", "rc": 0, "start": "2022-08-03 12:29:35.652533" } STDOUT: team0 /etc/sysconfig/network-scripts/ifcfg-team0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.391) 0:00:14.853 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-team0] ************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.049) 0:00:14.902 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-team0] *********************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.040) 0:00:14.942 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'team0' is present] ********************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.039) 0:00:14.982 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'team0' is present] *************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.048) 0:00:15.031 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.050) 0:00:15.081 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface team0] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:29:36 +0000 (0:00:00.061) 0:00:15.143 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659544173.7919712, "block_size": 4096, "blocks": 0, "ctime": 1659544173.7919712, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38929, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/team0", "lnk_target": "../../devices/virtual/net/team0", "mode": "0777", "mtime": 1659544173.7919712, "nlink": 1, "path": "/sys/class/net/team0", "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 team0 is present] ********************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:29:37 +0000 (0:00:00.379) 0:00:15.522 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 16:29:37 +0000 (0:00:00.142) 0:00:15.665 ****** TASK [Success in test 'Create a team interface without any port attached'] ***** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:29:37 +0000 (0:00:00.048) 0:00:15.713 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'Create a team interface without any port attached' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:29:37 +0000 (0:00:00.051) 0:00:15.764 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/cleanup_profile+device.yml for /cache/rhel-8.qcow2 => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 16:29:37 +0000 (0:00:00.078) 0:00:15.843 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete team0\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-team0\nrm -f /etc/sysconfig/network-scripts/ifcfg-team0\nip link del team0\n", "delta": "0:00:00.053080", "end": "2022-08-03 12:29:37.101656", "rc": 1, "start": "2022-08-03 12:29:37.048576" } STDOUT: Connection 'team0' (6669d44c-a5e2-40e3-aac1-eb0162ef293f) successfully deleted. STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=54 changed=3 unreachable=0 failed=0 skipped=17 rescued=0 ignored=2 Wednesday 03 August 2022 16:29:38 +0000 (0:00:00.474) 0:00:16.317 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.80s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which packages are installed --- 1.38s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpzotb0bdj/tests/network/tests_team_nm.yml:5 ---------------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.82s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmpzotb0bdj/tests/network/playbooks/tests_team.yml:3 --------------------- fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.79s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Enable EPEL 8 ----------------------------------------------------------- 0.78s /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:17 ----------------------- fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.53s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.50s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Get stats of system files ----------------------------------------------- 0.48s /tmp/tmpzotb0bdj/tests/network/_backup.yml:6 ---------------------------------- Cleanup profile and device ---------------------------------------------- 0.47s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Back up system files ---------------------------------------------------- 0.45s /tmp/tmpzotb0bdj/tests/network/_backup.yml:19 --------------------------------- stat profile file ------------------------------------------------------- 0.43s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:8 --------- Gather current interface info ------------------------------------------- 0.39s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Get NM profile info ----------------------------------------------------- 0.39s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 -------- Get stat for interface team0 -------------------------------------------- 0.38s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- Get stat for interface team0 -------------------------------------------- 0.38s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- remove test interface if necessary -------------------------------------- 0.36s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/delete_interface.yml:3 --------- Create EPEL 8 ----------------------------------------------------------- 0.35s /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:4 ------------------------ PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpzotb0bdj/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/_restore.yml:4 Wednesday 03 August 2022 16:29:38 +0000 (0:00:00.049) 0:00:16.367 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006569", "end": "2022-08-03 12:29:37.587606", "rc": 0, "start": "2022-08-03 12:29:37.581037" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=55 changed=4 unreachable=0 failed=0 skipped=17 rescued=0 ignored=2 Wednesday 03 August 2022 16:29:38 +0000 (0:00:00.424) 0:00:16.792 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.80s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which packages are installed --- 1.38s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 set up internal repositories -------------------------------------------- 1.29s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpzotb0bdj/tests/network/tests_team_nm.yml:5 ---------------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.82s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmpzotb0bdj/tests/network/playbooks/tests_team.yml:3 --------------------- fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.79s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Enable EPEL 8 ----------------------------------------------------------- 0.78s /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:17 ----------------------- fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.53s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.50s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Get stats of system files ----------------------------------------------- 0.48s /tmp/tmpzotb0bdj/tests/network/_backup.yml:6 ---------------------------------- Cleanup profile and device ---------------------------------------------- 0.47s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Back up system files ---------------------------------------------------- 0.45s /tmp/tmpzotb0bdj/tests/network/_backup.yml:19 --------------------------------- stat profile file ------------------------------------------------------- 0.43s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:8 --------- Restore system files ---------------------------------------------------- 0.42s /tmp/tmpzotb0bdj/tests/network/_restore.yml:4 --------------------------------- Gather current interface info ------------------------------------------- 0.39s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Get NM profile info ----------------------------------------------------- 0.39s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 -------- Get stat for interface team0 -------------------------------------------- 0.38s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- Get stat for interface team0 -------------------------------------------- 0.38s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- remove test interface if necessary -------------------------------------- 0.36s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/delete_interface.yml:3 ---------