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:47:59 +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:48:00 +0000 (0:00:01.311) 0:00:01.329 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.31s /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:48:00 +0000 (0:00:00.015) 0:00:01.345 ****** ok: [/cache/rhel-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659541678.4007783, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659541677.3987784, "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": "98781531", "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:48:00 +0000 (0:00:00.485) 0:00:01.830 ****** [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': 1659541678.4007783, 'mtime': 1659539931.0, 'ctime': 1659541677.3987784, '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': '98781531', '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": 1659541678.4007783, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659541677.3987784, "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": "98781531", "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:48:00 +0000 (0:00:00.035) 0:00:01.866 ****** 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.004691", "end": "2022-08-03 11:48:00.363717", "rc": 0, "start": "2022-08-03 11:48:00.359026" } 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:48:01 +0000 (0:00:00.467) 0:00:02.333 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.31s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Get stats of system files ----------------------------------------------- 0.49s /tmp/tmpd6fsfezc/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.47s /tmp/tmpd6fsfezc/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpd6fsfezc/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmpd6fsfezc/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/tests_states_initscripts.yml:4 Wednesday 03 August 2022 15:48:01 +0000 (0:00:00.015) 0:00:02.349 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tests_states_initscripts.yml:7 Wednesday 03 August 2022 15:48:02 +0000 (0:00:01.040) 0:00:03.390 ****** 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:48:02 +0000 (0:00:00.024) 0:00:03.414 ****** 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:48:02 +0000 (0:00:00.018) 0:00:03.433 ****** 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:48:02 +0000 (0:00:00.025) 0:00:03.458 ****** 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:48:02 +0000 (0:00:00.351) 0:00:03.810 ****** 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:48:02 +0000 (0:00:00.020) 0:00:03.831 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.408492", "end": "2022-08-03 11:48:02.639526", "rc": 0, "start": "2022-08-03 11:48:02.231034" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:48:03 +0000 (0:00:00.777) 0:00:04.608 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpd6fsfezc/tests/tests_states_initscripts.yml:8 Wednesday 03 August 2022 15:48:03 +0000 (0:00:00.021) 0:00:04.629 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:3 Wednesday 03 August 2022 15:48:03 +0000 (0:00:00.045) 0:00:04.675 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:10 Wednesday 03 August 2022 15:48:04 +0000 (0:00:00.795) 0:00:05.470 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:18 Wednesday 03 August 2022 15:48:04 +0000 (0:00:00.042) 0:00:05.513 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can create a profile] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:48:04 +0000 (0:00:00.053) 0:00:05.567 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:48:04 +0000 (0:00:00.046) 0:00:05.614 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } 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_bridge_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_present.yml", "when": false } ] } 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:48:04 +0000 (0:00:00.151) 0:00:05.766 ****** 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:48:04 +0000 (0:00:00.044) 0:00:05.811 ****** 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:48:04 +0000 (0:00:00.040) 0:00:05.851 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003038", "end": "2022-08-03 11:48:04.281505", "rc": 0, "start": "2022-08-03 11:48:04.278467" } 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:48:05 +0000 (0:00:00.394) 0:00:06.245 ****** 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:48:05 +0000 (0:00:00.045) 0:00:06.290 ****** 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:48:05 +0000 (0:00:00.044) 0:00:06.335 ****** 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:48:05 +0000 (0:00:00.052) 0:00:06.387 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.007408", "end": "2022-08-03 11:48:04.828302", "rc": 1, "start": "2022-08-03 11:48:04.820894" } STDERR: Cannot find device "statebr" 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:48:05 +0000 (0:00:00.403) 0:00:06.790 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:48:05 +0000 (0:00:00.044) 0:00:06.835 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:48:06 +0000 (0:00:00.357) 0:00:07.193 ****** 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:48:06 +0000 (0:00:00.044) 0:00:07.237 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 15:48:06 +0000 (0:00:00.049) 0:00:07.286 ****** 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:48:06 +0000 (0:00:00.081) 0:00:07.368 ****** 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:48:06 +0000 (0:00:00.047) 0:00:07.415 ****** 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:48:07 +0000 (0:00:00.495) 0:00:07.911 ****** 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:48:08 +0000 (0:00:01.657) 0:00:09.568 ****** 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:48:10 +0000 (0:00:01.431) 0:00:11.000 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:48:10 +0000 (0:00:00.116) 0:00:11.117 ****** 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:48:10 +0000 (0:00:00.053) 0:00:11.170 ****** 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:48:10 +0000 (0:00:00.051) 0:00:11.222 ****** 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:48:10 +0000 (0:00:00.077) 0:00:11.299 ****** 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:48:10 +0000 (0:00:00.052) 0:00:11.352 ****** 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:48:10 +0000 (0:00:00.053) 0:00:11.405 ****** 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:48:10 +0000 (0:00:00.059) 0:00:11.465 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:48:10 +0000 (0:00:00.052) 0:00:11.517 ****** 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:48:10 +0000 (0:00:00.045) 0:00:11.562 ****** 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 : 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:48:11 +0000 (0:00:00.789) 0:00:12.352 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpeh4n9x0x" } 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:48:11 +0000 (0:00:00.398) 0:00:12.751 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:48:12 +0000 (0:00:00.720) 0:00:13.472 ****** 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:48:12 +0000 (0:00:00.053) 0:00:13.525 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:48:12 +0000 (0:00:00.058) 0:00:13.584 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:48:12 +0000 (0:00:00.058) 0:00:13.643 ****** 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:48:12 +0000 (0:00:00.051) 0:00:13.694 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 15:48:13 +0000 (0:00:00.543) 0:00:14.237 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 15:48:13 +0000 (0:00:00.061) 0:00:14.299 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:48:13 +0000 (0:00:00.078) 0:00:14.377 ****** 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:48:13 +0000 (0:00:00.111) 0:00:14.489 ****** 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:48:13 +0000 (0:00:00.061) 0:00:14.551 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659541691.4897783, "block_size": 4096, "blocks": 8, "ctime": 1659541691.4897783, "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": 1659541691.4897783, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 105, "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:48:14 +0000 (0:00:00.387) 0:00:14.938 ****** 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:48:14 +0000 (0:00:00.061) 0:00:14.999 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.029679", "end": "2022-08-03 11:48:13.450139", "rc": 1, "start": "2022-08-03 11:48:13.420460" } 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/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:48:14 +0000 (0:00:00.435) 0:00:15.435 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:48:14 +0000 (0:00:00.054) 0:00:15.490 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002836", "end": "2022-08-03 11:48:13.910698", "rc": 0, "start": "2022-08-03 11:48:13.907862" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:48:14 +0000 (0:00:00.404) 0:00:15.894 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'statebr' is present] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:48:15 +0000 (0:00:00.066) 0:00:15.961 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:48:15 +0000 (0:00:00.061) 0:00:16.023 ****** 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:48:15 +0000 (0:00:00.066) 0:00:16.089 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} skipping: [/cache/rhel-8.qcow2] => (item={'what': 'tasks/assert_device_present.yml', 'when': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "what": "tasks/assert_device_present.yml", "when": false }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can create a profile'] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 15:48:15 +0000 (0:00:00.091) 0:00:16.180 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:48:15 +0000 (0:00:00.061) 0:00:16.242 ****** 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:48:15 +0000 (0:00:00.081) 0:00:16.324 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.036271", "end": "2022-08-03 11:48:14.770965", "rc": 1, "start": "2022-08-03 11:48:14.734694" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:39 Wednesday 03 August 2022 15:48:15 +0000 (0:00:00.429) 0:00:16.754 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can create a profile without autoconnect] ************************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:48:15 +0000 (0:00:00.074) 0:00:16.829 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:48:15 +0000 (0:00:00.062) 0:00:16.891 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile without autoconnect" } 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_bridge_profile_no_autoconnect.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_absent.yml", "tasks/assert_profile_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:48:16 +0000 (0:00:00.175) 0:00:17.067 ****** 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:48:16 +0000 (0:00:00.082) 0:00:17.149 ****** 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:48:16 +0000 (0:00:00.073) 0:00:17.223 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004020", "end": "2022-08-03 11:48:15.646701", "rc": 0, "start": "2022-08-03 11:48:15.642681" } 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:48:16 +0000 (0:00:00.403) 0:00:17.627 ****** 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:48:16 +0000 (0:00:00.060) 0:00:17.687 ****** 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:48:16 +0000 (0:00:00.060) 0:00:17.748 ****** 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:48:16 +0000 (0:00:00.080) 0:00:17.829 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.005547", "end": "2022-08-03 11:48:16.244575", "rc": 1, "start": "2022-08-03 11:48:16.239028" } STDERR: Cannot find device "statebr" 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:48:17 +0000 (0:00:00.396) 0:00:18.226 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:48:17 +0000 (0:00:00.076) 0:00:18.302 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:48:17 +0000 (0:00:00.392) 0:00:18.694 ****** 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:48:17 +0000 (0:00:00.062) 0:00:18.757 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile_no_autoconnect.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Wednesday 03 August 2022 15:48:17 +0000 (0:00:00.078) 0:00:18.836 ****** 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:48:18 +0000 (0:00:00.118) 0:00:18.954 ****** 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:48:18 +0000 (0:00:00.080) 0:00:19.035 ****** 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:48:18 +0000 (0:00:00.537) 0:00:19.572 ****** 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:48:20 +0000 (0:00:01.616) 0:00:21.189 ****** 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:48:21 +0000 (0:00:01.226) 0:00:22.415 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:48:21 +0000 (0:00:00.062) 0:00:22.478 ****** 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:48:21 +0000 (0:00:00.058) 0:00:22.536 ****** 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:48:21 +0000 (0:00:00.059) 0:00:22.596 ****** 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:48:21 +0000 (0:00:00.080) 0:00:22.677 ****** 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:48:21 +0000 (0:00:00.055) 0:00:22.733 ****** 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:48:21 +0000 (0:00:00.060) 0:00:22.794 ****** 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:48:21 +0000 (0:00:00.058) 0:00:22.852 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:48:22 +0000 (0:00:00.101) 0:00:22.954 ****** 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:48:22 +0000 (0:00:00.049) 0:00:23.003 ****** 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 : 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:48:22 +0000 (0:00:00.563) 0:00:23.567 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmp3_3ot4vv" } 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:48:23 +0000 (0:00:00.423) 0:00:23.990 ****** 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": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:48:23 +0000 (0:00:00.518) 0:00:24.509 ****** 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:48:23 +0000 (0:00:00.053) 0:00:24.562 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:48:23 +0000 (0:00:00.062) 0:00:24.624 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:48:23 +0000 (0:00:00.061) 0:00:24.686 ****** 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:48:23 +0000 (0:00:00.054) 0:00:24.740 ****** 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_bridge_profile_no_autoconnect.yml:15 Wednesday 03 August 2022 15:48:24 +0000 (0:00:00.451) 0:00:25.191 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 15:48:24 +0000 (0:00:00.059) 0:00:25.251 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_absent.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:48:24 +0000 (0:00:00.085) 0:00:25.336 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:48:24 +0000 (0:00:00.075) 0:00:25.411 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:48:24 +0000 (0:00:00.388) 0:00:25.800 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:48:24 +0000 (0:00:00.062) 0:00:25.862 ****** 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:48:25 +0000 (0:00:00.078) 0:00:25.941 ****** 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:48:25 +0000 (0:00:00.060) 0:00:26.001 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659541702.5267782, "block_size": 4096, "blocks": 8, "ctime": 1659541702.5267782, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17605145, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659541702.5267782, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 104, "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:48:25 +0000 (0:00:00.398) 0:00:26.399 ****** 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:48:25 +0000 (0:00:00.071) 0:00:26.471 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.018599", "end": "2022-08-03 11:48:24.911553", "rc": 1, "start": "2022-08-03 11:48:24.892954" } 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/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:48:25 +0000 (0:00:00.422) 0:00:26.894 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:48:26 +0000 (0:00:00.054) 0:00:26.948 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003195", "end": "2022-08-03 11:48:25.365911", "rc": 0, "start": "2022-08-03 11:48:25.362716" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:48:26 +0000 (0:00:00.402) 0:00:27.351 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'statebr' is present] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:48:26 +0000 (0:00:00.067) 0:00:27.419 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:48:26 +0000 (0:00:00.064) 0:00:27.483 ****** 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:48:26 +0000 (0:00:00.064) 0:00:27.547 ****** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 15:48:26 +0000 (0:00:00.048) 0:00:27.596 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:48:26 +0000 (0:00:00.061) 0:00:27.657 ****** 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:48:26 +0000 (0:00:00.081) 0:00:27.738 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.039694", "end": "2022-08-03 11:48:26.238208", "rc": 1, "start": "2022-08-03 11:48:26.198514" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:57 Wednesday 03 August 2022 15:48:27 +0000 (0:00:00.478) 0:00:28.216 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can activate an existing profile] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:48:27 +0000 (0:00:00.073) 0:00:28.290 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:48:27 +0000 (0:00:00.054) 0:00:28.345 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can activate an existing profile" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/activate_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_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:48:27 +0000 (0:00:00.123) 0:00:28.468 ****** 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:48:27 +0000 (0:00:00.074) 0:00:28.543 ****** 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:48:27 +0000 (0:00:00.070) 0:00:28.614 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003485", "end": "2022-08-03 11:48:27.033705", "rc": 0, "start": "2022-08-03 11:48:27.030220" } 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:48:28 +0000 (0:00:00.401) 0:00:29.015 ****** 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:48:28 +0000 (0:00:00.058) 0:00:29.074 ****** 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:48:28 +0000 (0:00:00.102) 0:00:29.176 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 15:48:28 +0000 (0:00:00.110) 0:00:29.287 ****** 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:48:28 +0000 (0:00:00.075) 0:00:29.363 ****** 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:48:28 +0000 (0:00:00.075) 0:00:29.439 ****** 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:48:29 +0000 (0:00:00.553) 0:00:29.992 ****** 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:48:30 +0000 (0:00:01.602) 0:00:31.594 ****** 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:48:31 +0000 (0:00:01.135) 0:00:32.730 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:48:31 +0000 (0:00:00.059) 0:00:32.789 ****** 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:48:31 +0000 (0:00:00.054) 0:00:32.843 ****** 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:48:31 +0000 (0:00:00.053) 0:00:32.897 ****** 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:48:32 +0000 (0:00:00.079) 0:00:32.976 ****** 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:48:32 +0000 (0:00:00.053) 0:00:33.030 ****** 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:48:32 +0000 (0:00:00.052) 0:00:33.083 ****** 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:48:32 +0000 (0:00:00.092) 0:00:33.176 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:48:32 +0000 (0:00:00.053) 0:00:33.229 ****** 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:48:32 +0000 (0:00:00.046) 0:00:33.276 ****** 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 : 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:48:32 +0000 (0:00:00.539) 0:00:33.815 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpocr3m1ml" } 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:48:33 +0000 (0:00:00.403) 0:00:34.218 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:48:33 +0000 (0:00:00.496) 0:00:34.714 ****** 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:48:33 +0000 (0:00:00.052) 0:00:34.767 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:48:33 +0000 (0:00:00.059) 0:00:34.827 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:48:33 +0000 (0:00:00.062) 0:00:34.889 ****** 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:48:34 +0000 (0:00:00.086) 0:00:34.975 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 15:48:34 +0000 (0:00:00.409) 0:00:35.384 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [test] ******************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 15:48:34 +0000 (0:00:00.063) 0:00:35.448 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 15:48:34 +0000 (0:00:00.077) 0:00:35.526 ****** 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:48:34 +0000 (0:00:00.080) 0:00:35.607 ****** 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:48:34 +0000 (0:00:00.080) 0:00:35.688 ****** 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:48:35 +0000 (0:00:00.536) 0:00:36.224 ****** 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:48:36 +0000 (0:00:01.618) 0:00:37.842 ****** 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:48:38 +0000 (0:00:01.170) 0:00:39.012 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:48:38 +0000 (0:00:00.132) 0:00:39.144 ****** 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:48:38 +0000 (0:00:00.054) 0:00:39.199 ****** 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:48:38 +0000 (0:00:00.057) 0:00:39.257 ****** 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:48:38 +0000 (0:00:00.077) 0:00:39.334 ****** 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:48:38 +0000 (0:00:00.054) 0:00:39.388 ****** 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:48:38 +0000 (0:00:00.051) 0:00:39.440 ****** 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:48:38 +0000 (0:00:00.054) 0:00:39.495 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:48:38 +0000 (0:00:00.052) 0:00:39.547 ****** 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:48:38 +0000 (0:00:00.049) 0:00:39.596 ****** 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 : 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:48:39 +0000 (0:00:00.550) 0:00:40.147 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmprn29_tbc" } 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:48:39 +0000 (0:00:00.402) 0:00:40.550 ****** 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": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:48:40 +0000 (0:00:00.735) 0:00:41.285 ****** 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:48:40 +0000 (0:00:00.054) 0:00:41.339 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:48:40 +0000 (0:00:00.062) 0:00:41.402 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:48:40 +0000 (0:00:00.060) 0:00:41.462 ****** 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:48:40 +0000 (0:00:00.062) 0:00:41.524 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 15:48:41 +0000 (0:00:00.418) 0:00:41.942 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_present.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 15:48:41 +0000 (0:00:00.090) 0:00:42.033 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:48:41 +0000 (0:00:00.074) 0:00:42.107 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659541719.246659, "block_size": 4096, "blocks": 0, "ctime": 1659541719.246659, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37586, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1659541719.246659, "nlink": 1, "path": "/sys/class/net/statebr", "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 statebr is present] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 15:48:41 +0000 (0:00:00.444) 0:00:42.551 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:48:41 +0000 (0:00:00.064) 0:00:42.616 ****** 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:48:41 +0000 (0:00:00.075) 0:00:42.692 ****** 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:48:41 +0000 (0:00:00.057) 0:00:42.749 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659541719.1057782, "block_size": 4096, "blocks": 8, "ctime": 1659541712.7327783, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17605146, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659541712.7327783, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 105, "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:48:42 +0000 (0:00:00.403) 0:00:43.153 ****** 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:48:42 +0000 (0:00:00.061) 0:00:43.214 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019161", "end": "2022-08-03 11:48:41.621825", "rc": 1, "start": "2022-08-03 11:48:41.602664" } 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/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:48:42 +0000 (0:00:00.384) 0:00:43.599 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:48:42 +0000 (0:00:00.048) 0:00:43.647 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002505", "end": "2022-08-03 11:48:42.041486", "rc": 0, "start": "2022-08-03 11:48:42.038981" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:48:43 +0000 (0:00:00.378) 0:00:44.025 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'statebr' is present] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:48:43 +0000 (0:00:00.065) 0:00:44.091 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:48:43 +0000 (0:00:00.153) 0:00:44.245 ****** 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:48:43 +0000 (0:00:00.066) 0:00:44.311 ****** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 15:48:43 +0000 (0:00:00.047) 0:00:44.359 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:48:43 +0000 (0:00:00.060) 0:00:44.419 ****** 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:48:43 +0000 (0:00:00.083) 0:00:44.503 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.059193", "end": "2022-08-03 11:48:42.972457", "rc": 0, "start": "2022-08-03 11:48:42.913264" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:73 Wednesday 03 August 2022 15:48:44 +0000 (0:00:00.452) 0:00:44.955 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can remove an existing profile without taking it down] *********** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:48:44 +0000 (0:00:00.076) 0:00:45.032 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:48:44 +0000 (0:00:00.058) 0:00:45.091 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can remove an existing profile without taking it down" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_absent.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:48:44 +0000 (0:00:00.163) 0:00:45.254 ****** 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:48:44 +0000 (0:00:00.074) 0:00:45.329 ****** 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:48:44 +0000 (0:00:00.107) 0:00:45.437 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004594", "end": "2022-08-03 11:48:43.852850", "rc": 0, "start": "2022-08-03 11:48:43.848256" } 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:48:44 +0000 (0:00:00.401) 0:00:45.838 ****** 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:48:44 +0000 (0:00:00.060) 0:00:45.899 ****** 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:48:45 +0000 (0:00:00.067) 0:00:45.966 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 15:48:45 +0000 (0:00:00.081) 0:00:46.047 ****** 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:48:45 +0000 (0:00:00.079) 0:00:46.127 ****** 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:48:45 +0000 (0:00:00.084) 0:00:46.211 ****** 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:48:45 +0000 (0:00:00.547) 0:00:46.759 ****** 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:48:47 +0000 (0:00:01.647) 0:00:48.407 ****** 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:48:48 +0000 (0:00:01.189) 0:00:49.596 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:48:48 +0000 (0:00:00.096) 0:00:49.693 ****** 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:48:48 +0000 (0:00:00.087) 0:00:49.780 ****** 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:48:48 +0000 (0:00:00.052) 0:00:49.833 ****** 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:48:49 +0000 (0:00:00.078) 0:00:49.911 ****** 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:48:49 +0000 (0:00:00.054) 0:00:49.966 ****** 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:48:49 +0000 (0:00:00.052) 0:00:50.019 ****** 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:48:49 +0000 (0:00:00.057) 0:00:50.076 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:48:49 +0000 (0:00:00.053) 0:00:50.129 ****** 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:48:49 +0000 (0:00:00.050) 0:00:50.180 ****** 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 : 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:48:49 +0000 (0:00:00.553) 0:00:50.733 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmphzhviqg8" } 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:48:50 +0000 (0:00:00.403) 0:00:51.137 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:48:50 +0000 (0:00:00.583) 0:00:51.720 ****** 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:48:50 +0000 (0:00:00.055) 0:00:51.775 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:48:50 +0000 (0:00:00.056) 0:00:51.832 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:48:50 +0000 (0:00:00.058) 0:00:51.890 ****** 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:48:51 +0000 (0:00:00.049) 0:00:51.939 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 15:48:51 +0000 (0:00:00.393) 0:00:52.333 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 15:48:51 +0000 (0:00:00.058) 0:00:52.392 ****** 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:48:51 +0000 (0:00:00.069) 0:00:52.462 ****** 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:48:51 +0000 (0:00:00.076) 0:00:52.538 ****** 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:48:52 +0000 (0:00:00.577) 0:00:53.115 ****** 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:48:53 +0000 (0:00:01.603) 0:00:54.718 ****** 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:48:54 +0000 (0:00:01.138) 0:00:55.857 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:48:55 +0000 (0:00:00.093) 0:00:55.950 ****** 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:48:55 +0000 (0:00:00.058) 0:00:56.009 ****** 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:48:55 +0000 (0:00:00.060) 0:00:56.069 ****** 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:48:55 +0000 (0:00:00.079) 0:00:56.148 ****** 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:48:55 +0000 (0:00:00.057) 0:00:56.206 ****** 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:48:55 +0000 (0:00:00.053) 0:00:56.260 ****** 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:48:55 +0000 (0:00:00.059) 0:00:56.319 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:48:55 +0000 (0:00:00.058) 0:00:56.377 ****** 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:48:55 +0000 (0:00:00.050) 0:00:56.428 ****** 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 : 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:48:56 +0000 (0:00:00.562) 0:00:56.991 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpd8z3kdto" } 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:48:56 +0000 (0:00:00.401) 0:00:57.392 ****** 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": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:48:57 +0000 (0:00:00.754) 0:00:58.147 ****** 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:48:57 +0000 (0:00:00.054) 0:00:58.202 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:48:57 +0000 (0:00:00.060) 0:00:58.262 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:48:57 +0000 (0:00:00.061) 0:00:58.324 ****** 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:48:57 +0000 (0:00:00.053) 0:00:58.377 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [test] ******************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 15:48:57 +0000 (0:00:00.424) 0:00:58.802 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove_profile.yml:3 Wednesday 03 August 2022 15:48:57 +0000 (0:00:00.077) 0:00:58.879 ****** 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:48:58 +0000 (0:00:00.076) 0:00:58.956 ****** 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:48:58 +0000 (0:00:00.106) 0:00:59.062 ****** 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:48:58 +0000 (0:00:00.530) 0:00:59.593 ****** 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:49:00 +0000 (0:00:01.599) 0:01:01.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 : Print network provider] ********************* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:49:01 +0000 (0:00:01.178) 0:01:02.371 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:01 +0000 (0:00:00.068) 0:01:02.439 ****** 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:49:01 +0000 (0:00:00.058) 0:01:02.497 ****** 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:49:01 +0000 (0:00:00.057) 0:01:02.554 ****** 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:49:01 +0000 (0:00:00.078) 0:01:02.632 ****** 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:49:01 +0000 (0:00:00.057) 0:01:02.689 ****** 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:49:01 +0000 (0:00:00.055) 0:01:02.745 ****** 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:49:01 +0000 (0:00:00.058) 0:01:02.803 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:01 +0000 (0:00:00.054) 0:01:02.858 ****** 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:49:02 +0000 (0:00:00.052) 0:01:02.910 ****** 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 : 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:49:02 +0000 (0:00:00.572) 0:01:03.483 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmp5i1xcj3l" } 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:49:03 +0000 (0:00:00.462) 0:01:03.946 ****** 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": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' 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:49:03 +0000 (0:00:00.512) 0:01:04.459 ****** 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:49:03 +0000 (0:00:00.054) 0:01:04.513 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } 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:49:03 +0000 (0:00:00.061) 0:01:04.575 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } 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:49:03 +0000 (0:00:00.061) 0:01:04.637 ****** 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:49:03 +0000 (0:00:00.050) 0:01:04.687 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 15:49:04 +0000 (0:00:00.412) 0:01:05.100 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_present.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_absent.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 15:49:04 +0000 (0:00:00.083) 0:01:05.183 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:49:04 +0000 (0:00:00.073) 0:01:05.256 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659541736.1049755, "block_size": 4096, "blocks": 0, "ctime": 1659541736.1049755, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37717, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1659541736.1049755, "nlink": 1, "path": "/sys/class/net/statebr", "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 statebr is present] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 15:49:04 +0000 (0:00:00.427) 0:01:05.684 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 15:49:04 +0000 (0:00:00.064) 0:01:05.748 ****** 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:49:04 +0000 (0:00:00.078) 0:01:05.826 ****** 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:49:04 +0000 (0:00:00.062) 0:01:05.889 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": 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:49:05 +0000 (0:00:00.391) 0:01:06.280 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:49:05 +0000 (0:00:00.051) 0:01:06.332 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023891", "end": "2022-08-03 11:49:04.772312", "rc": 1, "start": "2022-08-03 11:49:04.748421" } 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/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:49:05 +0000 (0:00:00.429) 0:01:06.761 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:49:05 +0000 (0:00:00.054) 0:01:06.816 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:49:05 +0000 (0:00:00.050) 0:01:06.867 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 15:49:06 +0000 (0:00:00.049) 0:01:06.916 ****** 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:49:06 +0000 (0:00:00.136) 0:01:07.053 ****** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 15:49:06 +0000 (0:00:00.049) 0:01:07.102 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:49:06 +0000 (0:00:00.076) 0:01:07.179 ****** 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:49:06 +0000 (0:00:00.085) 0:01:07.264 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.060645", "end": "2022-08-03 11:49:05.737248", "rc": 0, "start": "2022-08-03 11:49:05.676603" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:91 Wednesday 03 August 2022 15:49:06 +0000 (0:00:00.459) 0:01:07.723 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can take a profile down that is absent] ************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:49:06 +0000 (0:00:00.078) 0:01:07.802 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:49:06 +0000 (0:00:00.063) 0:01:07.865 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can take a profile down that is absent" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_absent.yml", "when": false } ] } 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:49:07 +0000 (0:00:00.194) 0:01:08.059 ****** 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:49:07 +0000 (0:00:00.078) 0:01:08.137 ****** 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:49:07 +0000 (0:00:00.117) 0:01:08.254 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003234", "end": "2022-08-03 11:49:06.674742", "rc": 0, "start": "2022-08-03 11:49:06.671508" } 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:49:07 +0000 (0:00:00.405) 0:01:08.660 ****** 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:49:07 +0000 (0:00:00.062) 0:01:08.722 ****** 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:49:07 +0000 (0:00:00.059) 0:01:08.781 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 15:49:07 +0000 (0:00:00.087) 0:01:08.868 ****** 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:49:08 +0000 (0:00:00.077) 0:01:08.946 ****** 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:49:08 +0000 (0:00:00.082) 0:01:09.029 ****** 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:49:08 +0000 (0:00:00.540) 0:01:09.570 ****** 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:49:10 +0000 (0:00:01.629) 0:01:11.199 ****** 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:49:11 +0000 (0:00:01.184) 0:01:12.384 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:11 +0000 (0:00:00.096) 0:01:12.480 ****** 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:49:11 +0000 (0:00:00.083) 0:01:12.564 ****** 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:49:11 +0000 (0:00:00.053) 0:01:12.617 ****** 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:49:11 +0000 (0:00:00.075) 0:01:12.693 ****** 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:49:11 +0000 (0:00:00.057) 0:01:12.750 ****** 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:49:11 +0000 (0:00:00.053) 0:01:12.804 ****** 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:49:11 +0000 (0:00:00.056) 0:01:12.860 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:12 +0000 (0:00:00.053) 0:01:12.914 ****** 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:49:12 +0000 (0:00:00.051) 0:01:12.965 ****** 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 : 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:49:12 +0000 (0:00:00.540) 0:01:13.505 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpfzxpkhrh" } 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:49:13 +0000 (0:00:00.405) 0:01:13.911 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:49:13 +0000 (0:00:00.546) 0:01:14.457 ****** 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:49:13 +0000 (0:00:00.053) 0:01:14.511 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:49:13 +0000 (0:00:00.062) 0:01:14.574 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:49:13 +0000 (0:00:00.062) 0:01:14.636 ****** 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:49:13 +0000 (0:00:00.056) 0:01:14.692 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 15:49:14 +0000 (0:00:00.414) 0:01:15.107 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 15:49:14 +0000 (0:00:00.064) 0:01:15.171 ****** 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:49:14 +0000 (0:00:00.078) 0:01:15.250 ****** 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:49:14 +0000 (0:00:00.082) 0:01:15.332 ****** 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:49:15 +0000 (0:00:00.578) 0:01:15.911 ****** 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:49:18 +0000 (0:00:03.654) 0:01:19.565 ****** 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:49:19 +0000 (0:00:01.225) 0:01:20.790 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:19 +0000 (0:00:00.061) 0:01:20.852 ****** 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:49:20 +0000 (0:00:00.058) 0:01:20.911 ****** 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:49:20 +0000 (0:00:00.050) 0:01:20.962 ****** 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:49:20 +0000 (0:00:00.075) 0:01:21.037 ****** 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:49:20 +0000 (0:00:00.053) 0:01:21.091 ****** 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:49:20 +0000 (0:00:00.052) 0:01:21.143 ****** 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:49:20 +0000 (0:00:00.056) 0:01:21.200 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:20 +0000 (0:00:00.051) 0:01:21.251 ****** 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:49:20 +0000 (0:00:00.050) 0:01:21.301 ****** 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 : 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:49:20 +0000 (0:00:00.543) 0:01:21.845 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpgg62ujmg" } 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:49:21 +0000 (0:00:00.412) 0:01:22.258 ****** 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": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:49:22 +0000 (0:00:00.714) 0:01:22.972 ****** 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:49:22 +0000 (0:00:00.052) 0:01:23.025 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:49:22 +0000 (0:00:00.059) 0:01:23.085 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:49:22 +0000 (0:00:00.063) 0:01:23.149 ****** 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:49:22 +0000 (0:00:00.050) 0:01:23.199 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove_profile.yml:3 Wednesday 03 August 2022 15:49:22 +0000 (0:00:00.413) 0:01:23.613 ****** 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:49:22 +0000 (0:00:00.078) 0:01:23.691 ****** 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:49:22 +0000 (0:00:00.082) 0:01:23.774 ****** 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:49:23 +0000 (0:00:00.579) 0:01:24.353 ****** 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:49:25 +0000 (0:00:01.600) 0:01:25.954 ****** 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:49:26 +0000 (0:00:01.185) 0:01:27.139 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:26 +0000 (0:00:00.062) 0:01:27.202 ****** 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:49:26 +0000 (0:00:00.052) 0:01:27.254 ****** 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:49:26 +0000 (0:00:00.052) 0:01:27.306 ****** 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:49:26 +0000 (0:00:00.080) 0:01:27.387 ****** 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:49:26 +0000 (0:00:00.053) 0:01:27.440 ****** 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:49:26 +0000 (0:00:00.052) 0:01:27.492 ****** 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:49:26 +0000 (0:00:00.058) 0:01:27.550 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:26 +0000 (0:00:00.052) 0:01:27.603 ****** 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:49:26 +0000 (0:00:00.051) 0:01:27.654 ****** 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 : 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:49:27 +0000 (0:00:00.549) 0:01:28.204 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmp8x6lbcoj" } 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:49:27 +0000 (0:00:00.419) 0:01:28.623 ****** 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": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' 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:49:28 +0000 (0:00:00.551) 0:01:29.175 ****** 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:49:28 +0000 (0:00:00.056) 0:01:29.232 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } 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:49:28 +0000 (0:00:00.063) 0:01:29.295 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } 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:49:28 +0000 (0:00:00.062) 0:01:29.358 ****** 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:49:28 +0000 (0:00:00.054) 0:01:29.413 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [test] ******************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 15:49:28 +0000 (0:00:00.408) 0:01:29.821 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove+down_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove+down_profile.yml:3 Wednesday 03 August 2022 15:49:28 +0000 (0:00:00.081) 0:01:29.902 ****** 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:49:29 +0000 (0:00:00.082) 0:01:29.985 ****** 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:49:29 +0000 (0:00:00.116) 0:01:30.102 ****** 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:49:29 +0000 (0:00:00.540) 0:01:30.643 ****** 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:49:31 +0000 (0:00:01.628) 0:01:32.272 ****** 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:49:32 +0000 (0:00:01.238) 0:01:33.511 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:32 +0000 (0:00:00.061) 0:01:33.572 ****** 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:49:32 +0000 (0:00:00.050) 0:01:33.623 ****** 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:49:32 +0000 (0:00:00.050) 0:01:33.673 ****** 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:49:32 +0000 (0:00:00.074) 0:01:33.748 ****** 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:49:32 +0000 (0:00:00.054) 0:01:33.803 ****** 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:49:32 +0000 (0:00:00.059) 0:01:33.862 ****** 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:49:33 +0000 (0:00:00.058) 0:01:33.920 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:33 +0000 (0:00:00.052) 0:01:33.972 ****** 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:49:33 +0000 (0:00:00.054) 0:01:34.026 ****** 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 : 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:49:33 +0000 (0:00:00.580) 0:01:34.606 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmps43qp0au" } 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:49:34 +0000 (0:00:00.383) 0:01:34.990 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network ok: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) 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:49:34 +0000 (0:00:00.544) 0:01:35.535 ****** 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:49:34 +0000 (0:00:00.052) 0:01:35.588 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } 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:49:34 +0000 (0:00:00.062) 0:01:35.650 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } 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:49:34 +0000 (0:00:00.063) 0:01:35.713 ****** 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:49:34 +0000 (0:00:00.052) 0:01:35.766 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 15:49:35 +0000 (0:00:00.402) 0:01:36.169 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_absent.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 15:49:35 +0000 (0:00:00.083) 0:01:36.253 ****** 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:49:35 +0000 (0:00:00.076) 0:01:36.329 ****** 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:49:35 +0000 (0:00:00.060) 0:01:36.390 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": 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:49:35 +0000 (0:00:00.447) 0:01:36.837 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:49:35 +0000 (0:00:00.065) 0:01:36.903 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.026412", "end": "2022-08-03 11:49:35.333716", "rc": 1, "start": "2022-08-03 11:49:35.307304" } 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/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:49:36 +0000 (0:00:00.416) 0:01:37.319 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:49:36 +0000 (0:00:00.054) 0:01:37.374 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:49:36 +0000 (0:00:00.053) 0:01:37.428 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 15:49:36 +0000 (0:00:00.053) 0:01:37.481 ****** 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:49:36 +0000 (0:00:00.063) 0:01:37.545 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} skipping: [/cache/rhel-8.qcow2] => (item={'what': 'tasks/assert_device_absent.yml', 'when': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "what": "tasks/assert_device_absent.yml", "when": false }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can take a profile down that is absent'] ************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 15:49:36 +0000 (0:00:00.055) 0:01:37.601 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:49:36 +0000 (0:00:00.062) 0:01:37.663 ****** 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:49:36 +0000 (0:00:00.082) 0:01:37.745 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.055038", "end": "2022-08-03 11:49:36.219862", "rc": 0, "start": "2022-08-03 11:49:36.164824" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_states.yml:111 Wednesday 03 August 2022 15:49:37 +0000 (0:00:00.510) 0:01:38.256 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I will not get an error when I try to remove an absent profile] **** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:49:37 +0000 (0:00:00.076) 0:01:38.332 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:49:37 +0000 (0:00:00.062) 0:01:38.395 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I will not get an error when I try to remove an absent profile" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove+down_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml", "tasks/get_NetworkManager_NVR.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_absent.yml", "when": false } ] } 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:49:37 +0000 (0:00:00.137) 0:01:38.532 ****** 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:49:37 +0000 (0:00:00.075) 0:01:38.608 ****** 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:49:37 +0000 (0:00:00.074) 0:01:38.682 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002901", "end": "2022-08-03 11:49:37.095096", "rc": 0, "start": "2022-08-03 11:49:37.092195" } 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:49:38 +0000 (0:00:00.398) 0:01:39.080 ****** 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:49:38 +0000 (0:00:00.060) 0:01:39.140 ****** 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:49:38 +0000 (0:00:00.062) 0:01:39.203 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove+down_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 15:49:38 +0000 (0:00:00.089) 0:01:39.293 ****** 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:49:38 +0000 (0:00:00.121) 0:01:39.415 ****** 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:49:38 +0000 (0:00:00.082) 0:01:39.498 ****** 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:49:39 +0000 (0:00:00.539) 0:01:40.038 ****** 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:49:40 +0000 (0:00:01.621) 0:01:41.659 ****** 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:49:41 +0000 (0:00:01.183) 0:01:42.843 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:41 +0000 (0:00:00.062) 0:01:42.906 ****** 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:49:42 +0000 (0:00:00.053) 0:01:42.959 ****** 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:49:42 +0000 (0:00:00.055) 0:01:43.015 ****** 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:49:42 +0000 (0:00:00.078) 0:01:43.093 ****** 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:49:42 +0000 (0:00:00.055) 0:01:43.149 ****** 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:49:42 +0000 (0:00:00.054) 0:01:43.204 ****** 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:49:42 +0000 (0:00:00.054) 0:01:43.258 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:42 +0000 (0:00:00.094) 0:01:43.352 ****** 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:49:42 +0000 (0:00:00.050) 0:01:43.403 ****** 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 : 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:49:43 +0000 (0:00:00.557) 0:01:43.961 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpp05ra5pk" } 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:49:43 +0000 (0:00:00.410) 0:01:44.371 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:49:43 +0000 (0:00:00.507) 0:01:44.879 ****** 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:49:44 +0000 (0:00:00.054) 0:01:44.933 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:49:44 +0000 (0:00:00.063) 0:01:44.996 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:49:44 +0000 (0:00:00.057) 0:01:45.054 ****** 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:49:44 +0000 (0:00:00.054) 0:01:45.108 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 15:49:44 +0000 (0:00:00.462) 0:01:45.571 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 15:49:44 +0000 (0:00:00.066) 0:01:45.637 ****** 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:49:44 +0000 (0:00:00.076) 0:01:45.714 ****** 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:49:44 +0000 (0:00:00.081) 0:01:45.795 ****** 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:49:45 +0000 (0:00:00.531) 0:01:46.327 ****** 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:49:47 +0000 (0:00:01.613) 0:01:47.941 ****** 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:49:48 +0000 (0:00:01.130) 0:01:49.071 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:48 +0000 (0:00:00.062) 0:01:49.134 ****** 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:49:48 +0000 (0:00:00.054) 0:01:49.188 ****** 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:49:48 +0000 (0:00:00.051) 0:01:49.240 ****** 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:49:48 +0000 (0:00:00.078) 0:01:49.318 ****** 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:49:48 +0000 (0:00:00.112) 0:01:49.430 ****** 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:49:48 +0000 (0:00:00.053) 0:01:49.483 ****** 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:49:48 +0000 (0:00:00.057) 0:01:49.541 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:48 +0000 (0:00:00.052) 0:01:49.594 ****** 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:49:48 +0000 (0:00:00.051) 0:01:49.645 ****** 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 : 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:49:49 +0000 (0:00:00.571) 0:01:50.217 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpd6m3avrg" } 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:49:49 +0000 (0:00:00.416) 0:01:50.633 ****** 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": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:49:50 +0000 (0:00:00.710) 0:01:51.344 ****** 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:49:50 +0000 (0:00:00.085) 0:01:51.429 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:49:50 +0000 (0:00:00.062) 0:01:51.492 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:49:50 +0000 (0:00:00.061) 0:01:51.554 ****** 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:49:50 +0000 (0:00:00.052) 0:01:51.606 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove+down_profile.yml:3 Wednesday 03 August 2022 15:49:51 +0000 (0:00:00.422) 0:01:52.028 ****** 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:49:51 +0000 (0:00:00.076) 0:01:52.105 ****** 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:49:51 +0000 (0:00:00.077) 0:01:52.183 ****** 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:49:51 +0000 (0:00:00.537) 0:01:52.720 ****** 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:49:53 +0000 (0:00:01.647) 0:01:54.368 ****** 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:49:54 +0000 (0:00:01.172) 0:01:55.540 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:49:54 +0000 (0:00:00.063) 0:01:55.604 ****** 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:49:54 +0000 (0:00:00.055) 0:01:55.660 ****** 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:49:54 +0000 (0:00:00.101) 0:01:55.761 ****** 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:49:54 +0000 (0:00:00.086) 0:01:55.848 ****** 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:49:54 +0000 (0:00:00.054) 0:01:55.902 ****** 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:49:55 +0000 (0:00:00.056) 0:01:55.958 ****** 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:49:55 +0000 (0:00:00.060) 0:01:56.019 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:49:55 +0000 (0:00:00.056) 0:01:56.075 ****** 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:49:55 +0000 (0:00:00.051) 0:01:56.127 ****** 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 : 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:49:55 +0000 (0:00:00.577) 0:01:56.704 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmpvqrkzhp8" } 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:49:56 +0000 (0:00:00.398) 0:01:57.102 ****** 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": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' 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:49:56 +0000 (0:00:00.593) 0:01:57.696 ****** 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:49:56 +0000 (0:00:00.053) 0:01:57.750 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } 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:49:56 +0000 (0:00:00.062) 0:01:57.812 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } 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:49:56 +0000 (0:00:00.063) 0:01:57.876 ****** 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:49:57 +0000 (0:00:00.053) 0:01:57.929 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [test] ******************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 15:49:57 +0000 (0:00:00.398) 0:01:58.327 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove+down_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/remove+down_profile.yml:3 Wednesday 03 August 2022 15:49:57 +0000 (0:00:00.080) 0:01:58.408 ****** 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:49:57 +0000 (0:00:00.077) 0:01:58.486 ****** 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:49:57 +0000 (0:00:00.079) 0:01:58.565 ****** 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:49:58 +0000 (0:00:00.524) 0:01:59.089 ****** 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:49:59 +0000 (0:00:01.599) 0:02:00.688 ****** 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:50:00 +0000 (0:00:01.130) 0:02:01.819 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:50:01 +0000 (0:00:00.126) 0:02:01.946 ****** 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:50:01 +0000 (0:00:00.049) 0:02:01.995 ****** 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:50:01 +0000 (0:00:00.051) 0:02:02.047 ****** 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:50:01 +0000 (0:00:00.075) 0:02:02.123 ****** 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:50:01 +0000 (0:00:00.055) 0:02:02.178 ****** 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:50:01 +0000 (0:00:00.059) 0:02:02.238 ****** 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:50:01 +0000 (0:00:00.057) 0:02:02.295 ****** 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 : Enable and start wpa_supplicant] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:50:01 +0000 (0:00:00.054) 0:02:02.350 ****** 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:50:01 +0000 (0:00:00.050) 0:02:02.400 ****** 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 : 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:50:02 +0000 (0:00:00.555) 0:02:02.955 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-32574m2j1ur28/tmptqtll74t" } 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:50:02 +0000 (0:00:00.407) 0:02:03.363 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network ok: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) 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:50:03 +0000 (0:00:00.548) 0:02:03.911 ****** 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:50:03 +0000 (0:00:00.054) 0:02:03.966 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } 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:50:03 +0000 (0:00:00.065) 0:02:04.031 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } 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:50:03 +0000 (0:00:00.064) 0:02:04.096 ****** 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:50:03 +0000 (0:00:00.054) 0:02:04.150 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 15:50:03 +0000 (0:00:00.420) 0:02:04.571 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_absent.yml) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_NetworkManager_NVR.yml for /cache/rhel-8.qcow2 => (item=tasks/get_NetworkManager_NVR.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 15:50:03 +0000 (0:00:00.086) 0:02:04.658 ****** 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:50:03 +0000 (0:00:00.078) 0:02:04.736 ****** 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:50:03 +0000 (0:00:00.059) 0:02:04.796 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": 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:50:04 +0000 (0:00:00.456) 0:02:05.252 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:50:04 +0000 (0:00:00.053) 0:02:05.305 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023535", "end": "2022-08-03 11:50:03.739269", "rc": 1, "start": "2022-08-03 11:50:03.715734" } 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/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:50:04 +0000 (0:00:00.420) 0:02:05.726 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:50:04 +0000 (0:00:00.053) 0:02:05.779 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:50:04 +0000 (0:00:00.055) 0:02:05.834 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 15:50:04 +0000 (0:00:00.051) 0:02:05.886 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_NetworkManager_NVR.yml:4 Wednesday 03 August 2022 15:50:05 +0000 (0:00:00.063) 0:02:05.949 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.552437", "end": "2022-08-03 11:50:04.925720", "rc": 0, "start": "2022-08-03 11:50:04.373283" } STDOUT: NetworkManager-1.36.0-4.el8 TASK [Store NetworkManager version] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_NetworkManager_NVR.yml:10 Wednesday 03 August 2022 15:50:06 +0000 (0:00:00.965) 0:02:06.915 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "NetworkManager_NVR": "NetworkManager-1.36.0-4.el8" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Wednesday 03 August 2022 15:50:06 +0000 (0:00:00.059) 0:02:06.975 ****** ok: [/cache/rhel-8.qcow2] => { "NetworkManager_NVR": "NetworkManager-1.36.0-4.el8" } TASK [conditional asserts] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 15:50:06 +0000 (0:00:00.137) 0:02:07.112 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} skipping: [/cache/rhel-8.qcow2] => (item={'what': 'tasks/assert_device_absent.yml', 'when': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "what": "tasks/assert_device_absent.yml", "when": false }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 15:50:06 +0000 (0:00:00.055) 0:02:07.168 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I will not get an error when I try to remove an absent profile' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:50:06 +0000 (0:00:00.063) 0:02:07.231 ****** 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:50:06 +0000 (0:00:00.082) 0:02:07.314 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.050261", "end": "2022-08-03 11:50:05.770579", "rc": 0, "start": "2022-08-03 11:50:05.720318" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=340 changed=19 unreachable=0 failed=0 skipped=174 rescued=0 ignored=10 Wednesday 03 August 2022 15:50:06 +0000 (0:00:00.464) 0:02:07.779 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 3.65s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Enable network service --------------------- 2.98s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Configure networking connection profiles --- 2.92s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Configure networking connection profiles --- 2.85s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Enable network service --------------------- 2.23s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Re-test connectivity ----------------------- 2.22s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- linux-system-roles.network : Ensure initscripts network file dependency is present --- 2.02s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:107 ---- linux-system-roles.network : Enable network service --------------------- 1.71s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Configure networking connection profiles --- 1.69s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Re-test connectivity ----------------------- 1.68s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- linux-system-roles.network : Check which services are running ----------- 1.66s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 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 services are running ----------- 1.65s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Ensure initscripts network file dependency is present --- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:107 ---- linux-system-roles.network : Check which services are running ----------- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.61s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 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:50:06 +0000 (0:00:00.046) 0:02:07.825 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006834", "end": "2022-08-03 11:50:06.241671", "rc": 0, "start": "2022-08-03 11:50:06.234837" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=341 changed=20 unreachable=0 failed=0 skipped=174 rescued=0 ignored=10 Wednesday 03 August 2022 15:50:07 +0000 (0:00:00.423) 0:02:08.249 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 3.65s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Enable network service --------------------- 2.98s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Configure networking connection profiles --- 2.92s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Configure networking connection profiles --- 2.85s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Enable network service --------------------- 2.23s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Re-test connectivity ----------------------- 2.22s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- linux-system-roles.network : Ensure initscripts network file dependency is present --- 2.02s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:107 ---- linux-system-roles.network : Enable network service --------------------- 1.71s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Configure networking connection profiles --- 1.69s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Re-test connectivity ----------------------- 1.68s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- linux-system-roles.network : Check which services are running ----------- 1.66s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 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 services are running ----------- 1.65s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Ensure initscripts network file dependency is present --- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:107 ---- linux-system-roles.network : Check which services are running ----------- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.61s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 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:24:37 +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:24:38 +0000 (0:00:01.287) 0:00:01.304 ****** =============================================================================== 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:24:38 +0000 (0:00:00.014) 0:00:01.319 ****** ok: [/cache/rhel-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659543876.6255844, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659543875.6245844, "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": "3731249175", "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:24:38 +0000 (0:00:00.479) 0:00:01.799 ****** [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': 1659543876.6255844, 'mtime': 1659542132.0, 'ctime': 1659543875.6245844, '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': '3731249175', '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": 1659543876.6255844, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659543875.6245844, "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": "3731249175", "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:24:38 +0000 (0:00:00.040) 0:00:01.839 ****** 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.003977", "end": "2022-08-03 12:24:38.536082", "rc": 0, "start": "2022-08-03 12:24:38.532105" } 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:24:39 +0000 (0:00:00.454) 0:00:02.293 ****** =============================================================================== 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.04s /tmp/tmpzotb0bdj/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmpzotb0bdj/tests/network/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/tests_states_initscripts.yml:4 Wednesday 03 August 2022 16:24:39 +0000 (0:00:00.015) 0:00:02.309 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tests_states_initscripts.yml:7 Wednesday 03 August 2022 16:24:40 +0000 (0:00:01.043) 0:00:03.352 ****** 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:24:40 +0000 (0:00:00.025) 0:00:03.377 ****** 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:24:40 +0000 (0:00:00.018) 0:00:03.396 ****** 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:24:40 +0000 (0:00:00.026) 0:00:03.422 ****** 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:24:40 +0000 (0:00:00.345) 0:00:03.767 ****** 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:24:40 +0000 (0:00:00.020) 0:00:03.788 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.417820", "end": "2022-08-03 12:24:40.794215", "rc": 0, "start": "2022-08-03 12:24:40.376395" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:24:41 +0000 (0:00:00.761) 0:00:04.549 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpzotb0bdj/tests/network/tests_states_initscripts.yml:8 Wednesday 03 August 2022 16:24:41 +0000 (0:00:00.019) 0:00:04.568 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:3 Wednesday 03 August 2022 16:24:41 +0000 (0:00:00.042) 0:00:04.611 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:10 Wednesday 03 August 2022 16:24:42 +0000 (0:00:00.797) 0:00:05.409 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:18 Wednesday 03 August 2022 16:24:42 +0000 (0:00:00.043) 0:00:05.453 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can create a profile] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:24:42 +0000 (0:00:00.045) 0:00:05.498 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:24:42 +0000 (0:00:00.039) 0:00:05.537 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } 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_bridge_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_present.yml", "when": false } ] } 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:24:42 +0000 (0:00:00.143) 0:00:05.681 ****** 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:24:42 +0000 (0:00:00.045) 0:00:05.727 ****** 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:24:42 +0000 (0:00:00.041) 0:00:05.768 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003138", "end": "2022-08-03 12:24:42.380246", "rc": 0, "start": "2022-08-03 12:24:42.377108" } 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:24:43 +0000 (0:00:00.367) 0:00:06.135 ****** 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:24:43 +0000 (0:00:00.071) 0:00:06.207 ****** 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:24:43 +0000 (0:00:00.044) 0:00:06.251 ****** 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:24:43 +0000 (0:00:00.052) 0:00:06.304 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.007751", "end": "2022-08-03 12:24:42.952071", "rc": 1, "start": "2022-08-03 12:24:42.944320" } STDERR: Cannot find device "statebr" 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:24:43 +0000 (0:00:00.400) 0:00:06.705 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:24:43 +0000 (0:00:00.043) 0:00:06.748 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:24:44 +0000 (0:00:00.400) 0:00:07.148 ****** 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:24:44 +0000 (0:00:00.044) 0:00:07.193 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 16:24:44 +0000 (0:00:00.046) 0:00:07.239 ****** 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:24:44 +0000 (0:00:00.086) 0:00:07.326 ****** 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:24:44 +0000 (0:00:00.050) 0:00:07.377 ****** 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:24:45 +0000 (0:00:00.506) 0:00:07.884 ****** 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:24:46 +0000 (0:00:01.723) 0:00:09.608 ****** 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:24:48 +0000 (0:00:01.430) 0:00:11.039 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:24:48 +0000 (0:00:00.109) 0:00:11.148 ****** 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:24:48 +0000 (0:00:00.057) 0:00:11.206 ****** 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:24:48 +0000 (0:00:00.053) 0:00:11.259 ****** 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:24:48 +0000 (0:00:00.076) 0:00:11.335 ****** 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:24:48 +0000 (0:00:00.053) 0:00:11.388 ****** 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:24:48 +0000 (0:00:00.051) 0:00:11.440 ****** 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:24:48 +0000 (0:00:00.053) 0:00:11.493 ****** 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 : 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:24:48 +0000 (0:00:00.052) 0:00:11.546 ****** 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:24:48 +0000 (0:00:00.048) 0:00:11.595 ****** 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 : 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:24:49 +0000 (0:00:00.769) 0:00:12.364 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmppg8pson1" } 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:24:49 +0000 (0:00:00.410) 0:00:12.775 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:24:50 +0000 (0:00:00.669) 0:00:13.444 ****** 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:24:50 +0000 (0:00:00.052) 0:00:13.496 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:24:50 +0000 (0:00:00.060) 0:00:13.557 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:24:50 +0000 (0:00:00.068) 0:00:13.625 ****** 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:24:50 +0000 (0:00:00.054) 0:00:13.679 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 16:24:51 +0000 (0:00:00.517) 0:00:14.196 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:24:51 +0000 (0:00:00.059) 0:00:14.255 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:24:51 +0000 (0:00:00.076) 0:00:14.331 ****** 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:24:51 +0000 (0:00:00.104) 0:00:14.436 ****** 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:24:51 +0000 (0:00:00.056) 0:00:14.493 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659543889.6725843, "block_size": 4096, "blocks": 8, "ctime": 1659543889.6725843, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17604260, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659543889.6725843, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 105, "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:24:52 +0000 (0:00:00.376) 0:00:14.870 ****** 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:24:52 +0000 (0:00:00.062) 0:00:14.933 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021498", "end": "2022-08-03 12:24:51.564521", "rc": 1, "start": "2022-08-03 12:24:51.543023" } 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/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:24:52 +0000 (0:00:00.405) 0:00:15.338 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:24:52 +0000 (0:00:00.050) 0:00:15.389 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002894", "end": "2022-08-03 12:24:52.006454", "rc": 0, "start": "2022-08-03 12:24:52.003560" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:24:52 +0000 (0:00:00.387) 0:00:15.776 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'statebr' is present] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:24:52 +0000 (0:00:00.062) 0:00:15.839 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:24:53 +0000 (0:00:00.065) 0:00:15.905 ****** 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:24:53 +0000 (0:00:00.063) 0:00:15.969 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} skipping: [/cache/rhel-8.qcow2] => (item={'what': 'tasks/assert_device_present.yml', 'when': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "what": "tasks/assert_device_present.yml", "when": false }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can create a profile'] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:24:53 +0000 (0:00:00.107) 0:00:16.076 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:24:53 +0000 (0:00:00.062) 0:00:16.138 ****** 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:24:53 +0000 (0:00:00.086) 0:00:16.225 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.036803", "end": "2022-08-03 12:24:52.876188", "rc": 1, "start": "2022-08-03 12:24:52.839385" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:39 Wednesday 03 August 2022 16:24:53 +0000 (0:00:00.423) 0:00:16.649 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can create a profile without autoconnect] ************************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:24:53 +0000 (0:00:00.078) 0:00:16.728 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:24:53 +0000 (0:00:00.059) 0:00:16.787 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile without autoconnect" } 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_bridge_profile_no_autoconnect.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_absent.yml", "tasks/assert_profile_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:24:54 +0000 (0:00:00.165) 0:00:16.953 ****** 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:24:54 +0000 (0:00:00.079) 0:00:17.032 ****** 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:24:54 +0000 (0:00:00.074) 0:00:17.106 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004060", "end": "2022-08-03 12:24:53.728664", "rc": 0, "start": "2022-08-03 12:24:53.724604" } 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:24:54 +0000 (0:00:00.390) 0:00:17.497 ****** 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:24:54 +0000 (0:00:00.065) 0:00:17.563 ****** 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:24:54 +0000 (0:00:00.064) 0:00:17.628 ****** 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:24:54 +0000 (0:00:00.082) 0:00:17.711 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.005952", "end": "2022-08-03 12:24:54.340632", "rc": 1, "start": "2022-08-03 12:24:54.334680" } STDERR: Cannot find device "statebr" 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:24:55 +0000 (0:00:00.400) 0:00:18.112 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:24:55 +0000 (0:00:00.071) 0:00:18.183 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:24:55 +0000 (0:00:00.387) 0:00:18.571 ****** 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:24:55 +0000 (0:00:00.061) 0:00:18.633 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile_no_autoconnect.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Wednesday 03 August 2022 16:24:55 +0000 (0:00:00.079) 0:00:18.712 ****** 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:24:55 +0000 (0:00:00.124) 0:00:18.837 ****** 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:24:56 +0000 (0:00:00.081) 0:00:18.918 ****** 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:24:56 +0000 (0:00:00.537) 0:00:19.456 ****** 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:24:58 +0000 (0:00:01.563) 0:00:21.020 ****** 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:24:59 +0000 (0:00:01.229) 0:00:22.249 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:24:59 +0000 (0:00:00.059) 0:00:22.308 ****** 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:24:59 +0000 (0:00:00.050) 0:00:22.359 ****** 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:24:59 +0000 (0:00:00.049) 0:00:22.408 ****** 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:24:59 +0000 (0:00:00.073) 0:00:22.482 ****** 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:24:59 +0000 (0:00:00.049) 0:00:22.532 ****** 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:24:59 +0000 (0:00:00.049) 0:00:22.581 ****** 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:24:59 +0000 (0:00:00.056) 0:00:22.638 ****** 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 : 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:24:59 +0000 (0:00:00.082) 0:00:22.721 ****** 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:24:59 +0000 (0:00:00.048) 0:00:22.769 ****** 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 : 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:25:00 +0000 (0:00:00.552) 0:00:23.322 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmpwgpxs94w" } 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:25:00 +0000 (0:00:00.389) 0:00:23.712 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:25:01 +0000 (0:00:00.480) 0:00:24.192 ****** 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:25:01 +0000 (0:00:00.050) 0:00:24.242 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:25:01 +0000 (0:00:00.062) 0:00:24.305 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:25:01 +0000 (0:00:00.061) 0:00:24.366 ****** 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:25:01 +0000 (0:00:00.049) 0:00:24.416 ****** 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_bridge_profile_no_autoconnect.yml:15 Wednesday 03 August 2022 16:25:01 +0000 (0:00:00.425) 0:00:24.841 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [asserts] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:25:02 +0000 (0:00:00.059) 0:00:24.901 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_absent.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:25:02 +0000 (0:00:00.086) 0:00:24.987 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:25:02 +0000 (0:00:00.072) 0:00:25.060 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:25:02 +0000 (0:00:00.389) 0:00:25.449 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:25:02 +0000 (0:00:00.064) 0:00:25.513 ****** 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:25:02 +0000 (0:00:00.076) 0:00:25.590 ****** 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:25:02 +0000 (0:00:00.061) 0:00:25.652 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659543900.4195843, "block_size": 4096, "blocks": 8, "ctime": 1659543900.4195843, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17604260, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659543900.4195843, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 104, "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:25:03 +0000 (0:00:00.437) 0:00:26.090 ****** 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:25:03 +0000 (0:00:00.059) 0:00:26.149 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.018422", "end": "2022-08-03 12:25:02.796082", "rc": 1, "start": "2022-08-03 12:25:02.777660" } 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/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:25:03 +0000 (0:00:00.419) 0:00:26.568 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:25:03 +0000 (0:00:00.049) 0:00:26.618 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002739", "end": "2022-08-03 12:25:03.232118", "rc": 0, "start": "2022-08-03 12:25:03.229379" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:25:04 +0000 (0:00:00.386) 0:00:27.004 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'statebr' is present] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:25:04 +0000 (0:00:00.062) 0:00:27.067 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:25:04 +0000 (0:00:00.060) 0:00:27.127 ****** 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:25:04 +0000 (0:00:00.059) 0:00:27.187 ****** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:25:04 +0000 (0:00:00.044) 0:00:27.232 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:25:04 +0000 (0:00:00.055) 0:00:27.288 ****** 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:25:04 +0000 (0:00:00.080) 0:00:27.369 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.033553", "end": "2022-08-03 12:25:04.048501", "rc": 1, "start": "2022-08-03 12:25:04.014948" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:57 Wednesday 03 August 2022 16:25:04 +0000 (0:00:00.449) 0:00:27.818 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can activate an existing profile] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:25:05 +0000 (0:00:00.074) 0:00:27.893 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:25:05 +0000 (0:00:00.060) 0:00:27.954 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can activate an existing profile" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/activate_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_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:25:05 +0000 (0:00:00.127) 0:00:28.081 ****** 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:25:05 +0000 (0:00:00.071) 0:00:28.152 ****** 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:25:05 +0000 (0:00:00.073) 0:00:28.226 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002739", "end": "2022-08-03 12:25:04.831346", "rc": 0, "start": "2022-08-03 12:25:04.828607" } 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:25:05 +0000 (0:00:00.376) 0:00:28.602 ****** 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:25:05 +0000 (0:00:00.061) 0:00:28.664 ****** 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:25:05 +0000 (0:00:00.061) 0:00:28.725 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 16:25:05 +0000 (0:00:00.110) 0:00:28.835 ****** 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:25:06 +0000 (0:00:00.077) 0:00:28.913 ****** 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:25:06 +0000 (0:00:00.084) 0:00:28.997 ****** 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:25:06 +0000 (0:00:00.517) 0:00:29.515 ****** 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:25:08 +0000 (0:00:01.642) 0:00:31.157 ****** 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:25:09 +0000 (0:00:01.155) 0:00:32.313 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:25:09 +0000 (0:00:00.060) 0:00:32.374 ****** 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:25:09 +0000 (0:00:00.053) 0:00:32.427 ****** 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:25:09 +0000 (0:00:00.050) 0:00:32.478 ****** 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:25:09 +0000 (0:00:00.073) 0:00:32.551 ****** 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:25:09 +0000 (0:00:00.052) 0:00:32.604 ****** 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:25:09 +0000 (0:00:00.053) 0:00:32.657 ****** 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:25:09 +0000 (0:00:00.092) 0:00:32.750 ****** 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 : 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:25:09 +0000 (0:00:00.050) 0:00:32.801 ****** 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:25:10 +0000 (0:00:00.050) 0:00:32.851 ****** 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 : 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:25:10 +0000 (0:00:00.545) 0:00:33.396 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmpbefp4jhi" } 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:25:10 +0000 (0:00:00.431) 0:00:33.827 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:25:11 +0000 (0:00:00.501) 0:00:34.329 ****** 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:25:11 +0000 (0:00:00.055) 0:00:34.385 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:25:11 +0000 (0:00:00.062) 0:00:34.447 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:25:11 +0000 (0:00:00.064) 0:00:34.511 ****** 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:25:11 +0000 (0:00:00.052) 0:00:34.564 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 16:25:12 +0000 (0:00:00.494) 0:00:35.059 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [test] ******************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:25:12 +0000 (0:00:00.058) 0:00:35.118 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 16:25:12 +0000 (0:00:00.076) 0:00:35.194 ****** 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:25:12 +0000 (0:00:00.086) 0:00:35.281 ****** 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:25:12 +0000 (0:00:00.082) 0:00:35.364 ****** 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:25:13 +0000 (0:00:00.554) 0:00:35.918 ****** 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:25:14 +0000 (0:00:01.584) 0:00:37.503 ****** 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:25:15 +0000 (0:00:01.184) 0:00:38.688 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:25:15 +0000 (0:00:00.062) 0:00:38.750 ****** 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:25:15 +0000 (0:00:00.088) 0:00:38.839 ****** 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:25:16 +0000 (0:00:00.057) 0:00:38.896 ****** 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:25:16 +0000 (0:00:00.078) 0:00:38.975 ****** 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:25:16 +0000 (0:00:00.056) 0:00:39.032 ****** 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:25:16 +0000 (0:00:00.055) 0:00:39.088 ****** 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:25:16 +0000 (0:00:00.056) 0:00:39.144 ****** 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 : 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:25:16 +0000 (0:00:00.051) 0:00:39.196 ****** 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:25:16 +0000 (0:00:00.050) 0:00:39.247 ****** 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 : 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:25:16 +0000 (0:00:00.548) 0:00:39.796 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmpu362b7a2" } 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:25:17 +0000 (0:00:00.398) 0:00:40.195 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:25:18 +0000 (0:00:00.744) 0:00:40.939 ****** 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:25:18 +0000 (0:00:00.053) 0:00:40.992 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:25:18 +0000 (0:00:00.061) 0:00:41.054 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:25:18 +0000 (0:00:00.062) 0:00:41.117 ****** 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:25:18 +0000 (0:00:00.054) 0:00:41.172 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:25:18 +0000 (0:00:00.415) 0:00:41.587 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_present.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:25:18 +0000 (0:00:00.084) 0:00:41.672 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:25:18 +0000 (0:00:00.077) 0:00:41.749 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659543917.1007254, "block_size": 4096, "blocks": 0, "ctime": 1659543917.1007254, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37580, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1659543917.1007254, "nlink": 1, "path": "/sys/class/net/statebr", "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 statebr is present] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:25:19 +0000 (0:00:00.436) 0:00:42.185 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:25:19 +0000 (0:00:00.065) 0:00:42.251 ****** 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:25:19 +0000 (0:00:00.085) 0:00:42.337 ****** 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:25:19 +0000 (0:00:00.061) 0:00:42.398 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659543916.9575844, "block_size": 4096, "blocks": 8, "ctime": 1659543910.5575843, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17604250, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659543910.5575843, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 105, "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:25:19 +0000 (0:00:00.390) 0:00:42.788 ****** 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:25:20 +0000 (0:00:00.064) 0:00:42.853 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020266", "end": "2022-08-03 12:25:19.490861", "rc": 1, "start": "2022-08-03 12:25:19.470595" } 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/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:25:20 +0000 (0:00:00.411) 0:00:43.265 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:25:20 +0000 (0:00:00.050) 0:00:43.316 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003066", "end": "2022-08-03 12:25:19.952001", "rc": 0, "start": "2022-08-03 12:25:19.948935" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:25:20 +0000 (0:00:00.410) 0:00:43.727 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'statebr' is present] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:25:20 +0000 (0:00:00.067) 0:00:43.794 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:25:21 +0000 (0:00:00.140) 0:00:43.935 ****** 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:25:21 +0000 (0:00:00.065) 0:00:44.000 ****** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:25:21 +0000 (0:00:00.049) 0:00:44.050 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:25:21 +0000 (0:00:00.064) 0:00:44.114 ****** 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:25:21 +0000 (0:00:00.084) 0:00:44.199 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.063830", "end": "2022-08-03 12:25:20.890179", "rc": 0, "start": "2022-08-03 12:25:20.826349" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:73 Wednesday 03 August 2022 16:25:21 +0000 (0:00:00.464) 0:00:44.663 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can remove an existing profile without taking it down] *********** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:25:21 +0000 (0:00:00.078) 0:00:44.742 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:25:21 +0000 (0:00:00.065) 0:00:44.807 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can remove an existing profile without taking it down" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_absent.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:25:22 +0000 (0:00:00.180) 0:00:44.988 ****** 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:25:22 +0000 (0:00:00.073) 0:00:45.061 ****** 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:25:22 +0000 (0:00:00.116) 0:00:45.177 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003353", "end": "2022-08-03 12:25:21.801551", "rc": 0, "start": "2022-08-03 12:25:21.798198" } 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:25:22 +0000 (0:00:00.397) 0:00:45.575 ****** 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:25:22 +0000 (0:00:00.066) 0:00:45.641 ****** 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:25:22 +0000 (0:00:00.060) 0:00:45.702 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 16:25:22 +0000 (0:00:00.082) 0:00:45.784 ****** 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:25:23 +0000 (0:00:00.077) 0:00:45.862 ****** 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:25:23 +0000 (0:00:00.082) 0:00:45.944 ****** 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:25:23 +0000 (0:00:00.524) 0:00:46.469 ****** 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:25:26 +0000 (0:00:02.683) 0:00:49.152 ****** 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:25:27 +0000 (0:00:01.212) 0:00:50.364 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:25:27 +0000 (0:00:00.059) 0:00:50.424 ****** 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:25:27 +0000 (0:00:00.077) 0:00:50.502 ****** 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:25:27 +0000 (0:00:00.051) 0:00:50.553 ****** 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:25:27 +0000 (0:00:00.077) 0:00:50.631 ****** 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:25:27 +0000 (0:00:00.052) 0:00:50.683 ****** 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:25:27 +0000 (0:00:00.052) 0:00:50.736 ****** 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:25:27 +0000 (0:00:00.062) 0:00:50.799 ****** 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 : 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:25:28 +0000 (0:00:00.053) 0:00:50.852 ****** 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:25:28 +0000 (0:00:00.048) 0:00:50.900 ****** 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 : 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:25:28 +0000 (0:00:00.561) 0:00:51.462 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmph9vyyy0n" } 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:25:29 +0000 (0:00:00.400) 0:00:51.863 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:25:29 +0000 (0:00:00.580) 0:00:52.443 ****** 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:25:29 +0000 (0:00:00.050) 0:00:52.494 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:25:29 +0000 (0:00:00.059) 0:00:52.554 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:25:29 +0000 (0:00:00.060) 0:00:52.614 ****** 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:25:29 +0000 (0:00:00.051) 0:00:52.665 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 16:25:30 +0000 (0:00:00.395) 0:00:53.061 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 16:25:30 +0000 (0:00:00.061) 0:00:53.122 ****** 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:25:30 +0000 (0:00:00.074) 0:00:53.197 ****** 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:25:30 +0000 (0:00:00.079) 0:00:53.276 ****** 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:25:30 +0000 (0:00:00.558) 0:00:53.835 ****** 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:25:32 +0000 (0:00:01.565) 0:00:55.400 ****** 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:25:33 +0000 (0:00:01.188) 0:00:56.589 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:25:33 +0000 (0:00:00.098) 0:00:56.687 ****** 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:25:33 +0000 (0:00:00.089) 0:00:56.777 ****** 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:25:33 +0000 (0:00:00.053) 0:00:56.830 ****** 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:25:34 +0000 (0:00:00.076) 0:00:56.907 ****** 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:25:34 +0000 (0:00:00.054) 0:00:56.961 ****** 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:25:34 +0000 (0:00:00.054) 0:00:57.015 ****** 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:25:34 +0000 (0:00:00.058) 0:00:57.073 ****** 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 : 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:25:34 +0000 (0:00:00.054) 0:00:57.128 ****** 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:25:34 +0000 (0:00:00.052) 0:00:57.181 ****** 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 : 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:25:34 +0000 (0:00:00.556) 0:00:57.737 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmp2d2np7s4" } 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:25:35 +0000 (0:00:00.405) 0:00:58.143 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:25:36 +0000 (0:00:00.750) 0:00:58.894 ****** 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:25:36 +0000 (0:00:00.050) 0:00:58.945 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:25:36 +0000 (0:00:00.060) 0:00:59.005 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:25:36 +0000 (0:00:00.059) 0:00:59.065 ****** 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:25:36 +0000 (0:00:00.050) 0:00:59.116 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [test] ******************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:25:36 +0000 (0:00:00.410) 0:00:59.527 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove_profile.yml:3 Wednesday 03 August 2022 16:25:36 +0000 (0:00:00.082) 0:00:59.609 ****** 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:25:36 +0000 (0:00:00.089) 0:00:59.699 ****** 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:25:36 +0000 (0:00:00.080) 0:00:59.779 ****** 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:25:37 +0000 (0:00:00.576) 0:01:00.356 ****** 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:25:39 +0000 (0:00:01.603) 0:01:01.959 ****** 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:25:40 +0000 (0:00:01.158) 0:01:03.117 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:25:40 +0000 (0:00:00.058) 0:01:03.176 ****** 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:25:40 +0000 (0:00:00.053) 0:01:03.229 ****** 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:25:40 +0000 (0:00:00.050) 0:01:03.280 ****** 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:25:40 +0000 (0:00:00.072) 0:01:03.353 ****** 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:25:40 +0000 (0:00:00.055) 0:01:03.409 ****** 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:25:40 +0000 (0:00:00.055) 0:01:03.464 ****** 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:25:40 +0000 (0:00:00.057) 0:01:03.522 ****** 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 : 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:25:40 +0000 (0:00:00.052) 0:01:03.574 ****** 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:25:40 +0000 (0:00:00.049) 0:01:03.624 ****** 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 : 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:25:41 +0000 (0:00:00.553) 0:01:04.177 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmp5arqr5wm" } 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:25:41 +0000 (0:00:00.408) 0:01:04.586 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' 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:25:42 +0000 (0:00:00.529) 0:01:05.115 ****** 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:25:42 +0000 (0:00:00.051) 0:01:05.167 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } 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:25:42 +0000 (0:00:00.062) 0:01:05.229 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } 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:25:42 +0000 (0:00:00.061) 0:01:05.290 ****** 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:25:42 +0000 (0:00:00.053) 0:01:05.344 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:25:42 +0000 (0:00:00.406) 0:01:05.751 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_device_present.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_absent.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:25:42 +0000 (0:00:00.091) 0:01:05.842 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:25:43 +0000 (0:00:00.076) 0:01:05.919 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659543935.0616002, "block_size": 4096, "blocks": 0, "ctime": 1659543935.0616002, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37711, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1659543935.0616002, "nlink": 1, "path": "/sys/class/net/statebr", "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 statebr is present] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:25:43 +0000 (0:00:00.427) 0:01:06.347 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 16:25:43 +0000 (0:00:00.066) 0:01:06.413 ****** 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:25:43 +0000 (0:00:00.077) 0:01:06.491 ****** 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:25:43 +0000 (0:00:00.063) 0:01:06.554 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": 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:25:44 +0000 (0:00:00.390) 0:01:06.945 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:25:44 +0000 (0:00:00.047) 0:01:06.992 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019987", "end": "2022-08-03 12:25:43.629108", "rc": 1, "start": "2022-08-03 12:25:43.609121" } 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/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:25:44 +0000 (0:00:00.409) 0:01:07.402 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:25:44 +0000 (0:00:00.049) 0:01:07.451 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:25:44 +0000 (0:00:00.047) 0:01:07.499 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 16:25:44 +0000 (0:00:00.049) 0:01:07.549 ****** 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:25:44 +0000 (0:00:00.060) 0:01:07.609 ****** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:25:44 +0000 (0:00:00.047) 0:01:07.657 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:25:44 +0000 (0:00:00.100) 0:01:07.757 ****** 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:25:44 +0000 (0:00:00.077) 0:01:07.835 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.050149", "end": "2022-08-03 12:25:44.488342", "rc": 0, "start": "2022-08-03 12:25:44.438193" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:90 Wednesday 03 August 2022 16:25:45 +0000 (0:00:00.425) 0:01:08.261 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I can take a profile down that is absent] ************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:25:45 +0000 (0:00:00.074) 0:01:08.336 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:25:45 +0000 (0:00:00.058) 0:01:08.394 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can take a profile down that is absent" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_absent.yml", "when": false } ] } 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:25:45 +0000 (0:00:00.163) 0:01:08.558 ****** 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:25:45 +0000 (0:00:00.071) 0:01:08.629 ****** 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:25:45 +0000 (0:00:00.069) 0:01:08.698 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003149", "end": "2022-08-03 12:25:45.303226", "rc": 0, "start": "2022-08-03 12:25:45.300077" } 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:25:46 +0000 (0:00:00.406) 0:01:09.105 ****** 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:25:46 +0000 (0:00:00.059) 0:01:09.164 ****** 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:25:46 +0000 (0:00:00.056) 0:01:09.221 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 16:25:46 +0000 (0:00:00.084) 0:01:09.306 ****** 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:25:46 +0000 (0:00:00.073) 0:01:09.379 ****** 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:25:46 +0000 (0:00:00.078) 0:01:09.458 ****** 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:25:47 +0000 (0:00:00.529) 0:01:09.988 ****** 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:25:48 +0000 (0:00:01.595) 0:01:11.583 ****** 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:25:49 +0000 (0:00:01.128) 0:01:12.711 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:25:49 +0000 (0:00:00.059) 0:01:12.770 ****** 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:25:49 +0000 (0:00:00.054) 0:01:12.824 ****** 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:25:50 +0000 (0:00:00.092) 0:01:12.917 ****** 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:25:50 +0000 (0:00:00.074) 0:01:12.992 ****** 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:25:50 +0000 (0:00:00.053) 0:01:13.046 ****** 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:25:50 +0000 (0:00:00.052) 0:01:13.098 ****** 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:25:50 +0000 (0:00:00.058) 0:01:13.157 ****** 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 : 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:25:50 +0000 (0:00:00.060) 0:01:13.218 ****** 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:25:50 +0000 (0:00:00.050) 0:01:13.269 ****** 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 : 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:25:50 +0000 (0:00:00.554) 0:01:13.823 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmpewqgt7m6" } 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:25:51 +0000 (0:00:00.395) 0:01:14.219 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:25:51 +0000 (0:00:00.516) 0:01:14.736 ****** 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:25:51 +0000 (0:00:00.083) 0:01:14.819 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:25:52 +0000 (0:00:00.061) 0:01:14.881 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:25:52 +0000 (0:00:00.060) 0:01:14.941 ****** 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:25:52 +0000 (0:00:00.055) 0:01:14.996 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 16:25:52 +0000 (0:00:00.406) 0:01:15.403 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 16:25:52 +0000 (0:00:00.061) 0:01:15.464 ****** 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:25:52 +0000 (0:00:00.075) 0:01:15.539 ****** 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:25:52 +0000 (0:00:00.081) 0:01:15.621 ****** 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:25:53 +0000 (0:00:00.520) 0:01:16.142 ****** 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:25:54 +0000 (0:00:01.696) 0:01:17.838 ****** 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:25:56 +0000 (0:00:01.168) 0:01:19.006 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:25:56 +0000 (0:00:00.120) 0:01:19.127 ****** 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:25:56 +0000 (0:00:00.051) 0:01:19.178 ****** 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:25:56 +0000 (0:00:00.056) 0:01:19.234 ****** 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:25:56 +0000 (0:00:00.107) 0:01:19.342 ****** 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:25:56 +0000 (0:00:00.054) 0:01:19.396 ****** 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:25:56 +0000 (0:00:00.051) 0:01:19.448 ****** 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:25:56 +0000 (0:00:00.055) 0:01:19.503 ****** 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 : 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:25:56 +0000 (0:00:00.051) 0:01:19.554 ****** 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:25:56 +0000 (0:00:00.046) 0:01:19.601 ****** 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 : 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:25:57 +0000 (0:00:00.542) 0:01:20.144 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmpb94dcvqu" } 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:25:57 +0000 (0:00:00.401) 0:01:20.546 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:25:58 +0000 (0:00:00.747) 0:01:21.293 ****** 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:25:58 +0000 (0:00:00.051) 0:01:21.345 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:25:58 +0000 (0:00:00.063) 0:01:21.408 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:25:58 +0000 (0:00:00.060) 0:01:21.469 ****** 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:25:58 +0000 (0:00:00.052) 0:01:21.522 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove_profile.yml:3 Wednesday 03 August 2022 16:25:59 +0000 (0:00:00.409) 0:01:21.931 ****** 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:25:59 +0000 (0:00:00.077) 0:01:22.008 ****** 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:25:59 +0000 (0:00:00.078) 0:01:22.087 ****** 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:25:59 +0000 (0:00:00.522) 0:01:22.610 ****** 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:26:01 +0000 (0:00:01.648) 0:01:24.258 ****** 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:26:02 +0000 (0:00:01.213) 0:01:25.472 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:26:02 +0000 (0:00:00.135) 0:01:25.607 ****** 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:26:02 +0000 (0:00:00.055) 0:01:25.662 ****** 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:26:02 +0000 (0:00:00.062) 0:01:25.725 ****** 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:26:02 +0000 (0:00:00.075) 0:01:25.801 ****** 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:26:03 +0000 (0:00:00.050) 0:01:25.851 ****** 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:26:03 +0000 (0:00:00.049) 0:01:25.901 ****** 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:26:03 +0000 (0:00:00.053) 0:01:25.954 ****** 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 : 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:26:03 +0000 (0:00:00.050) 0:01:26.005 ****** 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:26:03 +0000 (0:00:00.048) 0:01:26.054 ****** 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 : 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:26:03 +0000 (0:00:00.550) 0:01:26.604 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmp741v5bas" } 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:26:04 +0000 (0:00:00.395) 0:01:27.000 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' 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:26:04 +0000 (0:00:00.537) 0:01:27.538 ****** 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:26:04 +0000 (0:00:00.051) 0:01:27.589 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } 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:26:04 +0000 (0:00:00.061) 0:01:27.650 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } 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:26:04 +0000 (0:00:00.061) 0:01:27.712 ****** 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:26:04 +0000 (0:00:00.050) 0:01:27.762 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [test] ******************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:26:05 +0000 (0:00:00.403) 0:01:28.166 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove+down_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove+down_profile.yml:3 Wednesday 03 August 2022 16:26:05 +0000 (0:00:00.078) 0:01:28.245 ****** 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:26:05 +0000 (0:00:00.088) 0:01:28.333 ****** 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:26:05 +0000 (0:00:00.083) 0:01:28.417 ****** 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:26:06 +0000 (0:00:00.585) 0:01:29.002 ****** 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:26:09 +0000 (0:00:03.662) 0:01:32.664 ****** 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:26:10 +0000 (0:00:01.167) 0:01:33.832 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:26:11 +0000 (0:00:00.124) 0:01:33.956 ****** 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:26:11 +0000 (0:00:00.054) 0:01:34.011 ****** 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:26:11 +0000 (0:00:00.059) 0:01:34.071 ****** 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:26:11 +0000 (0:00:00.087) 0:01:34.159 ****** 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:26:11 +0000 (0:00:00.058) 0:01:34.217 ****** 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:26:11 +0000 (0:00:00.057) 0:01:34.275 ****** 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:26:11 +0000 (0:00:00.060) 0:01:34.336 ****** 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 : 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:26:11 +0000 (0:00:00.057) 0:01:34.393 ****** 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:26:11 +0000 (0:00:00.052) 0:01:34.446 ****** 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 : 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:26:12 +0000 (0:00:00.569) 0:01:35.015 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmp72ehil6f" } 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:26:12 +0000 (0:00:00.426) 0:01:35.441 ****** ok: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) 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:26:13 +0000 (0:00:00.550) 0:01:35.992 ****** 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:26:13 +0000 (0:00:00.055) 0:01:36.048 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } 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:26:13 +0000 (0:00:00.066) 0:01:36.114 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } 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:26:13 +0000 (0:00:00.066) 0:01:36.181 ****** 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:26:13 +0000 (0:00:00.055) 0:01:36.237 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:26:13 +0000 (0:00:00.406) 0:01:36.644 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_absent.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 16:26:13 +0000 (0:00:00.076) 0:01:36.720 ****** 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:26:13 +0000 (0:00:00.073) 0:01:36.794 ****** 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:26:14 +0000 (0:00:00.057) 0:01:36.852 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": 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:26:14 +0000 (0:00:00.438) 0:01:37.290 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:26:14 +0000 (0:00:00.052) 0:01:37.343 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021545", "end": "2022-08-03 12:26:13.995571", "rc": 1, "start": "2022-08-03 12:26:13.974026" } 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/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:26:14 +0000 (0:00:00.429) 0:01:37.772 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:26:14 +0000 (0:00:00.054) 0:01:37.827 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:26:15 +0000 (0:00:00.054) 0:01:37.881 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 16:26:15 +0000 (0:00:00.052) 0:01:37.934 ****** 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:26:15 +0000 (0:00:00.061) 0:01:37.995 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} skipping: [/cache/rhel-8.qcow2] => (item={'what': 'tasks/assert_device_absent.yml', 'when': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "what": "tasks/assert_device_absent.yml", "when": false }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can take a profile down that is absent'] ************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:26:15 +0000 (0:00:00.061) 0:01:38.057 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:26:15 +0000 (0:00:00.063) 0:01:38.121 ****** 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:26:15 +0000 (0:00:00.082) 0:01:38.204 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.050922", "end": "2022-08-03 12:26:14.880551", "rc": 0, "start": "2022-08-03 12:26:14.829629" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_states.yml:110 Wednesday 03 August 2022 16:26:15 +0000 (0:00:00.456) 0:01:38.660 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-8.qcow2 TASK [TEST: I will not get an error when I try to remove an absent profile] **** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:26:15 +0000 (0:00:00.117) 0:01:38.778 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:26:15 +0000 (0:00:00.068) 0:01:38.846 ****** ok: [/cache/rhel-8.qcow2] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I will not get an error when I try to remove an absent profile" } ok: [/cache/rhel-8.qcow2] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove+down_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml", "tasks/get_NetworkManager_NVR.yml" ] } ok: [/cache/rhel-8.qcow2] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_absent.yml", "when": false } ] } 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:26:16 +0000 (0:00:00.139) 0:01:38.986 ****** 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:26:16 +0000 (0:00:00.074) 0:01:39.060 ****** 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:26:16 +0000 (0:00:00.070) 0:01:39.131 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003289", "end": "2022-08-03 12:26:15.759731", "rc": 0, "start": "2022-08-03 12:26:15.756442" } 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:26:16 +0000 (0:00:00.403) 0:01:39.535 ****** 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:26:16 +0000 (0:00:00.059) 0:01:39.594 ****** 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:26:16 +0000 (0:00:00.059) 0:01:39.654 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/create_bridge_profile.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/activate_profile.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove+down_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 16:26:16 +0000 (0:00:00.087) 0:01:39.741 ****** 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:26:17 +0000 (0:00:00.111) 0:01:39.853 ****** 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:26:17 +0000 (0:00:00.082) 0:01:39.935 ****** 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:26:17 +0000 (0:00:00.552) 0:01:40.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 : 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:26:19 +0000 (0:00:01.686) 0:01:42.174 ****** 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:26:20 +0000 (0:00:01.258) 0:01:43.433 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:26:20 +0000 (0:00:00.062) 0:01:43.495 ****** 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:26:20 +0000 (0:00:00.052) 0:01:43.547 ****** 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:26:20 +0000 (0:00:00.055) 0:01:43.603 ****** 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:26:20 +0000 (0:00:00.080) 0:01:43.683 ****** 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:26:20 +0000 (0:00:00.052) 0:01:43.735 ****** 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:26:20 +0000 (0:00:00.053) 0:01:43.789 ****** 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:26:20 +0000 (0:00:00.059) 0:01:43.849 ****** 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 : 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:26:21 +0000 (0:00:00.055) 0:01:43.904 ****** 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:26:21 +0000 (0:00:00.095) 0:01:44.000 ****** 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 : 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:26:21 +0000 (0:00:00.575) 0:01:44.575 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmp0uu4ib3i" } 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:26:22 +0000 (0:00:00.406) 0:01:44.982 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' 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:26:22 +0000 (0:00:00.505) 0:01:45.488 ****** 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:26:22 +0000 (0:00:00.062) 0:01:45.550 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } 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:26:22 +0000 (0:00:00.081) 0:01:45.631 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } 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:26:22 +0000 (0:00:00.063) 0:01:45.694 ****** 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:26:22 +0000 (0:00:00.053) 0:01:45.748 ****** 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_bridge_profile.yml:14 Wednesday 03 August 2022 16:26:23 +0000 (0:00:00.422) 0:01:46.171 ****** 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": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/activate_profile.yml:3 Wednesday 03 August 2022 16:26:23 +0000 (0:00:00.069) 0:01:46.240 ****** 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:26:23 +0000 (0:00:00.078) 0:01:46.318 ****** 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:26:23 +0000 (0:00:00.082) 0:01:46.401 ****** 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:26:24 +0000 (0:00:00.545) 0:01:46.946 ****** 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:26:25 +0000 (0:00:01.610) 0:01:48.557 ****** 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:26:27 +0000 (0:00:01.874) 0:01:50.431 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:26:27 +0000 (0:00:00.058) 0:01:50.490 ****** 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:26:27 +0000 (0:00:00.080) 0:01:50.570 ****** 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:26:27 +0000 (0:00:00.052) 0:01:50.623 ****** 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:26:27 +0000 (0:00:00.075) 0:01:50.698 ****** 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:26:27 +0000 (0:00:00.054) 0:01:50.752 ****** 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:26:27 +0000 (0:00:00.051) 0:01:50.804 ****** 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:26:28 +0000 (0:00:00.053) 0:01:50.857 ****** 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 : 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:26:28 +0000 (0:00:00.054) 0:01:50.911 ****** 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:26:28 +0000 (0:00:00.052) 0:01:50.964 ****** 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 : 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:26:28 +0000 (0:00:00.814) 0:01:51.779 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmp2auefvcv" } 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:26:29 +0000 (0:00:00.407) 0:01:52.186 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' 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:26:30 +0000 (0:00:00.862) 0:01:53.049 ****** 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:26:30 +0000 (0:00:00.055) 0:01:53.104 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } 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:26:30 +0000 (0:00:00.061) 0:01:53.166 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } 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:26:30 +0000 (0:00:00.066) 0:01:53.232 ****** 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:26:30 +0000 (0:00:00.052) 0:01:53.285 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove+down_profile.yml:3 Wednesday 03 August 2022 16:26:30 +0000 (0:00:00.423) 0:01:53.709 ****** 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:26:30 +0000 (0:00:00.078) 0:01:53.788 ****** 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:26:31 +0000 (0:00:00.081) 0:01:53.869 ****** 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:26:31 +0000 (0:00:00.562) 0:01:54.431 ****** 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:26:33 +0000 (0:00:01.631) 0:01:56.063 ****** 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:26:34 +0000 (0:00:01.147) 0:01:57.210 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:26:34 +0000 (0:00:00.063) 0:01:57.274 ****** 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:26:34 +0000 (0:00:00.057) 0:01:57.332 ****** 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:26:34 +0000 (0:00:00.053) 0:01:57.385 ****** 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:26:34 +0000 (0:00:00.076) 0:01:57.462 ****** 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:26:34 +0000 (0:00:00.054) 0:01:57.516 ****** 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:26:34 +0000 (0:00:00.054) 0:01:57.570 ****** 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:26:34 +0000 (0:00:00.056) 0:01:57.627 ****** 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 : 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:26:34 +0000 (0:00:00.053) 0:01:57.681 ****** 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:26:34 +0000 (0:00:00.051) 0:01:57.732 ****** 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 : 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:26:35 +0000 (0:00:00.567) 0:01:58.300 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmpfksn9rxi" } 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:26:35 +0000 (0:00:00.402) 0:01:58.703 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' 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:26:36 +0000 (0:00:00.547) 0:01:59.250 ****** 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:26:36 +0000 (0:00:00.056) 0:01:59.307 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } 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:26:36 +0000 (0:00:00.064) 0:01:59.372 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } 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:26:36 +0000 (0:00:00.063) 0:01:59.435 ****** 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:26:36 +0000 (0:00:00.054) 0:01:59.490 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [test] ******************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:26:37 +0000 (0:00:00.416) 0:01:59.907 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove+down_profile.yml for /cache/rhel-8.qcow2 => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/remove+down_profile.yml:3 Wednesday 03 August 2022 16:26:37 +0000 (0:00:00.101) 0:02:00.008 ****** 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:26:37 +0000 (0:00:00.075) 0:02:00.084 ****** 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:26:37 +0000 (0:00:00.110) 0:02:00.194 ****** 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:26:37 +0000 (0:00:00.517) 0:02:00.712 ****** 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:26:40 +0000 (0:00:02.556) 0:02:03.269 ****** 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:26:41 +0000 (0:00:01.245) 0:02:04.515 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts 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:26:41 +0000 (0:00:00.060) 0:02:04.575 ****** 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:26:41 +0000 (0:00:00.052) 0:02:04.628 ****** 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:26:41 +0000 (0:00:00.051) 0:02:04.679 ****** 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:26:41 +0000 (0:00:00.081) 0:02:04.760 ****** 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:26:41 +0000 (0:00:00.051) 0:02:04.812 ****** 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:26:42 +0000 (0:00:00.052) 0:02:04.864 ****** 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:26:42 +0000 (0:00:00.056) 0:02:04.921 ****** 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 : 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:26:42 +0000 (0:00:00.049) 0:02:04.971 ****** 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:26:42 +0000 (0:00:00.048) 0:02:05.019 ****** 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 : 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:26:42 +0000 (0:00:00.563) 0:02:05.583 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-83079g4e729xu/tmpjeg4eiv3" } 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:26:43 +0000 (0:00:00.411) 0:02:05.994 ****** ok: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) 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:26:43 +0000 (0:00:00.550) 0:02:06.544 ****** 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:26:43 +0000 (0:00:00.056) 0:02:06.601 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } 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:26:43 +0000 (0:00:00.065) 0:02:06.667 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } 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:26:43 +0000 (0:00:00.067) 0:02:06.734 ****** 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:26:43 +0000 (0:00:00.057) 0:02:06.791 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [asserts] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:35 Wednesday 03 August 2022 16:26:44 +0000 (0:00:00.438) 0:02:07.230 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml for /cache/rhel-8.qcow2 => (item=tasks/assert_profile_absent.yml) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_NetworkManager_NVR.yml for /cache/rhel-8.qcow2 => (item=tasks/get_NetworkManager_NVR.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml:3 Wednesday 03 August 2022 16:26:44 +0000 (0:00:00.087) 0:02:07.318 ****** 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:26:44 +0000 (0:00:00.079) 0:02:07.397 ****** 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:26:44 +0000 (0:00:00.064) 0:02:07.461 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "exists": 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:26:45 +0000 (0:00:00.455) 0:02:07.917 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:26:45 +0000 (0:00:00.049) 0:02:07.967 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020673", "end": "2022-08-03 12:26:44.610959", "rc": 1, "start": "2022-08-03 12:26:44.590286" } 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/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:26:45 +0000 (0:00:00.420) 0:02:08.387 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:26:45 +0000 (0:00:00.053) 0:02:08.440 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:26:45 +0000 (0:00:00.054) 0:02:08.495 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_absent.yml:4 Wednesday 03 August 2022 16:26:45 +0000 (0:00:00.054) 0:02:08.550 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_NetworkManager_NVR.yml:4 Wednesday 03 August 2022 16:26:45 +0000 (0:00:00.066) 0:02:08.616 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.563663", "end": "2022-08-03 12:26:45.795409", "rc": 0, "start": "2022-08-03 12:26:45.231746" } STDOUT: NetworkManager-1.36.0-4.el8 TASK [Store NetworkManager version] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_NetworkManager_NVR.yml:10 Wednesday 03 August 2022 16:26:46 +0000 (0:00:00.957) 0:02:09.574 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "NetworkManager_NVR": "NetworkManager-1.36.0-4.el8" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_NetworkManager_NVR.yml:14 Wednesday 03 August 2022 16:26:46 +0000 (0:00:00.129) 0:02:09.703 ****** ok: [/cache/rhel-8.qcow2] => { "NetworkManager_NVR": "NetworkManager-1.36.0-4.el8" } TASK [conditional asserts] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:41 Wednesday 03 August 2022 16:26:46 +0000 (0:00:00.062) 0:02:09.766 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} skipping: [/cache/rhel-8.qcow2] => (item={'what': 'tasks/assert_device_absent.yml', 'when': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "what": "tasks/assert_device_absent.yml", "when": false }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 03 August 2022 16:26:46 +0000 (0:00:00.056) 0:02:09.823 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: +++++ Success in test 'I will not get an error when I try to remove an absent profile' +++++ TASK [cleanup] ***************************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:26:47 +0000 (0:00:00.064) 0:02:09.887 ****** 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:26:47 +0000 (0:00:00.083) 0:02:09.970 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.059013", "end": "2022-08-03 12:26:46.639588", "rc": 0, "start": "2022-08-03 12:26:46.580575" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=340 changed=19 unreachable=0 failed=0 skipped=174 rescued=0 ignored=10 Wednesday 03 August 2022 16:26:47 +0000 (0:00:00.469) 0:02:10.440 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 3.66s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Configure networking connection profiles --- 3.11s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Enable network service -------------- 3.01s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Configure networking connection profiles --- 2.77s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 2.68s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 2.56s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Enable network service -------------- 2.46s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Re-test connectivity ---------------- 2.24s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Ensure initscripts network file dependency is present --- 2.04s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 fedora.linux_system_roles.network : Check which packages are installed --- 1.87s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which services are running ---- 1.72s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Enable network service -------------- 1.70s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Check which services are running ---- 1.70s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.69s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Re-test connectivity ---------------- 1.66s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Configure networking connection profiles --- 1.65s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 1.65s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.64s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.63s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Ensure initscripts network file dependency is present --- 1.61s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 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:26:47 +0000 (0:00:00.046) 0:02:10.487 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.005992", "end": "2022-08-03 12:26:47.093012", "rc": 0, "start": "2022-08-03 12:26:47.087020" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=341 changed=20 unreachable=0 failed=0 skipped=174 rescued=0 ignored=10 Wednesday 03 August 2022 16:26:48 +0000 (0:00:00.403) 0:02:10.890 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 3.66s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Configure networking connection profiles --- 3.11s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Enable network service -------------- 3.01s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Configure networking connection profiles --- 2.77s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 2.68s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 2.56s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Enable network service -------------- 2.46s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Re-test connectivity ---------------- 2.24s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Ensure initscripts network file dependency is present --- 2.04s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 fedora.linux_system_roles.network : Check which packages are installed --- 1.87s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which services are running ---- 1.72s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Enable network service -------------- 1.70s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Check which services are running ---- 1.70s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.69s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Re-test connectivity ---------------- 1.66s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Configure networking connection profiles --- 1.65s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 1.65s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.64s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.63s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Ensure initscripts network file dependency is present --- 1.61s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97