# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_states_nm.yml ************************************************** 2 plays in /WORKDIR/git-code_refactorib16hxy9/tests/tests_states_nm.yml PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/tests_states_nm.yml:5 Thursday 30 November 2023 18:42:16 +0000 (0:00:00.021) 0:00:00.021 ***** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/tests_states_nm.yml:9 Thursday 30 November 2023 18:42:17 +0000 (0:00:00.712) 0:00:00.733 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml for sut TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:3 Thursday 30 November 2023 18:42:17 +0000 (0:00:00.035) 0:00:00.769 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:19 Thursday 30 November 2023 18:42:17 +0000 (0:00:00.356) 0:00:01.125 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:24 Thursday 30 November 2023 18:42:17 +0000 (0:00:00.266) 0:00:01.392 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:28 Thursday 30 November 2023 18:42:17 +0000 (0:00:00.024) 0:00:01.416 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/el_repo_setup.yml:53 Thursday 30 November 2023 18:42:17 +0000 (0:00:00.023) 0:00:01.439 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:8 Thursday 30 November 2023 18:42:17 +0000 (0:00:00.074) 0:00:01.514 ***** ok: [sut] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:24 Thursday 30 November 2023 18:42:18 +0000 (0:00:00.259) 0:00:01.773 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:30 Thursday 30 November 2023 18:42:18 +0000 (0:00:00.013) 0:00:01.787 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:35 Thursday 30 November 2023 18:42:18 +0000 (0:00:00.013) 0:00:01.800 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.395627", "end": "2023-11-30 18:42:18.742892", "rc": 0, "start": "2023-11-30 18:42:18.347265" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tasks/enable_epel.yml:40 Thursday 30 November 2023 18:42:18 +0000 (0:00:00.588) 0:00:02.389 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/tests_states_nm.yml:11 Thursday 30 November 2023 18:42:18 +0000 (0:00:00.014) 0:00:02.403 ***** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for testing states] ************************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:3 Thursday 30 November 2023 18:42:18 +0000 (0:00:00.015) 0:00:02.418 ***** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:11 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.497) 0:00:02.916 ***** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:22 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.013) 0:00:02.930 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.020) 0:00:02.950 ***** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.013) 0:00:02.964 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_present.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.047) 0:00:03.011 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.019) 0:00:03.030 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.018) 0:00:03.049 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003488", "end": "2023-11-30 18:42:19.600207", "rc": 0, "start": "2023-11-30 18:42:19.596719" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.195) 0:00:03.245 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.015) 0:00:03.260 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.013) 0:00:03.274 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/delete_interface.yml:3 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.028) 0:00:03.302 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.008934", "end": "2023-11-30 18:42:19.859388", "rc": 1, "start": "2023-11-30 18:42:19.850454" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.202) 0:00:03.505 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:42:19 +0000 (0:00:00.026) 0:00:03.532 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.195) 0:00:03.727 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.017) 0:00:03.745 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.024) 0:00:03.770 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.044) 0:00:03.815 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.087) 0:00:03.902 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.015) 0:00:03.918 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.014) 0:00:03.932 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:42:20 +0000 (0:00:00.014) 0:00:03.946 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:42:22 +0000 (0:00:01.788) 0:00:05.735 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:42:23 +0000 (0:00:01.449) 0:00:07.185 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:42:23 +0000 (0:00:00.030) 0:00:07.216 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:42:23 +0000 (0:00:00.029) 0:00:07.245 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:42:23 +0000 (0:00:00.032) 0:00:07.278 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:42:23 +0000 (0:00:00.060) 0:00:07.339 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:42:23 +0000 (0:00:00.028) 0:00:07.367 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:42:23 +0000 (0:00:00.028) 0:00:07.395 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:42:23 +0000 (0:00:00.035) 0:00:07.431 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:42:24 +0000 (0:00:00.584) 0:00:08.015 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:42:24 +0000 (0:00:00.045) 0:00:08.061 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:42:24 +0000 (0:00:00.029) 0:00:08.091 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:42:24 +0000 (0:00:00.032) 0:00:08.123 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9dccd9ed-5b41-4602-b4af-302e171d3644 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.581) 0:00:08.705 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.028) 0:00:08.734 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9dccd9ed-5b41-4602-b4af-302e171d3644" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.029) 0:00:08.763 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9dccd9ed-5b41-4602-b4af-302e171d3644\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9dccd9ed-5b41-4602-b4af-302e171d3644" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.027) 0:00:08.791 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.025) 0:00:08.817 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.305) 0:00:09.122 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9dccd9ed-5b41-4602-b4af-302e171d3644\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9dccd9ed-5b41-4602-b4af-302e171d3644" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.029) 0:00:09.152 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.079) 0:00:09.232 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.052) 0:00:09.284 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.028) 0:00:09.313 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369745.043257, "block_size": 4096, "blocks": 8, "ctime": 1701369744.974257, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798132, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701369744.974257, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 221, "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: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.208) 0:00:09.521 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:42:25 +0000 (0:00:00.028) 0:00:09.549 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022266", "end": "2023-11-30 18:42:26.118315", "rc": 0, "start": "2023-11-30 18:42:26.096049" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.233) 0:00:09.783 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.035) 0:00:09.818 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.039) 0:00:09.858 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.042) 0:00:09.900 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.039) 0:00:09.940 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.037) 0:00:09.978 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.046) 0:00:10.024 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.037) 0:00:10.061 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.065) 0:00:10.126 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.066) 0:00:10.193 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.046) 0:00:10.240 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369744.9765549, "block_size": 4096, "blocks": 0, "ctime": 1701369744.9765549, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38382, "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": 1701369744.9765549, "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 the interface is present - 'statebr'] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.206) 0:00:10.447 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.030) 0:00:10.477 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.026) 0:00:10.504 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 18:42:26 +0000 (0:00:00.050) 0:00:10.555 ***** fatal: [sut]: 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.069108", "end": "2023-11-30 18:42:27.170541", "rc": 1, "start": "2023-11-30 18:42:27.101433" } STDOUT: Connection 'statebr' (9dccd9ed-5b41-4602-b4af-302e171d3644) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:45 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.276) 0:00:10.831 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.050) 0:00:10.881 ***** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.041) 0:00:10.923 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile without autoconnect" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile_no_autoconnect.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_absent.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (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: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.085) 0:00:11.009 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.045) 0:00:11.054 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.043) 0:00:11.098 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003572", "end": "2023-11-30 18:42:27.647580", "rc": 0, "start": "2023-11-30 18:42:27.644008" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.208) 0:00:11.306 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.028) 0:00:11.335 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.028) 0:00:11.363 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/delete_interface.yml:3 Thursday 30 November 2023 18:42:27 +0000 (0:00:00.059) 0:00:11.423 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.006734", "end": "2023-11-30 18:42:27.976863", "rc": 1, "start": "2023-11-30 18:42:27.970129" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.210) 0:00:11.633 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.046) 0:00:11.679 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.203) 0:00:11.883 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.030) 0:00:11.914 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.106) 0:00:12.020 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.057) 0:00:12.078 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.054) 0:00:12.133 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.036) 0:00:12.170 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.027) 0:00:12.197 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:42:28 +0000 (0:00:00.026) 0:00:12.224 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:42:30 +0000 (0:00:01.756) 0:00:13.981 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:42:31 +0000 (0:00:01.252) 0:00:15.233 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:42:31 +0000 (0:00:00.042) 0:00:15.275 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:42:31 +0000 (0:00:00.028) 0:00:15.304 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:42:31 +0000 (0:00:00.028) 0:00:15.333 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:42:31 +0000 (0:00:00.061) 0:00:15.395 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:42:31 +0000 (0:00:00.028) 0:00:15.423 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:42:31 +0000 (0:00:00.029) 0:00:15.453 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:42:31 +0000 (0:00:00.062) 0:00:15.515 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.363) 0:00:15.878 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.034) 0:00:15.913 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.030) 0:00:15.943 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.026) 0:00:15.970 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 78303f70-8e6a-48a1-b648-f440b6cab2e6 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.359) 0:00:16.330 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.029) 0:00:16.359 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 78303f70-8e6a-48a1-b648-f440b6cab2e6" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.028) 0:00:16.388 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 78303f70-8e6a-48a1-b648-f440b6cab2e6\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 78303f70-8e6a-48a1-b648-f440b6cab2e6" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.028) 0:00:16.417 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:42:32 +0000 (0:00:00.026) 0:00:16.443 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.200) 0:00:16.643 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 78303f70-8e6a-48a1-b648-f440b6cab2e6\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 78303f70-8e6a-48a1-b648-f440b6cab2e6" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.037) 0:00:16.680 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.080) 0:00:16.761 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.045) 0:00:16.807 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.203) 0:00:17.011 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.030) 0:00:17.041 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.048) 0:00:17.089 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.028) 0:00:17.118 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369752.6582477, "block_size": 4096, "blocks": 8, "ctime": 1701369752.6582477, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798132, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701369752.6582477, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 220, "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: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.205) 0:00:17.323 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.030) 0:00:17.353 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020764", "end": "2023-11-30 18:42:33.919885", "rc": 0, "start": "2023-11-30 18:42:33.899121" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.227) 0:00:17.581 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:42:33 +0000 (0:00:00.033) 0:00:17.614 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.031) 0:00:17.646 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.036) 0:00:17.682 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.068) 0:00:17.751 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.032) 0:00:17.784 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.047) 0:00:17.831 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.032) 0:00:17.863 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.029) 0:00:17.893 ***** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.025) 0:00:17.918 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.028) 0:00:17.947 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.051) 0:00:17.999 ***** fatal: [sut]: 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.040566", "end": "2023-11-30 18:42:34.581205", "rc": 1, "start": "2023-11-30 18:42:34.540639" } STDOUT: Connection 'statebr' (78303f70-8e6a-48a1-b648-f440b6cab2e6) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:65 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.241) 0:00:18.240 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.052) 0:00:18.292 ***** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.027) 0:00:18.320 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can activate an existing profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (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: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.058) 0:00:18.378 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.043) 0:00:18.422 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:42:34 +0000 (0:00:00.073) 0:00:18.496 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003589", "end": "2023-11-30 18:42:35.048376", "rc": 0, "start": "2023-11-30 18:42:35.044787" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.213) 0:00:18.709 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.034) 0:00:18.743 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.031) 0:00:18.774 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.057) 0:00:18.832 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.051) 0:00:18.884 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.074) 0:00:18.958 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.041) 0:00:19.000 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.031) 0:00:19.031 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:42:35 +0000 (0:00:00.031) 0:00:19.063 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:42:38 +0000 (0:00:02.750) 0:00:21.814 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:42:39 +0000 (0:00:01.254) 0:00:23.068 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:42:39 +0000 (0:00:00.049) 0:00:23.117 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:42:39 +0000 (0:00:00.028) 0:00:23.146 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:42:39 +0000 (0:00:00.027) 0:00:23.174 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:42:39 +0000 (0:00:00.056) 0:00:23.230 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:42:39 +0000 (0:00:00.030) 0:00:23.260 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:42:39 +0000 (0:00:00.028) 0:00:23.289 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:42:39 +0000 (0:00:00.033) 0:00:23.323 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.366) 0:00:23.690 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.031) 0:00:23.721 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.026) 0:00:23.748 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.034) 0:00:23.783 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.434) 0:00:24.217 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.033) 0:00:24.250 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.056) 0:00:24.306 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.028) 0:00:24.334 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.026) 0:00:24.361 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.212) 0:00:24.573 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 18:42:40 +0000 (0:00:00.030) 0:00:24.604 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 18:42:41 +0000 (0:00:00.057) 0:00:24.661 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:42:41 +0000 (0:00:00.055) 0:00:24.716 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:42:41 +0000 (0:00:00.053) 0:00:24.770 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:42:41 +0000 (0:00:00.035) 0:00:24.806 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:42:41 +0000 (0:00:00.027) 0:00:24.833 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:42:41 +0000 (0:00:00.029) 0:00:24.862 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:42:43 +0000 (0:00:01.770) 0:00:26.633 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:42:44 +0000 (0:00:01.265) 0:00:27.898 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.033) 0:00:27.932 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.033) 0:00:27.965 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.059) 0:00:28.025 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.062) 0:00:28.087 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.036) 0:00:28.123 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.030) 0:00:28.154 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.033) 0:00:28.188 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.379) 0:00:28.567 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:42:44 +0000 (0:00:00.044) 0:00:28.611 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.029) 0:00:28.641 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.030) 0:00:28.672 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.354) 0:00:29.026 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.027) 0:00:29.053 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.030) 0:00:29.084 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4611ac03-ccaf-41c7-b98c-48f554b22e7b skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.029) 0:00:29.113 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.055) 0:00:29.168 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.204) 0:00:29.373 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.058) 0:00:29.432 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:42:45 +0000 (0:00:00.049) 0:00:29.481 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369760.4946733, "block_size": 4096, "blocks": 0, "ctime": 1701369760.4946733, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38513, "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": 1701369760.4946733, "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 the interface is present - 'statebr'] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.206) 0:00:29.687 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.031) 0:00:29.718 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.049) 0:00:29.767 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.026) 0:00:29.793 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369760.5712383, "block_size": 4096, "blocks": 8, "ctime": 1701369760.4932384, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798132, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701369760.4932384, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 221, "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: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.203) 0:00:29.997 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.027) 0:00:30.024 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021965", "end": "2023-11-30 18:42:46.594947", "rc": 0, "start": "2023-11-30 18:42:46.572982" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.229) 0:00:30.254 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.061) 0:00:30.315 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.035) 0:00:30.351 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.030) 0:00:30.382 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.035) 0:00:30.417 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.031) 0:00:30.448 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.029) 0:00:30.478 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.033) 0:00:30.512 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.029) 0:00:30.541 ***** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.024) 0:00:30.565 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 18:42:46 +0000 (0:00:00.031) 0:00:30.596 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.050) 0:00:30.646 ***** fatal: [sut]: 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.070034", "end": "2023-11-30 18:42:47.264620", "rc": 1, "start": "2023-11-30 18:42:47.194586" } STDOUT: Connection 'statebr' (4611ac03-ccaf-41c7-b98c-48f554b22e7b) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:83 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.275) 0:00:30.922 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can remove an existing profile without taking it down] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.048) 0:00:30.970 ***** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.054) 0:00:31.024 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can remove an existing profile without taking it down" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_absent.yml" ] } ok: [sut] => (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: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.064) 0:00:31.089 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.046) 0:00:31.135 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.042) 0:00:31.178 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003686", "end": "2023-11-30 18:42:47.731555", "rc": 0, "start": "2023-11-30 18:42:47.727869" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.213) 0:00:31.391 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.030) 0:00:31.421 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.029) 0:00:31.450 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.056) 0:00:31.506 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.048) 0:00:31.555 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:42:47 +0000 (0:00:00.054) 0:00:31.609 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:42:48 +0000 (0:00:00.079) 0:00:31.689 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:42:48 +0000 (0:00:00.029) 0:00:31.718 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:42:48 +0000 (0:00:00.029) 0:00:31.747 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:42:49 +0000 (0:00:01.739) 0:00:33.487 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:42:51 +0000 (0:00:01.306) 0:00:34.794 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.031) 0:00:34.825 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.032) 0:00:34.858 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.034) 0:00:34.893 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.064) 0:00:34.958 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.034) 0:00:34.992 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.028) 0:00:35.021 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.034) 0:00:35.055 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.370) 0:00:35.426 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.032) 0:00:35.458 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.041) 0:00:35.500 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:42:51 +0000 (0:00:00.040) 0:00:35.540 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.414) 0:00:35.955 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.063) 0:00:36.019 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.029) 0:00:36.048 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.028) 0:00:36.077 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.026) 0:00:36.103 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.204) 0:00:36.307 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.029) 0:00:36.337 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.048) 0:00:36.385 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.072) 0:00:36.457 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.043) 0:00:36.501 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.033) 0:00:36.535 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:42:52 +0000 (0:00:00.035) 0:00:36.570 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:42:54 +0000 (0:00:01.718) 0:00:38.289 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:42:55 +0000 (0:00:01.262) 0:00:39.552 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:42:55 +0000 (0:00:00.031) 0:00:39.584 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:42:55 +0000 (0:00:00.028) 0:00:39.612 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.028) 0:00:39.641 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.083) 0:00:39.724 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.027) 0:00:39.751 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.026) 0:00:39.778 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.030) 0:00:39.808 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.368) 0:00:40.176 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.032) 0:00:40.209 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.025) 0:00:40.234 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.026) 0:00:40.261 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:42:56 +0000 (0:00:00.348) 0:00:40.610 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.026) 0:00:40.636 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.027) 0:00:40.664 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b1404211-f377-4f80-9d57-1d7ceafcd61d skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.027) 0:00:40.691 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.026) 0:00:40.718 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.224) 0:00:40.942 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove_profile.yml:3 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.048) 0:00:40.991 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.048) 0:00:41.039 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.056) 0:00:41.095 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.033) 0:00:41.129 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.026) 0:00:41.155 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:42:57 +0000 (0:00:00.025) 0:00:41.181 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:42:59 +0000 (0:00:01.760) 0:00:42.942 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:00 +0000 (0:00:01.276) 0:00:44.218 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:00 +0000 (0:00:00.030) 0:00:44.249 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:00 +0000 (0:00:00.030) 0:00:44.279 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:00 +0000 (0:00:00.030) 0:00:44.310 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:00 +0000 (0:00:00.066) 0:00:44.377 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:00 +0000 (0:00:00.037) 0:00:44.414 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:00 +0000 (0:00:00.057) 0:00:44.472 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:00 +0000 (0:00:00.031) 0:00:44.503 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.369) 0:00:44.873 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.033) 0:00:44.907 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.028) 0:00:44.936 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.031) 0:00:44.968 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.393) 0:00:45.361 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.028) 0:00:45.390 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.035) 0:00:45.425 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.029) 0:00:45.454 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:01 +0000 (0:00:00.034) 0:00:45.489 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.208) 0:00:45.697 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.083) 0:00:45.781 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.048) 0:00:45.830 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369772.2376978, "block_size": 4096, "blocks": 0, "ctime": 1701369772.2376978, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38644, "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": 1701369772.2376978, "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 the interface is present - 'statebr'] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.221) 0:00:46.051 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.032) 0:00:46.083 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.049) 0:00:46.132 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.027) 0:00:46.160 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.204) 0:00:46.364 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:43:02 +0000 (0:00:00.035) 0:00:46.400 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.021838", "end": "2023-11-30 18:43:02.969106", "rc": 1, "start": "2023-11-30 18:43:02.947268" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.227) 0:00:46.627 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.031) 0:00:46.658 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.027) 0:00:46.685 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.026) 0:00:46.712 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.054) 0:00:46.767 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.028) 0:00:46.795 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.030) 0:00:46.826 ***** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.037) 0:00:46.864 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.040) 0:00:46.904 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.062) 0:00:46.967 ***** fatal: [sut]: 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.083144", "end": "2023-11-30 18:43:03.602225", "rc": 1, "start": "2023-11-30 18:43:03.519081" } STDOUT: Connection 'statebr' (b1404211-f377-4f80-9d57-1d7ceafcd61d) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:103 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.294) 0:00:47.261 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.047) 0:00:47.309 ***** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.026) 0:00:47.335 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can take a profile down that is absent" } ok: [sut] => (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: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_absent.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.055) 0:00:47.391 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.045) 0:00:47.436 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:43:03 +0000 (0:00:00.069) 0:00:47.505 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003851", "end": "2023-11-30 18:43:04.058117", "rc": 0, "start": "2023-11-30 18:43:04.054266" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.211) 0:00:47.717 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.028) 0:00:47.745 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.026) 0:00:47.772 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.057) 0:00:47.830 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.045) 0:00:47.875 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.050) 0:00:47.926 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.035) 0:00:47.961 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.027) 0:00:47.989 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:04 +0000 (0:00:00.027) 0:00:48.016 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:06 +0000 (0:00:01.751) 0:00:49.768 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:07 +0000 (0:00:01.261) 0:00:51.029 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:07 +0000 (0:00:00.030) 0:00:51.059 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:07 +0000 (0:00:00.031) 0:00:51.091 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:07 +0000 (0:00:00.028) 0:00:51.119 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:07 +0000 (0:00:00.106) 0:00:51.226 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:07 +0000 (0:00:00.030) 0:00:51.257 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:07 +0000 (0:00:00.031) 0:00:51.288 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:07 +0000 (0:00:00.037) 0:00:51.326 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.377) 0:00:51.704 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.037) 0:00:51.742 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.040) 0:00:51.782 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.034) 0:00:51.816 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.440) 0:00:52.257 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.029) 0:00:52.287 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.031) 0:00:52.318 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.030) 0:00:52.349 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.040) 0:00:52.389 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 18:43:08 +0000 (0:00:00.209) 0:00:52.599 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 18:43:09 +0000 (0:00:00.035) 0:00:52.635 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:09 +0000 (0:00:00.046) 0:00:52.682 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:09 +0000 (0:00:00.050) 0:00:52.732 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:09 +0000 (0:00:00.033) 0:00:52.765 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:09 +0000 (0:00:00.025) 0:00:52.791 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:09 +0000 (0:00:00.025) 0:00:52.817 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:10 +0000 (0:00:01.790) 0:00:54.607 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:12 +0000 (0:00:01.262) 0:00:55.870 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.033) 0:00:55.903 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.038) 0:00:55.942 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.026) 0:00:55.968 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.057) 0:00:56.026 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.035) 0:00:56.061 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.029) 0:00:56.091 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.062) 0:00:56.153 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.367) 0:00:56.520 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.032) 0:00:56.553 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.026) 0:00:56.579 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:12 +0000 (0:00:00.025) 0:00:56.605 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.344) 0:00:56.950 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.028) 0:00:56.978 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.029) 0:00:57.007 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e7066c84-1480-4d46-9555-4c4f5f6e9aba skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.029) 0:00:57.037 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.027) 0:00:57.064 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove_profile.yml:3 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.198) 0:00:57.263 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.044) 0:00:57.307 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.084) 0:00:57.392 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.037) 0:00:57.429 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.037) 0:00:57.466 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:13 +0000 (0:00:00.028) 0:00:57.495 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:15 +0000 (0:00:01.722) 0:00:59.218 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:16 +0000 (0:00:01.274) 0:01:00.492 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:16 +0000 (0:00:00.028) 0:01:00.521 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:16 +0000 (0:00:00.029) 0:01:00.550 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:16 +0000 (0:00:00.027) 0:01:00.578 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.056) 0:01:00.634 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.028) 0:01:00.663 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.028) 0:01:00.691 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.032) 0:01:00.723 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.366) 0:01:01.090 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.031) 0:01:01.121 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.025) 0:01:01.146 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.050) 0:01:01.197 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.369) 0:01:01.566 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.026) 0:01:01.592 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:17 +0000 (0:00:00.029) 0:01:01.621 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.029) 0:01:01.651 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.026) 0:01:01.677 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.203) 0:01:01.880 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.052) 0:01:01.933 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.053) 0:01:01.987 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.052) 0:01:02.040 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.034) 0:01:02.074 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.062) 0:01:02.136 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:18 +0000 (0:00:00.030) 0:01:02.167 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:20 +0000 (0:00:01.757) 0:01:03.925 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:21 +0000 (0:00:01.323) 0:01:05.248 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:21 +0000 (0:00:00.045) 0:01:05.293 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:21 +0000 (0:00:00.045) 0:01:05.339 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:21 +0000 (0:00:00.034) 0:01:05.373 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:21 +0000 (0:00:00.073) 0:01:05.447 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:21 +0000 (0:00:00.030) 0:01:05.477 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:21 +0000 (0:00:00.042) 0:01:05.520 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:21 +0000 (0:00:00.044) 0:01:05.564 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:22 +0000 (0:00:00.387) 0:01:05.952 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:22 +0000 (0:00:00.046) 0:01:05.998 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:22 +0000 (0:00:00.030) 0:01:06.028 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:22 +0000 (0:00:00.038) 0:01:06.067 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:22 +0000 (0:00:00.442) 0:01:06.509 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:22 +0000 (0:00:00.071) 0:01:06.581 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:22 +0000 (0:00:00.031) 0:01:06.612 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.032) 0:01:06.645 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.030) 0:01:06.676 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.206) 0:01:06.882 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.058) 0:01:06.940 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.063) 0:01:07.004 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.030) 0:01:07.034 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.209) 0:01:07.244 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.031) 0:01:07.275 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019661", "end": "2023-11-30 18:43:23.843073", "rc": 1, "start": "2023-11-30 18:43:23.823412" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.226) 0:01:07.502 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.039) 0:01:07.542 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:43:23 +0000 (0:00:00.033) 0:01:07.575 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.100) 0:01:07.676 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.035) 0:01:07.711 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.033) 0:01:07.744 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.033) 0:01:07.778 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.065) 0:01:07.843 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.050) 0:01:07.893 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.213) 0:01:08.107 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can take a profile down that is absent'] ************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.038) 0:01:08.145 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.032) 0:01:08.177 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.065) 0:01:08.243 ***** fatal: [sut]: 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.041853", "end": "2023-11-30 18:43:24.835498", "rc": 1, "start": "2023-11-30 18:43:24.793645" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tests_states.yml:126 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.252) 0:01:08.495 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I will not get an error when I try to remove an absent profile] **** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.094) 0:01:08.589 ***** ok: [sut] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 18:43:24 +0000 (0:00:00.031) 0:01:08.621 ***** ok: [sut] => (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: [sut] => (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: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml", "tasks/get_NetworkManager_NVR.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_absent.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.075) 0:01:08.697 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.053) 0:01:08.750 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.056) 0:01:08.807 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003587", "end": "2023-11-30 18:43:25.360532", "rc": 0, "start": "2023-11-30 18:43:25.356945" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.215) 0:01:09.022 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.032) 0:01:09.055 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.032) 0:01:09.088 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.065) 0:01:09.153 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.050) 0:01:09.204 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.112) 0:01:09.316 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.037) 0:01:09.354 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.029) 0:01:09.384 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:25 +0000 (0:00:00.030) 0:01:09.414 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:27 +0000 (0:00:01.776) 0:01:11.190 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:28 +0000 (0:00:01.262) 0:01:12.453 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:28 +0000 (0:00:00.028) 0:01:12.481 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:28 +0000 (0:00:00.028) 0:01:12.510 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:28 +0000 (0:00:00.028) 0:01:12.538 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:28 +0000 (0:00:00.058) 0:01:12.597 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:28 +0000 (0:00:00.027) 0:01:12.624 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.026) 0:01:12.651 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.031) 0:01:12.682 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.365) 0:01:13.048 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.033) 0:01:13.081 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.027) 0:01:13.108 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.052) 0:01:13.161 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.401) 0:01:13.562 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.029) 0:01:13.591 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:29 +0000 (0:00:00.030) 0:01:13.622 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.036) 0:01:13.659 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.027) 0:01:13.686 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.207) 0:01:13.894 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/activate_profile.yml:3 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.032) 0:01:13.926 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.049) 0:01:13.975 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.052) 0:01:14.028 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.035) 0:01:14.064 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.035) 0:01:14.100 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:30 +0000 (0:00:00.075) 0:01:14.175 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:32 +0000 (0:00:01.723) 0:01:15.898 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:33 +0000 (0:00:01.262) 0:01:17.161 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:33 +0000 (0:00:00.035) 0:01:17.197 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:33 +0000 (0:00:00.049) 0:01:17.246 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:33 +0000 (0:00:00.027) 0:01:17.274 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:33 +0000 (0:00:00.058) 0:01:17.332 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:33 +0000 (0:00:00.027) 0:01:17.359 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:33 +0000 (0:00:00.027) 0:01:17.386 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:33 +0000 (0:00:00.032) 0:01:17.419 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.363) 0:01:17.783 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.033) 0:01:17.816 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.027) 0:01:17.843 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.025) 0:01:17.869 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.347) 0:01:18.216 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.027) 0:01:18.243 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.029) 0:01:18.273 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 0c0f9da3-acb0-4ebc-aabc-8b1568c140ec skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.062) 0:01:18.335 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.027) 0:01:18.362 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.195) 0:01:18.557 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:34 +0000 (0:00:00.045) 0:01:18.603 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:35 +0000 (0:00:00.061) 0:01:18.665 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:35 +0000 (0:00:00.034) 0:01:18.699 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:35 +0000 (0:00:00.027) 0:01:18.726 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:35 +0000 (0:00:00.026) 0:01:18.752 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:36 +0000 (0:00:01.719) 0:01:20.472 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:38 +0000 (0:00:01.258) 0:01:21.730 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.029) 0:01:21.759 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.026) 0:01:21.786 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.027) 0:01:21.813 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.062) 0:01:21.875 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.030) 0:01:21.905 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.030) 0:01:21.935 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.064) 0:01:21.999 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.368) 0:01:22.368 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.032) 0:01:22.400 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.027) 0:01:22.427 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:38 +0000 (0:00:00.038) 0:01:22.466 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.424) 0:01:22.890 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.027) 0:01:22.918 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.029) 0:01:22.948 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.027) 0:01:22.975 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.025) 0:01:23.001 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.199) 0:01:23.200 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.079) 0:01:23.280 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.045) 0:01:23.325 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.051) 0:01:23.377 ***** skipping: [sut] => { "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 if system is ostree] ****************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.033) 0:01:23.410 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.026) 0:01:23.437 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 18:43:39 +0000 (0:00:00.026) 0:01:23.463 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 18:43:41 +0000 (0:00:01.724) 0:01:25.187 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 18:43:42 +0000 (0:00:01.280) 0:01:26.468 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 18:43:42 +0000 (0:00:00.027) 0:01:26.496 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 18:43:42 +0000 (0:00:00.026) 0:01:26.522 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 18:43:42 +0000 (0:00:00.026) 0:01:26.549 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 18:43:42 +0000 (0:00:00.055) 0:01:26.604 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.027) 0:01:26.631 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.027) 0:01:26.659 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.031) 0:01:26.690 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.389) 0:01:27.080 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.034) 0:01:27.115 ***** skipping: [sut] => { "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: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.028) 0:01:27.143 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.029) 0:01:27.173 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.373) 0:01:27.547 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.029) 0:01:27.576 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 18:43:43 +0000 (0:00:00.030) 0:01:27.606 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.030) 0:01:27.636 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.032) 0:01:27.669 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.215) 0:01:27.884 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.055) 0:01:27.940 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.051) 0:01:27.991 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.062) 0:01:28.053 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.202) 0:01:28.255 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.025) 0:01:28.281 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020527", "end": "2023-11-30 18:43:44.847622", "rc": 1, "start": "2023-11-30 18:43:44.827095" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.224) 0:01:28.506 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.029) 0:01:28.535 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.030) 0:01:28.566 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.029) 0:01:28.595 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 18:43:44 +0000 (0:00:00.028) 0:01:28.623 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 30 November 2023 18:43:45 +0000 (0:00:00.029) 0:01:28.653 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Thursday 30 November 2023 18:43:45 +0000 (0:00:00.031) 0:01:28.684 ***** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.881767", "end": "2023-11-30 18:43:46.114013", "rc": 0, "start": "2023-11-30 18:43:45.232246" } STDOUT: NetworkManager-1.40.16-9.el8 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Thursday 30 November 2023 18:43:46 +0000 (0:00:01.089) 0:01:29.773 ***** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.40.16-9.el8" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.056) 0:01:29.830 ***** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.40.16-9.el8" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.028) 0:01:29.858 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.057) 0:01:29.916 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.048) 0:01:29.964 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.210) 0:01:30.174 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.030) 0:01:30.205 ***** ok: [sut] => {} MSG: +++++ Success in test 'I will not get an error when I try to remove an absent profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.027) 0:01:30.232 ***** included: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorib16hxy9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.052) 0:01:30.284 ***** fatal: [sut]: 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.040536", "end": "2023-11-30 18:43:46.869715", "rc": 1, "start": "2023-11-30 18:43:46.829179" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=321 changed=10 unreachable=0 failed=0 skipped=247 rescued=0 ignored=11 Thursday 30 November 2023 18:43:46 +0000 (0:00:00.226) 0:01:30.511 ***** =============================================================================== linux-system-roles.network : Check which services are running ----------- 2.75s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Configure networking connection profiles --- 2.27s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable and start NetworkManager ------------ 2.07s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which services are running ----------- 1.79s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.79s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.78s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.77s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.76s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.76s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.76s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.75s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.74s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.72s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.72s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.72s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.72s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.72s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Enable and start NetworkManager ------------ 1.48s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which packages are installed --------- 1.45s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Configure networking connection profiles --- 1.39s /WORKDIR/git-code_refactorib16hxy9/tests/roles/linux-system-roles.network/tasks/main.yml:122 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. [WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---