# 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_initscripts.yml ***************************************** 2 plays in /WORKDIR/git-route_type8oek0enz/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/tests_states_initscripts.yml:5 Friday 12 January 2024 20:18:42 +0000 (0:00:00.016) 0:00:00.016 ******** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-route_type8oek0enz/tests/tests_states_initscripts.yml:8 Friday 12 January 2024 20:18:43 +0000 (0:00:00.786) 0:00:00.803 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/tasks/el_repo_setup.yml:3 Friday 12 January 2024 20:18:43 +0000 (0:00:00.022) 0:00:00.826 ******** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/el_repo_setup.yml:19 Friday 12 January 2024 20:18:43 +0000 (0:00:00.346) 0:00:01.172 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/el_repo_setup.yml:24 Friday 12 January 2024 20:18:44 +0000 (0:00:00.303) 0:00:01.475 ******** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/el_repo_setup.yml:28 Friday 12 January 2024 20:18:44 +0000 (0:00:00.023) 0:00:01.499 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/el_repo_setup.yml:53 Friday 12 January 2024 20:18:44 +0000 (0:00:00.020) 0:00:01.520 ******** included: /WORKDIR/git-route_type8oek0enz/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/enable_epel.yml:8 Friday 12 January 2024 20:18:44 +0000 (0:00:00.036) 0:00:01.556 ******** ok: [sut] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/enable_epel.yml:24 Friday 12 January 2024 20:18:44 +0000 (0:00:00.280) 0:00:01.837 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/enable_epel.yml:30 Friday 12 January 2024 20:18:44 +0000 (0:00:00.012) 0:00:01.849 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/enable_epel.yml:35 Friday 12 January 2024 20:18:44 +0000 (0:00:00.011) 0:00:01.860 ******** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.240820", "end": "2024-01-12 20:18:44.861516", "rc": 0, "start": "2024-01-12 20:18:44.620696" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tasks/enable_epel.yml:40 Friday 12 January 2024 20:18:44 +0000 (0:00:00.443) 0:00:02.303 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /WORKDIR/git-route_type8oek0enz/tests/tests_states_initscripts.yml:10 Friday 12 January 2024 20:18:44 +0000 (0:00:00.024) 0:00:02.328 ******** ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for testing states] ************************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tests_states.yml:3 Friday 12 January 2024 20:18:44 +0000 (0:00:00.048) 0:00:02.376 ******** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tests_states.yml:11 Friday 12 January 2024 20:18:45 +0000 (0:00:00.567) 0:00:02.944 ******** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tests_states.yml:22 Friday 12 January 2024 20:18:45 +0000 (0:00:00.012) 0:00:02.957 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:18:45 +0000 (0:00:00.021) 0:00:02.978 ******** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:18:45 +0000 (0:00:00.014) 0:00:02.992 ******** 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": false, "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_type8oek0enz/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:18:45 +0000 (0:00:00.043) 0:00:03.035 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:18:45 +0000 (0:00:00.030) 0:00:03.066 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:18:45 +0000 (0:00:00.020) 0:00:03.086 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003117", "end": "2024-01-12 20:18:45.849258", "rc": 0, "start": "2024-01-12 20:18:45.846141" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:18:45 +0000 (0:00:00.189) 0:00:03.276 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:18:45 +0000 (0:00:00.012) 0:00:03.289 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:18:45 +0000 (0:00:00.010) 0:00:03.299 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/delete_interface.yml:3 Friday 12 January 2024 20:18:45 +0000 (0:00:00.024) 0:00:03.324 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.007792", "end": "2024-01-12 20:18:46.092572", "rc": 1, "start": "2024-01-12 20:18:46.084780" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml:3 Friday 12 January 2024 20:18:46 +0000 (0:00:00.209) 0:00:03.533 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:18:46 +0000 (0:00:00.034) 0:00:03.567 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml:5 Friday 12 January 2024 20:18:46 +0000 (0:00:00.212) 0:00:03.779 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:18:46 +0000 (0:00:00.037) 0:00:03.817 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:18:46 +0000 (0:00:00.019) 0:00:03.836 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:18:46 +0000 (0:00:00.073) 0:00:03.909 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:18:46 +0000 (0:00:00.084) 0:00:03.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 : Check if system is ostree] ****************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:18:46 +0000 (0:00:00.014) 0:00:04.008 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:18:46 +0000 (0:00:00.011) 0:00:04.019 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:18:46 +0000 (0:00:00.011) 0:00:04.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 : Check which packages are installed] ********* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:18:48 +0000 (0:00:01.593) 0:00:05.624 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:18:49 +0000 (0:00:01.480) 0:00:07.105 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:18:49 +0000 (0:00:00.026) 0:00:07.132 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:18:49 +0000 (0:00:00.028) 0:00:07.161 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:18:49 +0000 (0:00:00.027) 0:00:07.189 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:18:49 +0000 (0:00:00.047) 0:00:07.236 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:18:49 +0000 (0:00:00.028) 0:00:07.264 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:18:49 +0000 (0:00:00.029) 0:00:07.293 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:18:49 +0000 (0:00:00.033) 0:00:07.327 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:18:49 +0000 (0:00:00.024) 0:00:07.351 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:18:49 +0000 (0:00:00.023) 0:00:07.374 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:18:50 +0000 (0:00:00.559) 0:00:07.933 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpjxqk8uc3" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:18:50 +0000 (0:00:00.379) 0:00:08.313 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:18:51 +0000 (0:00:00.532) 0:00:08.846 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:18:51 +0000 (0:00:00.034) 0:00:08.880 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:18:51 +0000 (0:00:00.057) 0:00:08.938 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:18:51 +0000 (0:00:00.030) 0:00:08.968 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:18:51 +0000 (0:00:00.024) 0:00:08.992 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:18:51 +0000 (0:00:00.254) 0:00:09.247 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:18:51 +0000 (0:00:00.047) 0:00:09.294 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:3 Friday 12 January 2024 20:18:51 +0000 (0:00:00.065) 0:00:09.360 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:18:51 +0000 (0:00:00.047) 0:00:09.408 ******** 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:18:52 +0000 (0:00:00.031) 0:00:09.440 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705090731.398648, "block_size": 4096, "blocks": 8, "ctime": 1705090731.398648, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5533388, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1705090731.398648, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 127, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:18:52 +0000 (0:00:00.224) 0:00:09.665 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:18:52 +0000 (0:00:00.066) 0:00:09.732 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019927", "end": "2024-01-12 20:18:52.541796", "rc": 1, "start": "2024-01-12 20:18:52.521869" } 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:18:52 +0000 (0:00:00.248) 0:00:09.980 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:18:52 +0000 (0:00:00.032) 0:00:10.012 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003013", "end": "2024-01-12 20:18:52.775670", "rc": 0, "start": "2024-01-12 20:18:52.772657" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:18:52 +0000 (0:00:00.228) 0:00:10.241 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:18:52 +0000 (0:00:00.029) 0:00:10.270 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002777", "end": "2024-01-12 20:18:53.033865", "rc": 0, "start": "2024-01-12 20:18:53.031088" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:18:53 +0000 (0:00:00.201) 0:00:10.472 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:5 Friday 12 January 2024 20:18:53 +0000 (0:00:00.030) 0:00:10.503 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:10 Friday 12 January 2024 20:18:53 +0000 (0:00:00.029) 0:00:10.532 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:15 Friday 12 January 2024 20:18:53 +0000 (0:00:00.029) 0:00:10.562 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:18:53 +0000 (0:00:00.025) 0:00:10.587 ******** skipping: [sut] => (item={'what': 'tasks/assert_device_present.yml', 'condition': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "condition": false, "what": "tasks/assert_device_present.yml" }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:18:53 +0000 (0:00:00.029) 0:00:10.616 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:18:53 +0000 (0:00:00.024) 0:00:10.641 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:18:53 +0000 (0:00:00.046) 0:00:10.688 ******** 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.038426", "end": "2024-01-12 20:18:53.486831", "rc": 1, "start": "2024-01-12 20:18:53.448405" } 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_type8oek0enz/tests/playbooks/tests_states.yml:45 Friday 12 January 2024 20:18:53 +0000 (0:00:00.236) 0:00:10.924 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:18:53 +0000 (0:00:00.040) 0:00:10.965 ******** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:18:53 +0000 (0:00:00.025) 0:00:10.991 ******** 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_type8oek0enz/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:18:53 +0000 (0:00:00.081) 0:00:11.072 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:18:53 +0000 (0:00:00.047) 0:00:11.120 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:18:53 +0000 (0:00:00.038) 0:00:11.158 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003012", "end": "2024-01-12 20:18:53.918880", "rc": 0, "start": "2024-01-12 20:18:53.915868" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:18:53 +0000 (0:00:00.199) 0:00:11.357 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:18:53 +0000 (0:00:00.035) 0:00:11.392 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:18:54 +0000 (0:00:00.027) 0:00:11.420 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/delete_interface.yml:3 Friday 12 January 2024 20:18:54 +0000 (0:00:00.061) 0:00:11.481 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.005960", "end": "2024-01-12 20:18:54.250502", "rc": 1, "start": "2024-01-12 20:18:54.244542" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml:3 Friday 12 January 2024 20:18:54 +0000 (0:00:00.255) 0:00:11.737 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:18:54 +0000 (0:00:00.065) 0:00:11.803 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml:5 Friday 12 January 2024 20:18:54 +0000 (0:00:00.231) 0:00:12.034 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:18:54 +0000 (0:00:00.032) 0:00:12.066 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Friday 12 January 2024 20:18:54 +0000 (0:00:00.116) 0:00:12.182 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:18:54 +0000 (0:00:00.049) 0:00:12.232 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:18:54 +0000 (0:00:00.053) 0:00:12.286 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:18:54 +0000 (0:00:00.031) 0:00:12.317 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:18:54 +0000 (0:00:00.023) 0:00:12.340 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:18:54 +0000 (0:00:00.025) 0:00:12.366 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:18:56 +0000 (0:00:01.545) 0:00:13.911 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:18:57 +0000 (0:00:01.336) 0:00:15.248 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:18:57 +0000 (0:00:00.027) 0:00:15.275 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:18:57 +0000 (0:00:00.025) 0:00:15.300 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:18:57 +0000 (0:00:00.024) 0:00:15.325 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:18:57 +0000 (0:00:00.049) 0:00:15.374 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:18:57 +0000 (0:00:00.031) 0:00:15.406 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:18:58 +0000 (0:00:00.027) 0:00:15.433 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:18:58 +0000 (0:00:00.029) 0:00:15.463 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:18:58 +0000 (0:00:00.035) 0:00:15.498 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:18:58 +0000 (0:00:00.034) 0:00:15.533 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:18:58 +0000 (0:00:00.431) 0:00:15.965 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmp1w834hla" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:18:58 +0000 (0:00:00.324) 0:00:16.290 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:18:59 +0000 (0:00:00.349) 0:00:16.640 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:18:59 +0000 (0:00:00.052) 0:00:16.692 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:18:59 +0000 (0:00:00.086) 0:00:16.779 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:18:59 +0000 (0:00:00.082) 0:00:16.861 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:18:59 +0000 (0:00:00.055) 0:00:16.917 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Friday 12 January 2024 20:18:59 +0000 (0:00:00.256) 0:00:17.173 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:18:59 +0000 (0:00:00.038) 0:00:17.212 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml:3 Friday 12 January 2024 20:18:59 +0000 (0:00:00.098) 0:00:17.310 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:18:59 +0000 (0:00:00.075) 0:00:17.385 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_absent.yml:5 Friday 12 January 2024 20:19:00 +0000 (0:00:00.252) 0:00:17.637 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:3 Friday 12 January 2024 20:19:00 +0000 (0:00:00.035) 0:00:17.672 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:19:00 +0000 (0:00:00.080) 0:00:17.753 ******** 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:19:00 +0000 (0:00:00.034) 0:00:17.788 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705090739.1615093, "block_size": 4096, "blocks": 8, "ctime": 1705090739.1615093, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5533388, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1705090739.1615093, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 126, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:19:00 +0000 (0:00:00.248) 0:00:18.036 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:19:00 +0000 (0:00:00.029) 0:00:18.066 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019037", "end": "2024-01-12 20:19:00.890065", "rc": 1, "start": "2024-01-12 20:19:00.871028" } 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:19:00 +0000 (0:00:00.294) 0:00:18.361 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:19:01 +0000 (0:00:00.056) 0:00:18.418 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002935", "end": "2024-01-12 20:19:01.195425", "rc": 0, "start": "2024-01-12 20:19:01.192490" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:19:01 +0000 (0:00:00.227) 0:00:18.645 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:19:01 +0000 (0:00:00.035) 0:00:18.680 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002892", "end": "2024-01-12 20:19:01.445768", "rc": 0, "start": "2024-01-12 20:19:01.442876" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:19:01 +0000 (0:00:00.223) 0:00:18.904 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:5 Friday 12 January 2024 20:19:01 +0000 (0:00:00.054) 0:00:18.959 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:10 Friday 12 January 2024 20:19:01 +0000 (0:00:00.026) 0:00:18.985 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:15 Friday 12 January 2024 20:19:01 +0000 (0:00:00.032) 0:00:19.018 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:19:01 +0000 (0:00:00.027) 0:00:19.045 ******** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:19:01 +0000 (0:00:00.022) 0:00:19.068 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:19:01 +0000 (0:00:00.072) 0:00:19.140 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:19:01 +0000 (0:00:00.083) 0:00:19.224 ******** 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.037471", "end": "2024-01-12 20:19:02.053639", "rc": 1, "start": "2024-01-12 20:19:02.016168" } 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_type8oek0enz/tests/playbooks/tests_states.yml:65 Friday 12 January 2024 20:19:02 +0000 (0:00:00.280) 0:00:19.504 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:19:02 +0000 (0:00:00.042) 0:00:19.547 ******** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:19:02 +0000 (0:00:00.027) 0:00:19.574 ******** 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_type8oek0enz/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:19:02 +0000 (0:00:00.070) 0:00:19.644 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:19:02 +0000 (0:00:00.042) 0:00:19.687 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:19:02 +0000 (0:00:00.041) 0:00:19.729 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003213", "end": "2024-01-12 20:19:02.507403", "rc": 0, "start": "2024-01-12 20:19:02.504190" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:19:02 +0000 (0:00:00.218) 0:00:19.947 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:19:02 +0000 (0:00:00.026) 0:00:19.974 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:19:02 +0000 (0:00:00.025) 0:00:19.999 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:19:02 +0000 (0:00:00.116) 0:00:20.115 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:02 +0000 (0:00:00.053) 0:00:20.168 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:02 +0000 (0:00:00.055) 0:00:20.224 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:02 +0000 (0:00:00.037) 0:00:20.262 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:02 +0000 (0:00:00.029) 0:00:20.291 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:02 +0000 (0:00:00.053) 0:00:20.344 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:04 +0000 (0:00:01.574) 0:00:21.919 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:05 +0000 (0:00:01.385) 0:00:23.304 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:05 +0000 (0:00:00.024) 0:00:23.329 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:05 +0000 (0:00:00.023) 0:00:23.353 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:05 +0000 (0:00:00.024) 0:00:23.377 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:06 +0000 (0:00:00.046) 0:00:23.424 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:06 +0000 (0:00:00.022) 0:00:23.446 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:06 +0000 (0:00:00.022) 0:00:23.468 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:06 +0000 (0:00:00.028) 0:00:23.497 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:06 +0000 (0:00:00.026) 0:00:23.523 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:06 +0000 (0:00:00.023) 0:00:23.547 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:06 +0000 (0:00:00.352) 0:00:23.900 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmprvwl9ixm" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:06 +0000 (0:00:00.346) 0:00:24.247 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:07 +0000 (0:00:00.357) 0:00:24.604 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:07 +0000 (0:00:00.052) 0:00:24.656 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:07 +0000 (0:00:00.031) 0:00:24.688 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:07 +0000 (0:00:00.025) 0:00:24.713 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:07 +0000 (0:00:00.028) 0:00:24.742 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:19:07 +0000 (0:00:00.193) 0:00:24.935 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:19:07 +0000 (0:00:00.030) 0:00:24.965 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:19:07 +0000 (0:00:00.053) 0:00:25.018 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:07 +0000 (0:00:00.046) 0:00:25.064 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:07 +0000 (0:00:00.056) 0:00:25.120 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:07 +0000 (0:00:00.042) 0:00:25.163 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:07 +0000 (0:00:00.058) 0:00:25.222 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:07 +0000 (0:00:00.024) 0:00:25.246 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:09 +0000 (0:00:01.542) 0:00:26.789 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:10 +0000 (0:00:01.316) 0:00:28.105 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:10 +0000 (0:00:00.048) 0:00:28.154 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:10 +0000 (0:00:00.028) 0:00:28.182 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:10 +0000 (0:00:00.104) 0:00:28.286 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:10 +0000 (0:00:00.063) 0:00:28.350 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:10 +0000 (0:00:00.044) 0:00:28.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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:11 +0000 (0:00:00.034) 0:00:28.428 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:11 +0000 (0:00:00.036) 0:00:28.465 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:11 +0000 (0:00:00.025) 0:00:28.490 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:11 +0000 (0:00:00.043) 0:00:28.534 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:11 +0000 (0:00:00.397) 0:00:28.931 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpq4drietl" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:11 +0000 (0:00:00.376) 0:00:29.307 ******** changed: [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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:12 +0000 (0:00:00.596) 0:00:29.903 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:12 +0000 (0:00:00.055) 0:00:29.958 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:12 +0000 (0:00:00.027) 0:00:29.986 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:12 +0000 (0:00:00.039) 0:00:30.026 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:12 +0000 (0:00:00.063) 0:00:30.089 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:19:12 +0000 (0:00:00.227) 0:00:30.317 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_present.yml:3 Friday 12 January 2024 20:19:12 +0000 (0:00:00.060) 0:00:30.378 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:19:13 +0000 (0:00:00.054) 0:00:30.432 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705090752.3546107, "block_size": 4096, "blocks": 0, "ctime": 1705090752.3546107, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38174, "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": 1705090752.3546107, "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_type8oek0enz/tests/playbooks/tasks/assert_device_present.yml:5 Friday 12 January 2024 20:19:13 +0000 (0:00:00.235) 0:00:30.668 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:3 Friday 12 January 2024 20:19:13 +0000 (0:00:00.053) 0:00:30.722 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:19:13 +0000 (0:00:00.089) 0:00:30.811 ******** 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:19:13 +0000 (0:00:00.025) 0:00:30.837 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705090752.1752763, "block_size": 4096, "blocks": 8, "ctime": 1705090747.1353664, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5533388, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1705090747.1353664, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 127, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:19:13 +0000 (0:00:00.221) 0:00:31.059 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:19:13 +0000 (0:00:00.025) 0:00:31.084 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019667", "end": "2024-01-12 20:19:13.862242", "rc": 1, "start": "2024-01-12 20:19:13.842575" } 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:19:13 +0000 (0:00:00.221) 0:00:31.306 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:19:13 +0000 (0:00:00.038) 0:00:31.344 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003107", "end": "2024-01-12 20:19:14.153223", "rc": 0, "start": "2024-01-12 20:19:14.150116" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:19:14 +0000 (0:00:00.253) 0:00:31.598 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:19:14 +0000 (0:00:00.029) 0:00:31.628 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003069", "end": "2024-01-12 20:19:14.393607", "rc": 0, "start": "2024-01-12 20:19:14.390538" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:19:14 +0000 (0:00:00.204) 0:00:31.832 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:5 Friday 12 January 2024 20:19:14 +0000 (0:00:00.029) 0:00:31.862 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:10 Friday 12 January 2024 20:19:14 +0000 (0:00:00.027) 0:00:31.889 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_present.yml:15 Friday 12 January 2024 20:19:14 +0000 (0:00:00.030) 0:00:31.920 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:19:14 +0000 (0:00:00.028) 0:00:31.948 ******** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:19:14 +0000 (0:00:00.031) 0:00:31.979 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:19:14 +0000 (0:00:00.055) 0:00:32.035 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:19:14 +0000 (0:00:00.057) 0:00:32.092 ******** ok: [sut] => { "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.043525", "end": "2024-01-12 20:19:14.933345", "rc": 0, "start": "2024-01-12 20:19:14.889820" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tests_states.yml:83 Friday 12 January 2024 20:19:14 +0000 (0:00:00.286) 0:00:32.378 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:19:15 +0000 (0:00:00.049) 0:00:32.428 ******** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:19:15 +0000 (0:00:00.111) 0:00:32.540 ******** 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_type8oek0enz/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:19:15 +0000 (0:00:00.068) 0:00:32.608 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:19:15 +0000 (0:00:00.061) 0:00:32.669 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:19:15 +0000 (0:00:00.045) 0:00:32.715 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003064", "end": "2024-01-12 20:19:15.484793", "rc": 0, "start": "2024-01-12 20:19:15.481729" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:19:15 +0000 (0:00:00.209) 0:00:32.925 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:19:15 +0000 (0:00:00.031) 0:00:32.957 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:19:15 +0000 (0:00:00.046) 0:00:33.003 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:19:15 +0000 (0:00:00.066) 0:00:33.070 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:15 +0000 (0:00:00.062) 0:00:33.132 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:15 +0000 (0:00:00.058) 0:00:33.191 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:15 +0000 (0:00:00.032) 0:00:33.223 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:15 +0000 (0:00:00.080) 0:00:33.304 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:15 +0000 (0:00:00.031) 0:00:33.335 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:17 +0000 (0:00:01.541) 0:00:34.876 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:18 +0000 (0:00:01.314) 0:00:36.190 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:18 +0000 (0:00:00.038) 0:00:36.229 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:18 +0000 (0:00:00.042) 0:00:36.271 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:18 +0000 (0:00:00.099) 0:00:36.370 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:19 +0000 (0:00:00.073) 0:00:36.444 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:19 +0000 (0:00:00.037) 0:00:36.482 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:19 +0000 (0:00:00.046) 0:00:36.528 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:19 +0000 (0:00:00.031) 0:00:36.560 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:19 +0000 (0:00:00.027) 0:00:36.587 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:19 +0000 (0:00:00.035) 0:00:36.623 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:19 +0000 (0:00:00.358) 0:00:36.982 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmp3faut57_" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:19 +0000 (0:00:00.327) 0:00:37.309 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:20 +0000 (0:00:00.332) 0:00:37.641 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:20 +0000 (0:00:00.035) 0:00:37.677 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:20 +0000 (0:00:00.043) 0:00:37.721 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:20 +0000 (0:00:00.032) 0:00:37.753 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:20 +0000 (0:00:00.090) 0:00:37.844 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:19:20 +0000 (0:00:00.195) 0:00:38.039 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:19:20 +0000 (0:00:00.025) 0:00:38.065 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:20 +0000 (0:00:00.041) 0:00:38.107 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:20 +0000 (0:00:00.045) 0:00:38.153 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:20 +0000 (0:00:00.029) 0:00:38.182 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:20 +0000 (0:00:00.023) 0:00:38.206 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:20 +0000 (0:00:00.023) 0:00:38.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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:22 +0000 (0:00:01.585) 0:00:39.815 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:23 +0000 (0:00:01.327) 0:00:41.143 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:23 +0000 (0:00:00.041) 0:00:41.185 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:23 +0000 (0:00:00.038) 0:00:41.223 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:23 +0000 (0:00:00.029) 0:00:41.252 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:23 +0000 (0:00:00.053) 0:00:41.306 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:23 +0000 (0:00:00.033) 0:00:41.340 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:23 +0000 (0:00:00.042) 0:00:41.382 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:24 +0000 (0:00:00.043) 0:00:41.426 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:24 +0000 (0:00:00.037) 0:00:41.463 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:24 +0000 (0:00:00.036) 0:00:41.500 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:24 +0000 (0:00:00.597) 0:00:42.097 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpo1brm9i7" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:25 +0000 (0:00:00.321) 0:00:42.419 ******** changed: [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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:25 +0000 (0:00:00.592) 0:00:43.011 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:25 +0000 (0:00:00.026) 0:00:43.038 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:25 +0000 (0:00:00.025) 0:00:43.064 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:25 +0000 (0:00:00.025) 0:00:43.090 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:25 +0000 (0:00:00.023) 0:00:43.113 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:19:25 +0000 (0:00:00.193) 0:00:43.307 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove_profile.yml:3 Friday 12 January 2024 20:19:25 +0000 (0:00:00.042) 0:00:43.349 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:25 +0000 (0:00:00.050) 0:00:43.400 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:26 +0000 (0:00:00.090) 0:00:43.491 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:26 +0000 (0:00:00.035) 0:00:43.527 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:26 +0000 (0:00:00.024) 0:00:43.551 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:26 +0000 (0:00:00.023) 0:00:43.575 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:27 +0000 (0:00:01.522) 0:00:45.097 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:29 +0000 (0:00:01.361) 0:00:46.459 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:29 +0000 (0:00:00.046) 0:00:46.506 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:29 +0000 (0:00:00.025) 0:00:46.531 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:29 +0000 (0:00:00.025) 0:00:46.556 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:29 +0000 (0:00:00.046) 0:00:46.603 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:29 +0000 (0:00:00.029) 0:00:46.632 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:29 +0000 (0:00:00.034) 0:00:46.667 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:29 +0000 (0:00:00.041) 0:00:46.708 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:29 +0000 (0:00:00.031) 0:00:46.740 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:29 +0000 (0:00:00.034) 0:00:46.774 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:29 +0000 (0:00:00.347) 0:00:47.122 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpq6hd8qjf" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:30 +0000 (0:00:00.299) 0:00:47.421 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:30 +0000 (0:00:00.425) 0:00:47.847 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:30 +0000 (0:00:00.028) 0:00:47.876 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:30 +0000 (0:00:00.055) 0:00:47.931 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:30 +0000 (0:00:00.028) 0:00:47.959 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:30 +0000 (0:00:00.036) 0:00:47.996 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:19:30 +0000 (0:00:00.225) 0:00:48.221 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_device_present.yml:3 Friday 12 January 2024 20:19:30 +0000 (0:00:00.057) 0:00:48.279 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:19:30 +0000 (0:00:00.080) 0:00:48.359 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705090765.4634311, "block_size": 4096, "blocks": 0, "ctime": 1705090765.4634311, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 38305, "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": 1705090765.4634311, "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_type8oek0enz/tests/playbooks/tasks/assert_device_present.yml:5 Friday 12 January 2024 20:19:31 +0000 (0:00:00.248) 0:00:48.608 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml:3 Friday 12 January 2024 20:19:31 +0000 (0:00:00.046) 0:00:48.654 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:19:31 +0000 (0:00:00.044) 0:00:48.699 ******** 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:19:31 +0000 (0:00:00.027) 0:00:48.726 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:19:31 +0000 (0:00:00.224) 0:00:48.951 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:19:31 +0000 (0:00:00.038) 0:00:48.990 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019773", "end": "2024-01-12 20:19:31.777536", "rc": 1, "start": "2024-01-12 20:19:31.757763" } 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:19:31 +0000 (0:00:00.231) 0:00:49.221 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:19:31 +0000 (0:00:00.036) 0:00:49.258 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:19:31 +0000 (0:00:00.033) 0:00:49.291 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:19:31 +0000 (0:00:00.028) 0:00:49.320 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:19:31 +0000 (0:00:00.027) 0:00:49.348 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml:5 Friday 12 January 2024 20:19:31 +0000 (0:00:00.031) 0:00:49.380 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:19:32 +0000 (0:00:00.040) 0:00:49.420 ******** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:19:32 +0000 (0:00:00.025) 0:00:49.446 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:19:32 +0000 (0:00:00.028) 0:00:49.475 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:19:32 +0000 (0:00:00.046) 0:00:49.521 ******** ok: [sut] => { "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.041919", "end": "2024-01-12 20:19:32.351306", "rc": 0, "start": "2024-01-12 20:19:32.309387" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tests_states.yml:103 Friday 12 January 2024 20:19:32 +0000 (0:00:00.270) 0:00:49.792 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:19:32 +0000 (0:00:00.094) 0:00:49.886 ******** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:19:32 +0000 (0:00:00.034) 0:00:49.920 ******** 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": false, "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_type8oek0enz/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:19:32 +0000 (0:00:00.080) 0:00:50.001 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:19:32 +0000 (0:00:00.079) 0:00:50.080 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:19:32 +0000 (0:00:00.071) 0:00:50.152 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002901", "end": "2024-01-12 20:19:32.923109", "rc": 0, "start": "2024-01-12 20:19:32.920208" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:19:32 +0000 (0:00:00.221) 0:00:50.374 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:19:33 +0000 (0:00:00.040) 0:00:50.414 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:19:33 +0000 (0:00:00.032) 0:00:50.447 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:19:33 +0000 (0:00:00.061) 0:00:50.509 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:33 +0000 (0:00:00.041) 0:00:50.550 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:33 +0000 (0:00:00.067) 0:00:50.618 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:33 +0000 (0:00:00.128) 0:00:50.747 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:33 +0000 (0:00:00.030) 0:00:50.777 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:33 +0000 (0:00:00.031) 0:00:50.809 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:34 +0000 (0:00:01.516) 0:00:52.325 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:36 +0000 (0:00:01.301) 0:00:53.626 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:36 +0000 (0:00:00.026) 0:00:53.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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:36 +0000 (0:00:00.046) 0:00:53.699 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:36 +0000 (0:00:00.024) 0:00:53.724 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:36 +0000 (0:00:00.045) 0:00:53.769 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:36 +0000 (0:00:00.023) 0:00:53.793 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:36 +0000 (0:00:00.022) 0:00:53.816 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:36 +0000 (0:00:00.027) 0:00:53.843 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:36 +0000 (0:00:00.022) 0:00:53.866 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:36 +0000 (0:00:00.025) 0:00:53.891 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:36 +0000 (0:00:00.383) 0:00:54.275 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmp4u2fwwa9" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:37 +0000 (0:00:00.350) 0:00:54.625 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:37 +0000 (0:00:00.319) 0:00:54.944 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:37 +0000 (0:00:00.025) 0:00:54.970 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:37 +0000 (0:00:00.025) 0:00:54.995 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:37 +0000 (0:00:00.058) 0:00:55.054 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:37 +0000 (0:00:00.022) 0:00:55.077 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:19:37 +0000 (0:00:00.200) 0:00:55.277 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:19:37 +0000 (0:00:00.029) 0:00:55.307 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:37 +0000 (0:00:00.043) 0:00:55.350 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:37 +0000 (0:00:00.044) 0:00:55.394 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:38 +0000 (0:00:00.029) 0:00:55.424 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:38 +0000 (0:00:00.025) 0:00:55.450 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:38 +0000 (0:00:00.024) 0:00:55.474 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:39 +0000 (0:00:01.559) 0:00:57.033 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:40 +0000 (0:00:01.296) 0:00:58.330 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:40 +0000 (0:00:00.036) 0:00:58.366 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:41 +0000 (0:00:00.041) 0:00:58.408 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:41 +0000 (0:00:00.065) 0:00:58.473 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:41 +0000 (0:00:00.106) 0:00:58.580 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:41 +0000 (0:00:00.025) 0:00:58.605 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:41 +0000 (0:00:00.031) 0:00:58.637 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:41 +0000 (0:00:00.028) 0:00:58.665 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:41 +0000 (0:00:00.027) 0:00:58.692 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:41 +0000 (0:00:00.092) 0:00:58.785 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:41 +0000 (0:00:00.355) 0:00:59.140 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmphcid22ha" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:42 +0000 (0:00:00.298) 0:00:59.438 ******** changed: [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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:42 +0000 (0:00:00.566) 0:01:00.005 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:42 +0000 (0:00:00.041) 0:01:00.046 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:42 +0000 (0:00:00.029) 0:01:00.076 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:42 +0000 (0:00:00.029) 0:01:00.106 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:42 +0000 (0:00:00.023) 0:01:00.130 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove_profile.yml:3 Friday 12 January 2024 20:19:42 +0000 (0:00:00.194) 0:01:00.324 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:42 +0000 (0:00:00.041) 0:01:00.366 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:43 +0000 (0:00:00.087) 0:01:00.453 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:43 +0000 (0:00:00.029) 0:01:00.483 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:43 +0000 (0:00:00.022) 0:01:00.506 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:43 +0000 (0:00:00.024) 0:01:00.530 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:44 +0000 (0:00:01.515) 0:01:02.045 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:45 +0000 (0:00:01.329) 0:01:03.375 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:45 +0000 (0:00:00.026) 0:01:03.401 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:46 +0000 (0:00:00.024) 0:01:03.425 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:46 +0000 (0:00:00.025) 0:01:03.451 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:46 +0000 (0:00:00.070) 0:01:03.522 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:46 +0000 (0:00:00.054) 0:01:03.576 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:46 +0000 (0:00:00.037) 0:01:03.614 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:46 +0000 (0:00:00.027) 0:01:03.641 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:46 +0000 (0:00:00.031) 0:01:03.672 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:46 +0000 (0:00:00.023) 0:01:03.696 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:46 +0000 (0:00:00.345) 0:01:04.041 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpgkn8asdo" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:46 +0000 (0:00:00.305) 0:01:04.346 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:47 +0000 (0:00:00.342) 0:01:04.689 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:47 +0000 (0:00:00.123) 0:01:04.812 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:47 +0000 (0:00:00.046) 0:01:04.859 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:47 +0000 (0:00:00.050) 0:01:04.909 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:47 +0000 (0:00:00.054) 0:01:04.963 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:19:47 +0000 (0:00:00.201) 0:01:05.164 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove+down_profile.yml:3 Friday 12 January 2024 20:19:47 +0000 (0:00:00.082) 0:01:05.246 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:47 +0000 (0:00:00.054) 0:01:05.301 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:47 +0000 (0:00:00.064) 0:01:05.366 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:47 +0000 (0:00:00.035) 0:01:05.401 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:48 +0000 (0:00:00.031) 0:01:05.433 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:48 +0000 (0:00:00.024) 0:01:05.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 : Check which packages are installed] ********* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:49 +0000 (0:00:01.513) 0:01:06.970 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:50 +0000 (0:00:01.291) 0:01:08.262 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:50 +0000 (0:00:00.026) 0:01:08.288 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:50 +0000 (0:00:00.028) 0:01:08.316 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:50 +0000 (0:00:00.023) 0:01:08.339 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:51 +0000 (0:00:00.102) 0:01:08.441 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:51 +0000 (0:00:00.025) 0:01:08.467 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:51 +0000 (0:00:00.022) 0:01:08.490 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:51 +0000 (0:00:00.029) 0:01:08.520 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:51 +0000 (0:00:00.023) 0:01:08.543 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:51 +0000 (0:00:00.022) 0:01:08.566 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:51 +0000 (0:00:00.384) 0:01:08.951 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpwvnv4v_v" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:51 +0000 (0:00:00.390) 0:01:09.341 ******** 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": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:52 +0000 (0:00:00.335) 0:01:09.677 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:52 +0000 (0:00:00.041) 0:01:09.718 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:52 +0000 (0:00:00.045) 0:01:09.763 ******** 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": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:52 +0000 (0:00:00.034) 0:01:09.797 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:52 +0000 (0:00:00.026) 0:01:09.824 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:19:52 +0000 (0:00:00.241) 0:01:10.065 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml:3 Friday 12 January 2024 20:19:52 +0000 (0:00:00.077) 0:01:10.143 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:19:52 +0000 (0:00:00.065) 0:01:10.209 ******** 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:19:52 +0000 (0:00:00.037) 0:01:10.247 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:19:53 +0000 (0:00:00.202) 0:01:10.449 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:19:53 +0000 (0:00:00.022) 0:01:10.472 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019553", "end": "2024-01-12 20:19:53.250943", "rc": 1, "start": "2024-01-12 20:19:53.231390" } 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:19:53 +0000 (0:00:00.216) 0:01:10.688 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:19:53 +0000 (0:00:00.026) 0:01:10.715 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:19:53 +0000 (0:00:00.027) 0:01:10.743 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:19:53 +0000 (0:00:00.026) 0:01:10.769 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:19:53 +0000 (0:00:00.026) 0:01:10.796 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml:5 Friday 12 January 2024 20:19:53 +0000 (0:00:00.025) 0:01:10.822 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:19:53 +0000 (0:00:00.069) 0:01:10.891 ******** skipping: [sut] => (item={'what': 'tasks/assert_device_absent.yml', 'condition': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "condition": false, "what": "tasks/assert_device_absent.yml" }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can take a profile down that is absent'] ************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:19:53 +0000 (0:00:00.056) 0:01:10.948 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:19:53 +0000 (0:00:00.034) 0:01:10.983 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:19:53 +0000 (0:00:00.045) 0:01:11.028 ******** ok: [sut] => { "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.045060", "end": "2024-01-12 20:19:53.835768", "rc": 0, "start": "2024-01-12 20:19:53.790708" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tests_states.yml:126 Friday 12 January 2024 20:19:53 +0000 (0:00:00.251) 0:01:11.280 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:19:53 +0000 (0:00:00.045) 0:01:11.325 ******** 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_type8oek0enz/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:19:53 +0000 (0:00:00.030) 0:01:11.356 ******** 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": false, "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_type8oek0enz/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:19:54 +0000 (0:00:00.092) 0:01:11.448 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:19:54 +0000 (0:00:00.052) 0:01:11.501 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:19:54 +0000 (0:00:00.043) 0:01:11.544 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002853", "end": "2024-01-12 20:19:54.305733", "rc": 0, "start": "2024-01-12 20:19:54.302880" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:19:54 +0000 (0:00:00.218) 0:01:11.762 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:19:54 +0000 (0:00:00.073) 0:01:11.836 ******** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:19:54 +0000 (0:00:00.026) 0:01:11.863 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:19:54 +0000 (0:00:00.053) 0:01:11.916 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:54 +0000 (0:00:00.042) 0:01:11.959 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:54 +0000 (0:00:00.052) 0:01:12.011 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:54 +0000 (0:00:00.031) 0:01:12.043 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:54 +0000 (0:00:00.041) 0:01:12.084 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:54 +0000 (0:00:00.027) 0:01:12.112 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:19:56 +0000 (0:00:01.565) 0:01:13.677 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:19:57 +0000 (0:00:01.295) 0:01:14.973 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:19:57 +0000 (0:00:00.024) 0:01:14.998 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:19:57 +0000 (0:00:00.024) 0:01:15.023 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:19:57 +0000 (0:00:00.025) 0:01:15.049 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:19:57 +0000 (0:00:00.054) 0:01:15.103 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:19:57 +0000 (0:00:00.037) 0:01:15.141 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:19:57 +0000 (0:00:00.025) 0:01:15.167 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:19:57 +0000 (0:00:00.036) 0:01:15.204 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:19:57 +0000 (0:00:00.071) 0:01:15.275 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:19:57 +0000 (0:00:00.023) 0:01:15.299 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:19:58 +0000 (0:00:00.350) 0:01:15.650 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpkqvgx5wn" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:19:58 +0000 (0:00:00.314) 0:01:15.964 ******** 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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:19:58 +0000 (0:00:00.301) 0:01:16.265 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:19:58 +0000 (0:00:00.026) 0:01:16.292 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:19:58 +0000 (0:00:00.026) 0:01:16.318 ******** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:19:58 +0000 (0:00:00.026) 0:01:16.345 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:19:58 +0000 (0:00:00.025) 0:01:16.370 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:19:59 +0000 (0:00:00.193) 0:01:16.563 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:19:59 +0000 (0:00:00.026) 0:01:16.590 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:19:59 +0000 (0:00:00.080) 0:01:16.670 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:19:59 +0000 (0:00:00.045) 0:01:16.716 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:19:59 +0000 (0:00:00.030) 0:01:16.746 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:19:59 +0000 (0:00:00.024) 0:01:16.771 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:19:59 +0000 (0:00:00.024) 0:01:16.796 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:20:00 +0000 (0:00:01.518) 0:01:18.314 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:20:02 +0000 (0:00:01.363) 0:01:19.678 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:20:02 +0000 (0:00:00.028) 0:01:19.706 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:20:02 +0000 (0:00:00.033) 0:01:19.740 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:20:02 +0000 (0:00:00.040) 0:01:19.780 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:20:02 +0000 (0:00:00.074) 0:01:19.855 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:20:02 +0000 (0:00:00.029) 0:01:19.884 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:20:02 +0000 (0:00:00.041) 0:01:19.925 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:20:02 +0000 (0:00:00.028) 0:01:19.954 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:20:02 +0000 (0:00:00.024) 0:01:19.978 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:20:02 +0000 (0:00:00.022) 0:01:20.000 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:20:02 +0000 (0:00:00.346) 0:01:20.347 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmp2_k64tqh" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:20:03 +0000 (0:00:00.342) 0:01:20.690 ******** changed: [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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:20:03 +0000 (0:00:00.561) 0:01:21.251 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:20:03 +0000 (0:00:00.024) 0:01:21.275 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:20:03 +0000 (0:00:00.025) 0:01:21.301 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:20:03 +0000 (0:00:00.025) 0:01:21.327 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:20:03 +0000 (0:00:00.023) 0:01:21.350 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove+down_profile.yml:3 Friday 12 January 2024 20:20:04 +0000 (0:00:00.195) 0:01:21.545 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:20:04 +0000 (0:00:00.039) 0:01:21.585 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:20:04 +0000 (0:00:00.044) 0:01:21.630 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:20:04 +0000 (0:00:00.028) 0:01:21.659 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:20:04 +0000 (0:00:00.022) 0:01:21.682 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:20:04 +0000 (0:00:00.050) 0:01:21.732 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:20:05 +0000 (0:00:01.518) 0:01:23.251 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:20:07 +0000 (0:00:01.298) 0:01:24.549 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:20:07 +0000 (0:00:00.047) 0:01:24.596 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:20:07 +0000 (0:00:00.023) 0:01:24.620 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:20:07 +0000 (0:00:00.022) 0:01:24.642 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:20:07 +0000 (0:00:00.050) 0:01:24.692 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:20:07 +0000 (0:00:00.034) 0:01:24.726 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:20:07 +0000 (0:00:00.026) 0:01:24.752 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:20:07 +0000 (0:00:00.027) 0:01:24.780 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:20:07 +0000 (0:00:00.026) 0:01:24.806 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:20:07 +0000 (0:00:00.029) 0:01:24.836 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:20:07 +0000 (0:00:00.344) 0:01:25.180 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpwwfkb_j0" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:20:08 +0000 (0:00:00.297) 0:01:25.477 ******** 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": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:20:08 +0000 (0:00:00.304) 0:01:25.782 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:20:08 +0000 (0:00:00.023) 0:01:25.805 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:20:08 +0000 (0:00:00.057) 0:01:25.863 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:20:08 +0000 (0:00:00.027) 0:01:25.890 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:20:08 +0000 (0:00:00.025) 0:01:25.916 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:20:08 +0000 (0:00:00.193) 0:01:26.109 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/remove+down_profile.yml:3 Friday 12 January 2024 20:20:08 +0000 (0:00:00.044) 0:01:26.154 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:20:08 +0000 (0:00:00.039) 0:01:26.194 ******** included: /WORKDIR/git-route_type8oek0enz/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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:20:08 +0000 (0:00:00.046) 0:01:26.240 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:20:08 +0000 (0:00:00.030) 0:01:26.271 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:20:08 +0000 (0:00:00.023) 0:01:26.294 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:20:08 +0000 (0:00:00.023) 0:01:26.318 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:20:10 +0000 (0:00:01.511) 0:01:27.829 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:20:11 +0000 (0:00:01.298) 0:01:29.127 ******** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:20:11 +0000 (0:00:00.024) 0:01:29.152 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:20:11 +0000 (0:00:00.022) 0:01:29.175 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:20:11 +0000 (0:00:00.023) 0:01:29.199 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:20:11 +0000 (0:00:00.053) 0:01:29.253 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:20:11 +0000 (0:00:00.051) 0:01:29.304 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:20:11 +0000 (0:00:00.023) 0:01:29.328 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:20:11 +0000 (0:00:00.027) 0:01:29.356 ******** 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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:20:11 +0000 (0:00:00.025) 0:01:29.381 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:20:11 +0000 (0:00:00.024) 0:01:29.405 ******** 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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:20:12 +0000 (0:00:00.343) 0:01:29.749 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-18426pg9c1b_u/tmpgkggsx47" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:20:12 +0000 (0:00:00.300) 0:01:30.050 ******** 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": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:20:12 +0000 (0:00:00.289) 0:01:30.340 ******** 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_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:20:12 +0000 (0:00:00.023) 0:01:30.363 ******** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:20:12 +0000 (0:00:00.030) 0:01:30.394 ******** 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": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:20:13 +0000 (0:00:00.027) 0:01:30.421 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:20:13 +0000 (0:00:00.024) 0:01:30.445 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:20:13 +0000 (0:00:00.224) 0:01:30.670 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml:3 Friday 12 January 2024 20:20:13 +0000 (0:00:00.046) 0:01:30.716 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:20:13 +0000 (0:00:00.041) 0:01:30.758 ******** 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:20:13 +0000 (0:00:00.024) 0:01:30.783 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:20:13 +0000 (0:00:00.200) 0:01:30.983 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:20:13 +0000 (0:00:00.024) 0:01:31.008 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.019773", "end": "2024-01-12 20:20:13.785393", "rc": 1, "start": "2024-01-12 20:20:13.765620" } 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_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:20:13 +0000 (0:00:00.216) 0:01:31.225 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:20:13 +0000 (0:00:00.024) 0:01:31.249 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:20:13 +0000 (0:00:00.024) 0:01:31.273 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:20:13 +0000 (0:00:00.026) 0:01:31.300 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:20:13 +0000 (0:00:00.025) 0:01:31.325 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/assert_profile_absent.yml:5 Friday 12 January 2024 20:20:13 +0000 (0:00:00.024) 0:01:31.350 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Friday 12 January 2024 20:20:13 +0000 (0:00:00.028) 0:01:31.378 ******** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.933612", "end": "2024-01-12 20:20:15.069639", "rc": 0, "start": "2024-01-12 20:20:14.136027" } STDOUT: NetworkManager-1.40.16-11.el8 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Friday 12 January 2024 20:20:15 +0000 (0:00:01.129) 0:01:32.508 ******** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.40.16-11.el8" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Friday 12 January 2024 20:20:15 +0000 (0:00:00.024) 0:01:32.532 ******** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.40.16-11.el8" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:20:15 +0000 (0:00:00.023) 0:01:32.556 ******** skipping: [sut] => (item={'what': 'tasks/assert_device_absent.yml', 'condition': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "condition": false, "what": "tasks/assert_device_absent.yml" }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:20:15 +0000 (0:00:00.028) 0:01:32.584 ******** 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_type8oek0enz/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:20:15 +0000 (0:00:00.023) 0:01:32.608 ******** included: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_type8oek0enz/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:20:15 +0000 (0:00:00.044) 0:01:32.653 ******** ok: [sut] => { "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.043137", "end": "2024-01-12 20:20:15.454328", "rc": 0, "start": "2024-01-12 20:20:15.411191" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=333 changed=13 unreachable=0 failed=0 skipped=226 rescued=0 ignored=10 Friday 12 January 2024 20:20:15 +0000 (0:00:00.228) 0:01:32.881 ******** =============================================================================== linux-system-roles.network : Configure networking connection profiles --- 2.32s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable network service --------------------- 2.01s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 linux-system-roles.network : Configure networking connection profiles --- 1.84s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Ensure initscripts network file dependency is present --- 1.72s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:113 linux-system-roles.network : Enable network service --------------------- 1.70s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/main.yml:105 linux-system-roles.network : Check which services are running ----------- 1.59s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.59s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.57s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.57s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.56s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.55s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.54s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.54s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.51s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.51s /WORKDIR/git-route_type8oek0enz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. [WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---