# 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-route_typecoqmfxkp/tests/tests_states_nm.yml PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/tests_states_nm.yml:6 Monday 08 January 2024 14:17:18 +0000 (0:00:00.012) 0:00:00.012 ******** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/tests_states_nm.yml:9 Monday 08 January 2024 14:17:19 +0000 (0:00:00.668) 0:00:00.681 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/tasks/el_repo_setup.yml:3 Monday 08 January 2024 14:17:19 +0000 (0:00:00.035) 0:00:00.716 ******** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/el_repo_setup.yml:19 Monday 08 January 2024 14:17:19 +0000 (0:00:00.348) 0:00:01.064 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/el_repo_setup.yml:24 Monday 08 January 2024 14:17:19 +0000 (0:00:00.257) 0:00:01.322 ******** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/el_repo_setup.yml:28 Monday 08 January 2024 14:17:19 +0000 (0:00:00.043) 0:00:01.365 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/el_repo_setup.yml:53 Monday 08 January 2024 14:17:19 +0000 (0:00:00.021) 0:00:01.387 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/enable_epel.yml:8 Monday 08 January 2024 14:17:20 +0000 (0:00:00.041) 0:00:01.428 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/enable_epel.yml:24 Monday 08 January 2024 14:17:20 +0000 (0:00:00.021) 0:00:01.450 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/enable_epel.yml:30 Monday 08 January 2024 14:17:20 +0000 (0:00:00.024) 0:00:01.475 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/enable_epel.yml:35 Monday 08 January 2024 14:17:20 +0000 (0:00:00.009) 0:00:01.485 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tasks/enable_epel.yml:40 Monday 08 January 2024 14:17:20 +0000 (0:00:00.010) 0:00:01.495 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/tests_states_nm.yml:11 Monday 08 January 2024 14:17:20 +0000 (0:00:00.010) 0:00:01.505 ******** 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-route_typecoqmfxkp/tests/playbooks/tests_states.yml:3 Monday 08 January 2024 14:17:20 +0000 (0:00:00.010) 0:00:01.516 ******** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tests_states.yml:11 Monday 08 January 2024 14:17:20 +0000 (0:00:00.490) 0:00:02.007 ******** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tests_states.yml:22 Monday 08 January 2024 14:17:20 +0000 (0:00:00.011) 0:00:02.018 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:17:20 +0000 (0:00:00.016) 0:00:02.035 ******** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:17:20 +0000 (0:00:00.013) 0:00:02.048 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:17:20 +0000 (0:00:00.062) 0:00:02.111 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:17:20 +0000 (0:00:00.015) 0:00:02.126 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:17:20 +0000 (0:00:00.015) 0:00:02.141 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003158", "end": "2024-01-08 14:17:20.935419", "rc": 0, "start": "2024-01-08 14:17:20.932261" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:17:20 +0000 (0:00:00.229) 0:00:02.370 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:17:20 +0000 (0:00:00.011) 0:00:02.382 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:17:20 +0000 (0:00:00.010) 0:00:02.392 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/delete_interface.yml:3 Monday 08 January 2024 14:17:20 +0000 (0:00:00.019) 0:00:02.412 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.007232", "end": "2024-01-08 14:17:21.162250", "rc": 1, "start": "2024-01-08 14:17:21.155018" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:17:21 +0000 (0:00:00.189) 0:00:02.601 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:17:21 +0000 (0:00:00.017) 0:00:02.619 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:17:21 +0000 (0:00:00.179) 0:00:02.798 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:17:21 +0000 (0:00:00.012) 0:00:02.810 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:17:21 +0000 (0:00:00.017) 0:00:02.828 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:17:21 +0000 (0:00:00.031) 0:00:02.859 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:17:21 +0000 (0:00:00.067) 0:00:02.927 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:17:21 +0000 (0:00:00.012) 0:00:02.939 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:17:21 +0000 (0:00:00.015) 0:00:02.955 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:17:21 +0000 (0:00:00.019) 0:00:02.974 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:17:23 +0000 (0:00:01.522) 0:00:04.497 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:17:24 +0000 (0:00:01.280) 0:00:05.778 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:17:24 +0000 (0:00:00.055) 0:00:05.833 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:17:24 +0000 (0:00:00.036) 0:00:05.870 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:17:24 +0000 (0:00:00.048) 0:00:05.919 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:17:24 +0000 (0:00:00.054) 0:00:05.973 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:17:24 +0000 (0:00:00.039) 0:00:06.013 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:17:24 +0000 (0:00:00.034) 0:00:06.048 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:17:24 +0000 (0:00:00.051) 0:00:06.099 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:17:25 +0000 (0:00:00.602) 0:00:06.702 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:17:25 +0000 (0:00:00.028) 0:00:06.730 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:17:25 +0000 (0:00:00.020) 0:00:06.751 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:17:25 +0000 (0:00:00.032) 0:00:06.784 ******** 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, 5a18cecc-8bb2-4941-84e5-dbfbb9dd5e47 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:17:26 +0000 (0:00:00.636) 0:00:07.421 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:17:26 +0000 (0:00:00.066) 0:00:07.487 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5a18cecc-8bb2-4941-84e5-dbfbb9dd5e47" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:17:26 +0000 (0:00:00.028) 0:00:07.516 ******** 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, 5a18cecc-8bb2-4941-84e5-dbfbb9dd5e47\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5a18cecc-8bb2-4941-84e5-dbfbb9dd5e47" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:17:26 +0000 (0:00:00.022) 0:00:07.539 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:17:26 +0000 (0:00:00.020) 0:00:07.560 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:17:26 +0000 (0:00:00.298) 0:00:07.858 ******** 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, 5a18cecc-8bb2-4941-84e5-dbfbb9dd5e47\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5a18cecc-8bb2-4941-84e5-dbfbb9dd5e47" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:17:26 +0000 (0:00:00.025) 0:00:07.884 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:17:26 +0000 (0:00:00.047) 0:00:07.931 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:17:26 +0000 (0:00:00.047) 0:00:07.979 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:17:26 +0000 (0:00:00.024) 0:00:08.004 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:17:26 +0000 (0:00:00.248) 0:00:08.252 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:17:26 +0000 (0:00:00.032) 0:00:08.285 ******** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019983", "end": "2024-01-08 14:17:27.056695", "rc": 0, "start": "2024-01-08 14:17:27.036712" } STDOUT: statebr /etc/NetworkManager/system-connections/statebr.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:17:27 +0000 (0:00:00.227) 0:00:08.513 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:17:27 +0000 (0:00:00.034) 0:00:08.548 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:17:27 +0000 (0:00:00.033) 0:00:08.581 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:17:27 +0000 (0:00:00.070) 0:00:08.652 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:17:27 +0000 (0:00:00.025) 0:00:08.678 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:17:27 +0000 (0:00:00.032) 0:00:08.710 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:17:27 +0000 (0:00:00.048) 0:00:08.759 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:17:27 +0000 (0:00:00.040) 0:00:08.800 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:17:27 +0000 (0:00:00.030) 0:00:08.830 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:17:27 +0000 (0:00:00.066) 0:00:08.896 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:17:27 +0000 (0:00:00.037) 0:00:08.934 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704723445.9109464, "block_size": 4096, "blocks": 0, "ctime": 1704723445.9109464, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28994, "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": 1704723445.9109464, "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-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:17:27 +0000 (0:00:00.231) 0:00:09.166 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:17:27 +0000 (0:00:00.030) 0:00:09.196 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:17:27 +0000 (0:00:00.032) 0:00:09.229 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:17:27 +0000 (0:00:00.048) 0:00:09.277 ******** 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.054688", "end": "2024-01-08 14:17:28.084147", "rc": 1, "start": "2024-01-08 14:17:28.029459" } STDOUT: Connection 'statebr' (5a18cecc-8bb2-4941-84e5-dbfbb9dd5e47) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tests_states.yml:45 Monday 08 January 2024 14:17:28 +0000 (0:00:00.297) 0:00:09.575 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:17:28 +0000 (0:00:00.041) 0:00:09.617 ******** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:17:28 +0000 (0:00:00.022) 0:00:09.639 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:17:28 +0000 (0:00:00.043) 0:00:09.683 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:17:28 +0000 (0:00:00.034) 0:00:09.718 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:17:28 +0000 (0:00:00.034) 0:00:09.752 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003148", "end": "2024-01-08 14:17:28.500359", "rc": 0, "start": "2024-01-08 14:17:28.497211" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:17:28 +0000 (0:00:00.194) 0:00:09.946 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:17:28 +0000 (0:00:00.022) 0:00:09.969 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:17:28 +0000 (0:00:00.023) 0:00:09.992 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/delete_interface.yml:3 Monday 08 January 2024 14:17:28 +0000 (0:00:00.048) 0:00:10.040 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.005854", "end": "2024-01-08 14:17:28.796221", "rc": 1, "start": "2024-01-08 14:17:28.790367" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:17:28 +0000 (0:00:00.221) 0:00:10.262 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:17:28 +0000 (0:00:00.036) 0:00:10.299 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:17:29 +0000 (0:00:00.207) 0:00:10.506 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:17:29 +0000 (0:00:00.025) 0:00:10.532 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Monday 08 January 2024 14:17:29 +0000 (0:00:00.099) 0:00:10.631 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:17:29 +0000 (0:00:00.086) 0:00:10.717 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:17:29 +0000 (0:00:00.063) 0:00:10.781 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:17:29 +0000 (0:00:00.048) 0:00:10.829 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:17:29 +0000 (0:00:00.038) 0:00:10.868 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:17:29 +0000 (0:00:00.024) 0:00:10.892 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:17:30 +0000 (0:00:01.428) 0:00:12.321 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:17:31 +0000 (0:00:00.917) 0:00:13.238 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:17:31 +0000 (0:00:00.023) 0:00:13.261 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:17:31 +0000 (0:00:00.029) 0:00:13.290 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:17:31 +0000 (0:00:00.021) 0:00:13.312 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:17:31 +0000 (0:00:00.043) 0:00:13.356 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:17:31 +0000 (0:00:00.027) 0:00:13.383 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:17:32 +0000 (0:00:00.036) 0:00:13.420 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:17:32 +0000 (0:00:00.032) 0:00:13.452 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:17:32 +0000 (0:00:00.352) 0:00:13.805 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:17:32 +0000 (0:00:00.024) 0:00:13.830 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:17:32 +0000 (0:00:00.044) 0:00:13.874 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:17:32 +0000 (0:00:00.021) 0:00:13.895 ******** 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, 4dd7151a-7028-404a-b64d-330e13f78f7c TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:17:32 +0000 (0:00:00.348) 0:00:14.244 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:17:32 +0000 (0:00:00.022) 0:00:14.267 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4dd7151a-7028-404a-b64d-330e13f78f7c" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:17:32 +0000 (0:00:00.023) 0:00:14.290 ******** 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, 4dd7151a-7028-404a-b64d-330e13f78f7c\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4dd7151a-7028-404a-b64d-330e13f78f7c" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:17:32 +0000 (0:00:00.025) 0:00:14.315 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:17:32 +0000 (0:00:00.022) 0:00:14.338 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Monday 08 January 2024 14:17:33 +0000 (0:00:00.214) 0:00:14.552 ******** 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, 4dd7151a-7028-404a-b64d-330e13f78f7c\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4dd7151a-7028-404a-b64d-330e13f78f7c" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:17:33 +0000 (0:00:00.080) 0:00:14.632 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:17:33 +0000 (0:00:00.076) 0:00:14.709 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:17:33 +0000 (0:00:00.040) 0:00:14.749 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:17:33 +0000 (0:00:00.191) 0:00:14.941 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:17:33 +0000 (0:00:00.026) 0:00:14.967 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:17:33 +0000 (0:00:00.085) 0:00:15.053 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:17:33 +0000 (0:00:00.024) 0:00:15.078 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:17:33 +0000 (0:00:00.214) 0:00:15.292 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:17:33 +0000 (0:00:00.046) 0:00:15.338 ******** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019300", "end": "2024-01-08 14:17:34.125495", "rc": 0, "start": "2024-01-08 14:17:34.106195" } STDOUT: statebr /etc/NetworkManager/system-connections/statebr.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:17:34 +0000 (0:00:00.235) 0:00:15.574 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:17:34 +0000 (0:00:00.025) 0:00:15.600 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:17:34 +0000 (0:00:00.025) 0:00:15.625 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:17:34 +0000 (0:00:00.024) 0:00:15.650 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:17:34 +0000 (0:00:00.039) 0:00:15.689 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:17:34 +0000 (0:00:00.026) 0:00:15.715 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:17:34 +0000 (0:00:00.026) 0:00:15.742 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:17:34 +0000 (0:00:00.025) 0:00:15.767 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:17:34 +0000 (0:00:00.029) 0:00:15.797 ******** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:17:34 +0000 (0:00:00.022) 0:00:15.820 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:17:34 +0000 (0:00:00.023) 0:00:15.843 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:17:34 +0000 (0:00:00.070) 0:00:15.914 ******** 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.038274", "end": "2024-01-08 14:17:34.715085", "rc": 1, "start": "2024-01-08 14:17:34.676811" } STDOUT: Connection 'statebr' (4dd7151a-7028-404a-b64d-330e13f78f7c) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tests_states.yml:65 Monday 08 January 2024 14:17:34 +0000 (0:00:00.278) 0:00:16.192 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:17:34 +0000 (0:00:00.062) 0:00:16.254 ******** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:17:34 +0000 (0:00:00.031) 0:00:16.286 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:17:34 +0000 (0:00:00.055) 0:00:16.341 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:17:34 +0000 (0:00:00.041) 0:00:16.382 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:17:35 +0000 (0:00:00.038) 0:00:16.421 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003176", "end": "2024-01-08 14:17:35.186168", "rc": 0, "start": "2024-01-08 14:17:35.182992" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:17:35 +0000 (0:00:00.237) 0:00:16.659 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:17:35 +0000 (0:00:00.035) 0:00:16.694 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:17:35 +0000 (0:00:00.025) 0:00:16.720 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:17:35 +0000 (0:00:00.037) 0:00:16.757 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:17:35 +0000 (0:00:00.078) 0:00:16.836 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:17:35 +0000 (0:00:00.045) 0:00:16.881 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:17:35 +0000 (0:00:00.031) 0:00:16.913 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:17:35 +0000 (0:00:00.030) 0:00:16.944 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:17:35 +0000 (0:00:00.022) 0:00:16.967 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:17:36 +0000 (0:00:01.405) 0:00:18.372 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:17:37 +0000 (0:00:00.936) 0:00:19.309 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:17:37 +0000 (0:00:00.080) 0:00:19.390 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:17:37 +0000 (0:00:00.022) 0:00:19.412 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:17:38 +0000 (0:00:00.023) 0:00:19.435 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:17:38 +0000 (0:00:00.051) 0:00:19.487 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:17:38 +0000 (0:00:00.028) 0:00:19.515 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:17:38 +0000 (0:00:00.027) 0:00:19.543 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:17:38 +0000 (0:00:00.029) 0:00:19.573 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:17:38 +0000 (0:00:00.379) 0:00:19.952 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:17:38 +0000 (0:00:00.041) 0:00:19.994 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:17:38 +0000 (0:00:00.023) 0:00:20.018 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:17:38 +0000 (0:00:00.020) 0:00:20.039 ******** 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, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:17:39 +0000 (0:00:00.431) 0:00:20.470 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:17:39 +0000 (0:00:00.021) 0:00:20.491 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:17:39 +0000 (0:00:00.024) 0:00:20.515 ******** 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, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:17:39 +0000 (0:00:00.023) 0:00:20.539 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:17:39 +0000 (0:00:00.024) 0:00:20.563 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:17:39 +0000 (0:00:00.220) 0:00:20.784 ******** 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, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:17:39 +0000 (0:00:00.023) 0:00:20.807 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:17:39 +0000 (0:00:00.038) 0:00:20.846 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:17:39 +0000 (0:00:00.091) 0:00:20.937 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:17:39 +0000 (0:00:00.050) 0:00:20.987 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:17:39 +0000 (0:00:00.031) 0:00:21.019 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:17:39 +0000 (0:00:00.022) 0:00:21.042 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:17:39 +0000 (0:00:00.021) 0:00:21.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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:17:41 +0000 (0:00:01.508) 0:00:22.572 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:17:42 +0000 (0:00:00.975) 0:00:23.547 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:17:42 +0000 (0:00:00.029) 0:00:23.576 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:17:42 +0000 (0:00:00.051) 0:00:23.628 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:17:42 +0000 (0:00:00.038) 0:00:23.666 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:17:42 +0000 (0:00:00.071) 0:00:23.738 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:17:42 +0000 (0:00:00.036) 0:00:23.775 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:17:42 +0000 (0:00:00.050) 0:00:23.825 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:17:42 +0000 (0:00:00.038) 0:00:23.864 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:17:42 +0000 (0:00:00.392) 0:00:24.256 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:17:42 +0000 (0:00:00.035) 0:00:24.292 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:17:42 +0000 (0:00:00.040) 0:00:24.332 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:17:42 +0000 (0:00:00.072) 0:00:24.404 ******** 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, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:17:43 +0000 (0:00:00.356) 0:00:24.760 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:17:43 +0000 (0:00:00.023) 0:00:24.784 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:17:43 +0000 (0:00:00.022) 0:00:24.807 ******** 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, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4dcdac83-d8e9-4293-b270-a9fd1bca3f43 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:17:43 +0000 (0:00:00.023) 0:00:24.831 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:17:43 +0000 (0:00:00.021) 0:00:24.852 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:17:43 +0000 (0:00:00.184) 0:00:25.037 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:17:43 +0000 (0:00:00.042) 0:00:25.079 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:17:43 +0000 (0:00:00.034) 0:00:25.114 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704723458.9660316, "block_size": 4096, "blocks": 0, "ctime": 1704723458.9660316, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 29125, "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": 1704723458.9660316, "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-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:17:43 +0000 (0:00:00.200) 0:00:25.314 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:17:43 +0000 (0:00:00.046) 0:00:25.361 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:17:43 +0000 (0:00:00.038) 0:00:25.399 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:17:44 +0000 (0:00:00.022) 0:00:25.422 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:17:44 +0000 (0:00:00.198) 0:00:25.620 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:17:44 +0000 (0:00:00.022) 0:00:25.643 ******** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019867", "end": "2024-01-08 14:17:44.408001", "rc": 0, "start": "2024-01-08 14:17:44.388134" } STDOUT: statebr /etc/NetworkManager/system-connections/statebr.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:17:44 +0000 (0:00:00.219) 0:00:25.863 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:17:44 +0000 (0:00:00.027) 0:00:25.890 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:17:44 +0000 (0:00:00.033) 0:00:25.924 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:17:44 +0000 (0:00:00.038) 0:00:25.962 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:17:44 +0000 (0:00:00.048) 0:00:26.010 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:17:44 +0000 (0:00:00.023) 0:00:26.034 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:17:44 +0000 (0:00:00.025) 0:00:26.059 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:17:44 +0000 (0:00:00.029) 0:00:26.088 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:17:44 +0000 (0:00:00.080) 0:00:26.169 ******** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:17:44 +0000 (0:00:00.022) 0:00:26.192 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:17:44 +0000 (0:00:00.044) 0:00:26.237 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:17:44 +0000 (0:00:00.052) 0:00:26.289 ******** 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.063330", "end": "2024-01-08 14:17:45.129430", "rc": 1, "start": "2024-01-08 14:17:45.066100" } STDOUT: Connection 'statebr' (4dcdac83-d8e9-4293-b270-a9fd1bca3f43) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tests_states.yml:83 Monday 08 January 2024 14:17:45 +0000 (0:00:00.346) 0:00:26.636 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can remove an existing profile without taking it down] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:17:45 +0000 (0:00:00.042) 0:00:26.678 ******** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:17:45 +0000 (0:00:00.041) 0:00:26.719 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:17:45 +0000 (0:00:00.067) 0:00:26.787 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:17:45 +0000 (0:00:00.055) 0:00:26.843 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:17:45 +0000 (0:00:00.050) 0:00:26.894 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003214", "end": "2024-01-08 14:17:45.650337", "rc": 0, "start": "2024-01-08 14:17:45.647123" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:17:45 +0000 (0:00:00.207) 0:00:27.101 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:17:45 +0000 (0:00:00.036) 0:00:27.138 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:17:45 +0000 (0:00:00.044) 0:00:27.182 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:17:45 +0000 (0:00:00.052) 0:00:27.234 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:17:45 +0000 (0:00:00.047) 0:00:27.282 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:17:45 +0000 (0:00:00.104) 0:00:27.386 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:17:46 +0000 (0:00:00.044) 0:00:27.431 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:17:46 +0000 (0:00:00.034) 0:00:27.465 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:17:46 +0000 (0:00:00.022) 0:00:27.488 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:17:47 +0000 (0:00:01.398) 0:00:28.886 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:17:48 +0000 (0:00:00.907) 0:00:29.793 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:17:48 +0000 (0:00:00.046) 0:00:29.840 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:17:48 +0000 (0:00:00.023) 0:00:29.864 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:17:48 +0000 (0:00:00.023) 0:00:29.887 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:17:48 +0000 (0:00:00.049) 0:00:29.937 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:17:48 +0000 (0:00:00.029) 0:00:29.967 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:17:48 +0000 (0:00:00.027) 0:00:29.994 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:17:48 +0000 (0:00:00.035) 0:00:30.030 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:17:48 +0000 (0:00:00.369) 0:00:30.399 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:17:49 +0000 (0:00:00.029) 0:00:30.429 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:17:49 +0000 (0:00:00.023) 0:00:30.452 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:17:49 +0000 (0:00:00.035) 0:00:30.488 ******** 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, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:17:49 +0000 (0:00:00.455) 0:00:30.943 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:17:49 +0000 (0:00:00.021) 0:00:30.965 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:17:49 +0000 (0:00:00.022) 0:00:30.987 ******** 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, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:17:49 +0000 (0:00:00.023) 0:00:31.010 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:17:49 +0000 (0:00:00.026) 0:00:31.036 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:17:49 +0000 (0:00:00.215) 0:00:31.251 ******** 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, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:17:49 +0000 (0:00:00.034) 0:00:31.286 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:17:49 +0000 (0:00:00.049) 0:00:31.335 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:17:49 +0000 (0:00:00.046) 0:00:31.381 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:17:49 +0000 (0:00:00.027) 0:00:31.409 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:17:50 +0000 (0:00:00.022) 0:00:31.431 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:17:50 +0000 (0:00:00.031) 0:00:31.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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:17:51 +0000 (0:00:01.420) 0:00:32.884 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:17:52 +0000 (0:00:00.979) 0:00:33.863 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:17:52 +0000 (0:00:00.026) 0:00:33.889 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:17:52 +0000 (0:00:00.029) 0:00:33.919 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:17:52 +0000 (0:00:00.023) 0:00:33.942 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:17:52 +0000 (0:00:00.044) 0:00:33.987 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:17:52 +0000 (0:00:00.021) 0:00:34.008 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:17:52 +0000 (0:00:00.022) 0:00:34.031 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:17:52 +0000 (0:00:00.025) 0:00:34.056 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:17:52 +0000 (0:00:00.358) 0:00:34.415 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:17:53 +0000 (0:00:00.038) 0:00:34.454 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:17:53 +0000 (0:00:00.033) 0:00:34.487 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:17:53 +0000 (0:00:00.033) 0:00:34.520 ******** 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, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:17:53 +0000 (0:00:00.380) 0:00:34.901 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:17:53 +0000 (0:00:00.066) 0:00:34.967 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:17:53 +0000 (0:00:00.050) 0:00:35.017 ******** 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, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 1dfed3d4-57d9-4f51-84e8-84d54d690dc0 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:17:53 +0000 (0:00:00.022) 0:00:35.040 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:17:53 +0000 (0:00:00.022) 0:00:35.063 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:17:53 +0000 (0:00:00.186) 0:00:35.249 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove_profile.yml:3 Monday 08 January 2024 14:17:53 +0000 (0:00:00.041) 0:00:35.290 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:17:53 +0000 (0:00:00.051) 0:00:35.341 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:17:53 +0000 (0:00:00.042) 0:00:35.383 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:17:54 +0000 (0:00:00.048) 0:00:35.432 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:17:54 +0000 (0:00:00.022) 0:00:35.454 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:17:54 +0000 (0:00:00.024) 0:00:35.479 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:17:55 +0000 (0:00:01.418) 0:00:36.897 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:17:56 +0000 (0:00:00.962) 0:00:37.860 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:17:56 +0000 (0:00:00.033) 0:00:37.893 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:17:56 +0000 (0:00:00.025) 0:00:37.918 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:17:56 +0000 (0:00:00.031) 0:00:37.950 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:17:56 +0000 (0:00:00.050) 0:00:38.000 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:17:56 +0000 (0:00:00.035) 0:00:38.035 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:17:56 +0000 (0:00:00.040) 0:00:38.076 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:17:56 +0000 (0:00:00.052) 0:00:38.129 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:17:57 +0000 (0:00:00.385) 0:00:38.514 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:17:57 +0000 (0:00:00.037) 0:00:38.552 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:17:57 +0000 (0:00:00.023) 0:00:38.575 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:17:57 +0000 (0:00:00.032) 0:00:38.608 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:17:57 +0000 (0:00:00.383) 0:00:38.992 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:17:57 +0000 (0:00:00.031) 0:00:39.023 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:17:57 +0000 (0:00:00.033) 0:00:39.056 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:17:57 +0000 (0:00:00.042) 0:00:39.099 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:17:57 +0000 (0:00:00.056) 0:00:39.156 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:17:57 +0000 (0:00:00.253) 0:00:39.410 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:17:58 +0000 (0:00:00.058) 0:00:39.469 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:17:58 +0000 (0:00:00.059) 0:00:39.528 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704723469.4488788, "block_size": 4096, "blocks": 0, "ctime": 1704723469.4488788, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 29256, "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": 1704723469.4488788, "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-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:17:58 +0000 (0:00:00.225) 0:00:39.754 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:17:58 +0000 (0:00:00.072) 0:00:39.826 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:17:58 +0000 (0:00:00.038) 0:00:39.864 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:17:58 +0000 (0:00:00.026) 0:00:39.891 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:17:58 +0000 (0:00:00.222) 0:00:40.113 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:17:58 +0000 (0:00:00.027) 0:00:40.141 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019694", "end": "2024-01-08 14:17:58.909985", "rc": 1, "start": "2024-01-08 14:17:58.890291" } 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:17:58 +0000 (0:00:00.231) 0:00:40.372 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:17:59 +0000 (0:00:00.052) 0:00:40.425 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:17:59 +0000 (0:00:00.026) 0:00:40.451 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:17:59 +0000 (0:00:00.046) 0:00:40.498 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:17:59 +0000 (0:00:00.030) 0:00:40.528 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:17:59 +0000 (0:00:00.025) 0:00:40.554 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:17:59 +0000 (0:00:00.029) 0:00:40.583 ******** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:17:59 +0000 (0:00:00.021) 0:00:40.605 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:17:59 +0000 (0:00:00.025) 0:00:40.630 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:17:59 +0000 (0:00:00.047) 0:00:40.677 ******** 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.060044", "end": "2024-01-08 14:17:59.482312", "rc": 1, "start": "2024-01-08 14:17:59.422268" } STDOUT: Connection 'statebr' (1dfed3d4-57d9-4f51-84e8-84d54d690dc0) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tests_states.yml:103 Monday 08 January 2024 14:17:59 +0000 (0:00:00.276) 0:00:40.953 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:17:59 +0000 (0:00:00.039) 0:00:40.993 ******** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:17:59 +0000 (0:00:00.024) 0:00:41.018 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:17:59 +0000 (0:00:00.057) 0:00:41.075 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:17:59 +0000 (0:00:00.053) 0:00:41.129 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:17:59 +0000 (0:00:00.036) 0:00:41.165 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003176", "end": "2024-01-08 14:17:59.928117", "rc": 0, "start": "2024-01-08 14:17:59.924941" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:17:59 +0000 (0:00:00.216) 0:00:41.381 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:17:59 +0000 (0:00:00.025) 0:00:41.407 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:18:00 +0000 (0:00:00.022) 0:00:41.430 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:18:00 +0000 (0:00:00.046) 0:00:41.476 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:00 +0000 (0:00:00.038) 0:00:41.515 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:00 +0000 (0:00:00.079) 0:00:41.594 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:00 +0000 (0:00:00.033) 0:00:41.628 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:00 +0000 (0:00:00.025) 0:00:41.653 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:00 +0000 (0:00:00.022) 0:00:41.676 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:01 +0000 (0:00:01.434) 0:00:43.110 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:02 +0000 (0:00:00.925) 0:00:44.035 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:02 +0000 (0:00:00.036) 0:00:44.072 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:02 +0000 (0:00:00.066) 0:00:44.139 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:02 +0000 (0:00:00.025) 0:00:44.164 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:02 +0000 (0:00:00.072) 0:00:44.237 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:02 +0000 (0:00:00.029) 0:00:44.266 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:02 +0000 (0:00:00.036) 0:00:44.303 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:02 +0000 (0:00:00.025) 0:00:44.329 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:03 +0000 (0:00:00.369) 0:00:44.698 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:03 +0000 (0:00:00.031) 0:00:44.730 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:03 +0000 (0:00:00.023) 0:00:44.754 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:03 +0000 (0:00:00.040) 0:00:44.794 ******** 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, f31bbe7c-d985-4c79-82d8-495e39d35fed TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:03 +0000 (0:00:00.423) 0:00:45.218 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:03 +0000 (0:00:00.023) 0:00:45.241 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f31bbe7c-d985-4c79-82d8-495e39d35fed" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:03 +0000 (0:00:00.038) 0:00:45.280 ******** 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, f31bbe7c-d985-4c79-82d8-495e39d35fed\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f31bbe7c-d985-4c79-82d8-495e39d35fed" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:03 +0000 (0:00:00.044) 0:00:45.325 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:03 +0000 (0:00:00.034) 0:00:45.360 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:18:04 +0000 (0:00:00.265) 0:00:45.625 ******** 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, f31bbe7c-d985-4c79-82d8-495e39d35fed\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, f31bbe7c-d985-4c79-82d8-495e39d35fed" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:18:04 +0000 (0:00:00.057) 0:00:45.683 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:04 +0000 (0:00:00.040) 0:00:45.723 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:04 +0000 (0:00:00.067) 0:00:45.791 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:04 +0000 (0:00:00.045) 0:00:45.836 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:04 +0000 (0:00:00.025) 0:00:45.861 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:04 +0000 (0:00:00.039) 0:00:45.900 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:05 +0000 (0:00:01.433) 0:00:47.334 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:06 +0000 (0:00:00.971) 0:00:48.305 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:06 +0000 (0:00:00.045) 0:00:48.351 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:06 +0000 (0:00:00.022) 0:00:48.374 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:06 +0000 (0:00:00.022) 0:00:48.396 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:07 +0000 (0:00:00.042) 0:00:48.439 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:07 +0000 (0:00:00.021) 0:00:48.461 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:07 +0000 (0:00:00.022) 0:00:48.483 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:07 +0000 (0:00:00.025) 0:00:48.508 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:07 +0000 (0:00:00.357) 0:00:48.865 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:07 +0000 (0:00:00.025) 0:00:48.891 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:07 +0000 (0:00:00.022) 0:00:48.913 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:07 +0000 (0:00:00.020) 0:00:48.933 ******** 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, f31bbe7c-d985-4c79-82d8-495e39d35fed skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:07 +0000 (0:00:00.403) 0:00:49.337 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:07 +0000 (0:00:00.030) 0:00:49.368 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, f31bbe7c-d985-4c79-82d8-495e39d35fed skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:07 +0000 (0:00:00.034) 0:00:49.403 ******** 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, f31bbe7c-d985-4c79-82d8-495e39d35fed skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, f31bbe7c-d985-4c79-82d8-495e39d35fed skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:08 +0000 (0:00:00.040) 0:00:49.444 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:08 +0000 (0:00:00.028) 0:00:49.472 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove_profile.yml:3 Monday 08 January 2024 14:18:08 +0000 (0:00:00.195) 0:00:49.668 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:08 +0000 (0:00:00.037) 0:00:49.705 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:08 +0000 (0:00:00.046) 0:00:49.752 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:08 +0000 (0:00:00.029) 0:00:49.781 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:08 +0000 (0:00:00.023) 0:00:49.805 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:08 +0000 (0:00:00.022) 0:00:49.827 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:09 +0000 (0:00:01.466) 0:00:51.293 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:10 +0000 (0:00:00.929) 0:00:52.222 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:10 +0000 (0:00:00.032) 0:00:52.255 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:10 +0000 (0:00:00.029) 0:00:52.285 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:10 +0000 (0:00:00.024) 0:00:52.309 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:10 +0000 (0:00:00.062) 0:00:52.371 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:10 +0000 (0:00:00.022) 0:00:52.394 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:10 +0000 (0:00:00.023) 0:00:52.417 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:11 +0000 (0:00:00.040) 0:00:52.457 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:11 +0000 (0:00:00.396) 0:00:52.854 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:11 +0000 (0:00:00.040) 0:00:52.894 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:11 +0000 (0:00:00.023) 0:00:52.918 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:11 +0000 (0:00:00.029) 0:00:52.947 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:11 +0000 (0:00:00.440) 0:00:53.387 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:11 +0000 (0:00:00.021) 0:00:53.409 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:12 +0000 (0:00:00.027) 0:00:53.437 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:12 +0000 (0:00:00.041) 0:00:53.478 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:12 +0000 (0:00:00.046) 0:00:53.525 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:18:12 +0000 (0:00:00.231) 0:00:53.757 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:18:12 +0000 (0:00:00.056) 0:00:53.814 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:12 +0000 (0:00:00.047) 0:00:53.861 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:12 +0000 (0:00:00.065) 0:00:53.927 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:12 +0000 (0:00:00.031) 0:00:53.958 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:12 +0000 (0:00:00.043) 0:00:54.001 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:12 +0000 (0:00:00.037) 0:00:54.039 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:14 +0000 (0:00:01.449) 0:00:55.488 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:14 +0000 (0:00:00.923) 0:00:56.411 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:15 +0000 (0:00:00.025) 0:00:56.437 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:15 +0000 (0:00:00.040) 0:00:56.477 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:15 +0000 (0:00:00.034) 0:00:56.512 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:15 +0000 (0:00:00.075) 0:00:56.588 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:15 +0000 (0:00:00.041) 0:00:56.630 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:15 +0000 (0:00:00.045) 0:00:56.675 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:15 +0000 (0:00:00.029) 0:00:56.704 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:15 +0000 (0:00:00.358) 0:00:57.063 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:15 +0000 (0:00:00.028) 0:00:57.091 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:15 +0000 (0:00:00.031) 0:00:57.122 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:15 +0000 (0:00:00.030) 0:00:57.153 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:16 +0000 (0:00:00.474) 0:00:57.627 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:16 +0000 (0:00:00.049) 0:00:57.677 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:16 +0000 (0:00:00.065) 0:00:57.743 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:16 +0000 (0:00:00.026) 0:00:57.769 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:16 +0000 (0:00:00.039) 0:00:57.809 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:18:16 +0000 (0:00:00.232) 0:00:58.042 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:18:16 +0000 (0:00:00.049) 0:00:58.092 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:18:16 +0000 (0:00:00.060) 0:00:58.153 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:18:16 +0000 (0:00:00.040) 0:00:58.193 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:18:17 +0000 (0:00:00.268) 0:00:58.462 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:18:17 +0000 (0:00:00.056) 0:00:58.518 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.018638", "end": "2024-01-08 14:18:17.298916", "rc": 1, "start": "2024-01-08 14:18:17.280278" } 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:18:17 +0000 (0:00:00.226) 0:00:58.745 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:18:17 +0000 (0:00:00.025) 0:00:58.771 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:18:17 +0000 (0:00:00.025) 0:00:58.797 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:18:17 +0000 (0:00:00.028) 0:00:58.825 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:18:17 +0000 (0:00:00.044) 0:00:58.869 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:18:17 +0000 (0:00:00.061) 0:00:58.931 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:18:17 +0000 (0:00:00.068) 0:00:58.999 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:18:17 +0000 (0:00:00.114) 0:00:59.114 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:18:17 +0000 (0:00:00.048) 0:00:59.162 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:18:17 +0000 (0:00:00.190) 0:00:59.353 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:18:17 +0000 (0:00:00.024) 0:00:59.377 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:18:17 +0000 (0:00:00.023) 0:00:59.401 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:18:18 +0000 (0:00:00.066) 0:00:59.467 ******** 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.035622", "end": "2024-01-08 14:18:18.247949", "rc": 1, "start": "2024-01-08 14:18:18.212327" } 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-route_typecoqmfxkp/tests/playbooks/tests_states.yml:126 Monday 08 January 2024 14:18:18 +0000 (0:00:00.232) 0:00:59.699 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:18:18 +0000 (0:00:00.052) 0:00:59.752 ******** ok: [sut] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:18:18 +0000 (0:00:00.023) 0:00:59.776 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:18:18 +0000 (0:00:00.044) 0:00:59.820 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:18:18 +0000 (0:00:00.033) 0:00:59.853 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:18:18 +0000 (0:00:00.034) 0:00:59.888 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003396", "end": "2024-01-08 14:18:18.635348", "rc": 0, "start": "2024-01-08 14:18:18.631952" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:18:18 +0000 (0:00:00.231) 0:01:00.119 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:18:18 +0000 (0:00:00.024) 0:01:00.143 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:18:18 +0000 (0:00:00.025) 0:01:00.169 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:18:18 +0000 (0:00:00.061) 0:01:00.230 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:18 +0000 (0:00:00.079) 0:01:00.309 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:18 +0000 (0:00:00.044) 0:01:00.354 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:18 +0000 (0:00:00.054) 0:01:00.409 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:19 +0000 (0:00:00.042) 0:01:00.452 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:19 +0000 (0:00:00.036) 0:01:00.488 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:20 +0000 (0:00:01.454) 0:01:01.943 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:21 +0000 (0:00:00.982) 0:01:02.925 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:21 +0000 (0:00:00.027) 0:01:02.953 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:21 +0000 (0:00:00.022) 0:01:02.975 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:21 +0000 (0:00:00.024) 0:01:03.000 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:21 +0000 (0:00:00.046) 0:01:03.046 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:21 +0000 (0:00:00.023) 0:01:03.070 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:21 +0000 (0:00:00.041) 0:01:03.112 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:21 +0000 (0:00:00.065) 0:01:03.178 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:22 +0000 (0:00:00.423) 0:01:03.601 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:22 +0000 (0:00:00.049) 0:01:03.651 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:22 +0000 (0:00:00.037) 0:01:03.688 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:22 +0000 (0:00:00.048) 0:01:03.737 ******** 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, 35e29232-b694-4de1-9b88-1093ac1b15ba TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:22 +0000 (0:00:00.556) 0:01:04.293 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:22 +0000 (0:00:00.039) 0:01:04.333 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 35e29232-b694-4de1-9b88-1093ac1b15ba" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:22 +0000 (0:00:00.070) 0:01:04.403 ******** 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, 35e29232-b694-4de1-9b88-1093ac1b15ba\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 35e29232-b694-4de1-9b88-1093ac1b15ba" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:23 +0000 (0:00:00.089) 0:01:04.493 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:23 +0000 (0:00:00.035) 0:01:04.528 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:18:23 +0000 (0:00:00.292) 0:01:04.821 ******** 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, 35e29232-b694-4de1-9b88-1093ac1b15ba\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 35e29232-b694-4de1-9b88-1093ac1b15ba" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:18:23 +0000 (0:00:00.045) 0:01:04.867 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:23 +0000 (0:00:00.070) 0:01:04.937 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:23 +0000 (0:00:00.055) 0:01:04.992 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:23 +0000 (0:00:00.092) 0:01:05.085 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:23 +0000 (0:00:00.078) 0:01:05.163 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:23 +0000 (0:00:00.065) 0:01:05.229 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:25 +0000 (0:00:01.442) 0:01:06.671 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:26 +0000 (0:00:00.968) 0:01:07.640 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:26 +0000 (0:00:00.024) 0:01:07.664 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:26 +0000 (0:00:00.021) 0:01:07.686 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:26 +0000 (0:00:00.024) 0:01:07.710 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:26 +0000 (0:00:00.055) 0:01:07.766 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:26 +0000 (0:00:00.027) 0:01:07.794 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:26 +0000 (0:00:00.054) 0:01:07.848 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:26 +0000 (0:00:00.044) 0:01:07.893 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:26 +0000 (0:00:00.404) 0:01:08.298 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:26 +0000 (0:00:00.030) 0:01:08.328 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:26 +0000 (0:00:00.033) 0:01:08.361 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:26 +0000 (0:00:00.038) 0:01:08.400 ******** 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, 35e29232-b694-4de1-9b88-1093ac1b15ba skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:27 +0000 (0:00:00.371) 0:01:08.771 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:27 +0000 (0:00:00.025) 0:01:08.797 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 35e29232-b694-4de1-9b88-1093ac1b15ba skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:27 +0000 (0:00:00.024) 0:01:08.822 ******** 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, 35e29232-b694-4de1-9b88-1093ac1b15ba skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 35e29232-b694-4de1-9b88-1093ac1b15ba skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:27 +0000 (0:00:00.064) 0:01:08.887 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:27 +0000 (0:00:00.022) 0:01:08.909 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:18:27 +0000 (0:00:00.195) 0:01:09.105 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:27 +0000 (0:00:00.065) 0:01:09.170 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:27 +0000 (0:00:00.041) 0:01:09.212 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:27 +0000 (0:00:00.028) 0:01:09.240 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:27 +0000 (0:00:00.024) 0:01:09.265 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:27 +0000 (0:00:00.025) 0:01:09.291 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:29 +0000 (0:00:01.403) 0:01:10.694 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:30 +0000 (0:00:00.936) 0:01:11.631 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:30 +0000 (0:00:00.022) 0:01:11.653 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:30 +0000 (0:00:00.021) 0:01:11.675 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:30 +0000 (0:00:00.021) 0:01:11.696 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:30 +0000 (0:00:00.054) 0:01:11.750 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:30 +0000 (0:00:00.030) 0:01:11.781 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:30 +0000 (0:00:00.052) 0:01:11.833 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:30 +0000 (0:00:00.045) 0:01:11.878 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:30 +0000 (0:00:00.400) 0:01:12.279 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:30 +0000 (0:00:00.040) 0:01:12.320 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:30 +0000 (0:00:00.035) 0:01:12.355 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:30 +0000 (0:00:00.035) 0:01:12.390 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:31 +0000 (0:00:00.493) 0:01:12.884 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:31 +0000 (0:00:00.022) 0:01:12.906 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:31 +0000 (0:00:00.022) 0:01:12.929 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:31 +0000 (0:00:00.023) 0:01:12.952 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:31 +0000 (0:00:00.020) 0:01:12.972 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:18:31 +0000 (0:00:00.195) 0:01:13.167 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:18:31 +0000 (0:00:00.039) 0:01:13.207 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:18:31 +0000 (0:00:00.035) 0:01:13.242 ******** included: /WORKDIR/git-route_typecoqmfxkp/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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:18:31 +0000 (0:00:00.038) 0:01:13.280 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:18:31 +0000 (0:00:00.027) 0:01:13.308 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:18:31 +0000 (0:00:00.021) 0:01:13.329 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:18:31 +0000 (0:00:00.019) 0:01:13.349 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:18:33 +0000 (0:00:01.408) 0:01:14.758 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:18:34 +0000 (0:00:00.976) 0:01:15.735 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:18:34 +0000 (0:00:00.043) 0:01:15.778 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:18:34 +0000 (0:00:00.047) 0:01:15.826 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:18:34 +0000 (0:00:00.057) 0:01:15.883 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:18:34 +0000 (0:00:00.071) 0:01:15.955 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:18:34 +0000 (0:00:00.049) 0:01:16.005 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:18:34 +0000 (0:00:00.023) 0:01:16.029 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:18:34 +0000 (0:00:00.029) 0:01:16.058 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:18:35 +0000 (0:00:00.399) 0:01:16.458 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:18:35 +0000 (0:00:00.078) 0:01:16.537 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:18:35 +0000 (0:00:00.022) 0:01:16.559 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:18:35 +0000 (0:00:00.020) 0:01:16.580 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:18:35 +0000 (0:00:00.415) 0:01:16.995 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:18:35 +0000 (0:00:00.039) 0:01:17.034 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:18:35 +0000 (0:00:00.024) 0:01:17.059 ******** 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-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:18:35 +0000 (0:00:00.023) 0:01:17.082 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:18:35 +0000 (0:00:00.023) 0:01:17.106 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:18:35 +0000 (0:00:00.189) 0:01:17.295 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:18:35 +0000 (0:00:00.047) 0:01:17.342 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:18:35 +0000 (0:00:00.040) 0:01:17.383 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:18:35 +0000 (0:00:00.021) 0:01:17.404 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:18:36 +0000 (0:00:00.238) 0:01:17.642 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:18:36 +0000 (0:00:00.119) 0:01:17.762 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019180", "end": "2024-01-08 14:18:36.559094", "rc": 1, "start": "2024-01-08 14:18:36.539914" } 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-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:18:36 +0000 (0:00:00.260) 0:01:18.023 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:18:36 +0000 (0:00:00.033) 0:01:18.056 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:18:36 +0000 (0:00:00.028) 0:01:18.085 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:18:36 +0000 (0:00:00.039) 0:01:18.125 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:18:36 +0000 (0:00:00.034) 0:01:18.160 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:18:36 +0000 (0:00:00.025) 0:01:18.186 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Monday 08 January 2024 14:18:36 +0000 (0:00:00.038) 0:01:18.224 ******** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.560655", "end": "2024-01-08 14:18:37.544465", "rc": 0, "start": "2024-01-08 14:18:36.983810" } STDOUT: NetworkManager-1.45.9-1.el9 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Monday 08 January 2024 14:18:37 +0000 (0:00:00.792) 0:01:19.016 ******** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.45.9-1.el9" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Monday 08 January 2024 14:18:37 +0000 (0:00:00.054) 0:01:19.070 ******** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.45.9-1.el9" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:18:37 +0000 (0:00:00.072) 0:01:19.143 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:18:37 +0000 (0:00:00.076) 0:01:19.219 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:18:37 +0000 (0:00:00.044) 0:01:19.263 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:18:38 +0000 (0:00:00.220) 0:01:19.484 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:18:38 +0000 (0:00:00.065) 0:01:19.549 ******** 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-route_typecoqmfxkp/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:18:38 +0000 (0:00:00.044) 0:01:19.594 ******** included: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typecoqmfxkp/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:18:38 +0000 (0:00:00.072) 0:01:19.666 ******** 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.036170", "end": "2024-01-08 14:18:38.467534", "rc": 1, "start": "2024-01-08 14:18:38.431364" } 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=316 changed=10 unreachable=0 failed=0 skipped=252 rescued=0 ignored=11 Monday 08 January 2024 14:18:38 +0000 (0:00:00.247) 0:01:19.914 ******** =============================================================================== linux-system-roles.network : Configure networking connection profiles --- 2.50s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable and start NetworkManager ------------ 2.14s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Enable and start NetworkManager ------------ 1.51s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Configure networking connection profiles --- 1.51s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Check which services are running ----------- 1.51s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.47s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.45s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.45s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.44s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.43s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.43s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.43s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.42s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.42s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.41s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.41s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.40s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.40s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Configure networking connection profiles --- 1.38s /WORKDIR/git-route_typecoqmfxkp/tests/roles/linux-system-roles.network/tasks/main.yml:122 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [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. ---^---^---^---^---^---