# 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_typeuxysm9b5/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/tests_states_initscripts.yml:5 Monday 08 January 2024 14:39:36 +0000 (0:00:00.011) 0:00:00.011 ******** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/tests_states_initscripts.yml:8 Monday 08 January 2024 14:39:37 +0000 (0:00:00.896) 0:00:00.908 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/tasks/el_repo_setup.yml:3 Monday 08 January 2024 14:39:37 +0000 (0:00:00.024) 0:00:00.932 ******** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/el_repo_setup.yml:19 Monday 08 January 2024 14:39:37 +0000 (0:00:00.239) 0:00:01.172 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/el_repo_setup.yml:24 Monday 08 January 2024 14:39:37 +0000 (0:00:00.201) 0:00:01.374 ******** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/el_repo_setup.yml:28 Monday 08 January 2024 14:39:37 +0000 (0:00:00.020) 0:00:01.395 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/el_repo_setup.yml:53 Monday 08 January 2024 14:39:37 +0000 (0:00:00.016) 0:00:01.412 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/enable_epel.yml:8 Monday 08 January 2024 14:39:37 +0000 (0:00:00.031) 0:00:01.444 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/enable_epel.yml:24 Monday 08 January 2024 14:39:37 +0000 (0:00:00.011) 0:00:01.456 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/enable_epel.yml:30 Monday 08 January 2024 14:39:37 +0000 (0:00:00.010) 0:00:01.466 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/enable_epel.yml:35 Monday 08 January 2024 14:39:37 +0000 (0:00:00.010) 0:00:01.477 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tasks/enable_epel.yml:40 Monday 08 January 2024 14:39:37 +0000 (0:00:00.010) 0:00:01.487 ******** ok: [sut] => { "changed": false, "checksum": "4bafddfe7badb0971135c888f25df1308b193622", "dest": "/etc/yum.repos.d/epel.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/epel.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 155, "state": "file", "uid": 0 } TASK [Set network provider to 'initscripts'] *********************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/tests_states_initscripts.yml:10 Monday 08 January 2024 14:39:38 +0000 (0:00:00.442) 0:00:01.929 ******** 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_typeuxysm9b5/tests/playbooks/tests_states.yml:3 Monday 08 January 2024 14:39:38 +0000 (0:00:00.010) 0:00:01.940 ******** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tests_states.yml:11 Monday 08 January 2024 14:39:39 +0000 (0:00:00.707) 0:00:02.647 ******** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tests_states.yml:22 Monday 08 January 2024 14:39:39 +0000 (0:00:00.011) 0:00:02.659 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:39:39 +0000 (0:00:00.017) 0:00:02.676 ******** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:39:39 +0000 (0:00:00.011) 0:00:02.688 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:39:39 +0000 (0:00:00.036) 0:00:02.724 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:39:39 +0000 (0:00:00.015) 0:00:02.739 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:39:39 +0000 (0:00:00.014) 0:00:02.754 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003372", "end": "2024-01-08 14:39:39.459627", "rc": 0, "start": "2024-01-08 14:39:39.456255" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:39:39 +0000 (0:00:00.191) 0:00:02.945 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:39:39 +0000 (0:00:00.013) 0:00:02.958 ******** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:39:39 +0000 (0:00:00.011) 0:00:02.970 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/delete_interface.yml:3 Monday 08 January 2024 14:39:39 +0000 (0:00:00.022) 0:00:02.992 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.034231", "end": "2024-01-08 14:39:39.662594", "rc": 255, "start": "2024-01-08 14:39:39.628363" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:39:39 +0000 (0:00:00.153) 0:00:03.146 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:39:39 +0000 (0:00:00.017) 0:00:03.163 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:39:39 +0000 (0:00:00.130) 0:00:03.294 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:39:39 +0000 (0:00:00.013) 0:00:03.307 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:39:39 +0000 (0:00:00.019) 0:00:03.326 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:39:39 +0000 (0:00:00.033) 0:00:03.360 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:39:39 +0000 (0:00:00.070) 0:00:03.431 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:39:39 +0000 (0:00:00.013) 0:00:03.444 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:39:39 +0000 (0:00:00.010) 0:00:03.454 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:39:39 +0000 (0:00:00.010) 0:00:03.465 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:39:41 +0000 (0:00:01.778) 0:00:05.244 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:39:42 +0000 (0:00:00.725) 0:00:05.969 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:39:42 +0000 (0:00:00.021) 0:00:05.990 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:39:42 +0000 (0:00:00.020) 0:00:06.011 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:39:42 +0000 (0:00:00.019) 0:00:06.030 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:39:42 +0000 (0:00:00.055) 0:00:06.086 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:39:42 +0000 (0:00:00.020) 0:00:06.106 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:39:42 +0000 (0:00:00.020) 0:00:06.127 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:39:42 +0000 (0:00:00.023) 0:00:06.151 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:39:42 +0000 (0:00:00.020) 0:00:06.172 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:39:42 +0000 (0:00:00.020) 0:00:06.193 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:39:42 +0000 (0:00:00.279) 0:00:06.472 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmp7_0tukey" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:39:43 +0000 (0:00:00.196) 0:00:06.668 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:39:43 +0000 (0:00:00.371) 0:00:07.040 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:39:43 +0000 (0:00:00.020) 0:00:07.061 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:39:43 +0000 (0:00:00.021) 0:00:07.082 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:39:43 +0000 (0:00:00.021) 0:00:07.104 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:39:43 +0000 (0:00:00.020) 0:00:07.125 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:39:43 +0000 (0:00:00.208) 0:00:07.334 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:39:43 +0000 (0:00:00.021) 0:00:07.355 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:39:43 +0000 (0:00:00.060) 0:00:07.415 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:39:43 +0000 (0:00:00.036) 0:00:07.451 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:39:43 +0000 (0:00:00.020) 0:00:07.472 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724783.545161, "block_size": 4096, "blocks": 8, "ctime": 1704724783.545161, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 18845, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1704724783.545161, "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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:39:44 +0000 (0:00:00.130) 0:00:07.603 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:39:44 +0000 (0:00:00.021) 0:00:07.624 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.005004", "end": "2024-01-08 14:39:44.271937", "rc": 1, "start": "2024-01-08 14:39:44.266933" } STDERR: /bin/sh: nmcli: command not found 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:39:44 +0000 (0:00:00.137) 0:00:07.762 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:39:44 +0000 (0:00:00.023) 0:00:07.785 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003183", "end": "2024-01-08 14:39:44.432710", "rc": 0, "start": "2024-01-08 14:39:44.429527" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:39:44 +0000 (0:00:00.140) 0:00:07.926 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:39:44 +0000 (0:00:00.025) 0:00:07.951 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003253", "end": "2024-01-08 14:39:44.599717", "rc": 0, "start": "2024-01-08 14:39:44.596464" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:39:44 +0000 (0:00:00.140) 0:00:08.092 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:39:44 +0000 (0:00:00.024) 0:00:08.117 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:39:44 +0000 (0:00:00.022) 0:00:08.140 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:39:44 +0000 (0:00:00.022) 0:00:08.163 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:39:44 +0000 (0:00:00.043) 0:00:08.206 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:39:44 +0000 (0:00:00.025) 0:00:08.232 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:39:44 +0000 (0:00:00.021) 0:00:08.253 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:39:44 +0000 (0:00:00.039) 0:00:08.292 ******** 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.016432", "end": "2024-01-08 14:39:44.949492", "rc": 255, "start": "2024-01-08 14:39:44.933060" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tests_states.yml:45 Monday 08 January 2024 14:39:44 +0000 (0:00:00.147) 0:00:08.440 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:39:44 +0000 (0:00:00.034) 0:00:08.475 ******** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:39:45 +0000 (0:00:00.020) 0:00:08.496 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:39:45 +0000 (0:00:00.043) 0:00:08.539 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:39:45 +0000 (0:00:00.033) 0:00:08.572 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:39:45 +0000 (0:00:00.032) 0:00:08.604 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003349", "end": "2024-01-08 14:39:45.249532", "rc": 0, "start": "2024-01-08 14:39:45.246183" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:39:45 +0000 (0:00:00.135) 0:00:08.740 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:39:45 +0000 (0:00:00.021) 0:00:08.762 ******** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:39:45 +0000 (0:00:00.044) 0:00:08.807 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/delete_interface.yml:3 Monday 08 January 2024 14:39:45 +0000 (0:00:00.039) 0:00:08.847 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.004694", "end": "2024-01-08 14:39:45.493455", "rc": 255, "start": "2024-01-08 14:39:45.488761" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:39:45 +0000 (0:00:00.137) 0:00:08.984 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:39:45 +0000 (0:00:00.034) 0:00:09.018 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:39:45 +0000 (0:00:00.130) 0:00:09.148 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:39:45 +0000 (0:00:00.022) 0:00:09.171 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Monday 08 January 2024 14:39:45 +0000 (0:00:00.037) 0:00:09.209 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:39:45 +0000 (0:00:00.038) 0:00:09.247 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:39:45 +0000 (0:00:00.038) 0:00:09.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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:39:45 +0000 (0:00:00.024) 0:00:09.311 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:39:45 +0000 (0:00:00.019) 0:00:09.330 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:39:45 +0000 (0:00:00.041) 0:00:09.371 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:39:47 +0000 (0:00:01.535) 0:00:10.907 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:39:47 +0000 (0:00:00.585) 0:00:11.492 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:39:48 +0000 (0:00:00.022) 0:00:11.515 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:39:48 +0000 (0:00:00.021) 0:00:11.536 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:39:48 +0000 (0:00:00.021) 0:00:11.557 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:39:48 +0000 (0:00:00.042) 0:00:11.600 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:39:48 +0000 (0:00:00.042) 0:00:11.643 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:39:48 +0000 (0:00:00.021) 0:00:11.664 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:39:48 +0000 (0:00:00.023) 0:00:11.688 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:39:48 +0000 (0:00:00.021) 0:00:11.709 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:39:48 +0000 (0:00:00.020) 0:00:11.730 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:39:48 +0000 (0:00:00.194) 0:00:11.924 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmptki4y46e" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:39:48 +0000 (0:00:00.198) 0:00:12.123 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:39:48 +0000 (0:00:00.240) 0:00:12.364 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:39:48 +0000 (0:00:00.020) 0:00:12.384 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:39:48 +0000 (0:00:00.021) 0:00:12.406 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:39:48 +0000 (0:00:00.021) 0:00:12.428 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:39:48 +0000 (0:00:00.019) 0:00:12.447 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Monday 08 January 2024 14:39:49 +0000 (0:00:00.126) 0:00:12.573 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:39:49 +0000 (0:00:00.021) 0:00:12.595 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml:3 Monday 08 January 2024 14:39:49 +0000 (0:00:00.064) 0:00:12.659 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:39:49 +0000 (0:00:00.034) 0:00:12.694 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_absent.yml:5 Monday 08 January 2024 14:39:49 +0000 (0:00:00.131) 0:00:12.825 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:39:49 +0000 (0:00:00.023) 0:00:12.848 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:39:49 +0000 (0:00:00.035) 0:00:12.884 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:39:49 +0000 (0:00:00.020) 0:00:12.905 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724788.8728235, "block_size": 4096, "blocks": 8, "ctime": 1704724788.8728235, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 18845, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1704724788.8728235, "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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:39:49 +0000 (0:00:00.130) 0:00:13.035 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:39:49 +0000 (0:00:00.021) 0:00:13.057 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.005004", "end": "2024-01-08 14:39:49.705981", "rc": 1, "start": "2024-01-08 14:39:49.700977" } STDERR: /bin/sh: nmcli: command not found 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:39:49 +0000 (0:00:00.136) 0:00:13.193 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:39:49 +0000 (0:00:00.022) 0:00:13.216 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003225", "end": "2024-01-08 14:39:49.866746", "rc": 0, "start": "2024-01-08 14:39:49.863521" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:39:49 +0000 (0:00:00.141) 0:00:13.357 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:39:49 +0000 (0:00:00.025) 0:00:13.383 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003247", "end": "2024-01-08 14:39:50.033456", "rc": 0, "start": "2024-01-08 14:39:50.030209" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:39:50 +0000 (0:00:00.140) 0:00:13.523 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:39:50 +0000 (0:00:00.051) 0:00:13.574 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:39:50 +0000 (0:00:00.024) 0:00:13.599 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:39:50 +0000 (0:00:00.022) 0:00:13.622 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:39:50 +0000 (0:00:00.022) 0:00:13.644 ******** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:39:50 +0000 (0:00:00.019) 0:00:13.664 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:39:50 +0000 (0:00:00.021) 0:00:13.685 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:39:50 +0000 (0:00:00.040) 0:00:13.725 ******** 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.013596", "end": "2024-01-08 14:39:50.383766", "rc": 255, "start": "2024-01-08 14:39:50.370170" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tests_states.yml:65 Monday 08 January 2024 14:39:50 +0000 (0:00:00.145) 0:00:13.871 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:39:50 +0000 (0:00:00.035) 0:00:13.906 ******** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:39:50 +0000 (0:00:00.020) 0:00:13.927 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:39:50 +0000 (0:00:00.047) 0:00:13.974 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:39:50 +0000 (0:00:00.034) 0:00:14.009 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:39:50 +0000 (0:00:00.033) 0:00:14.043 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003362", "end": "2024-01-08 14:39:50.692135", "rc": 0, "start": "2024-01-08 14:39:50.688773" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:39:50 +0000 (0:00:00.136) 0:00:14.179 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:39:50 +0000 (0:00:00.022) 0:00:14.202 ******** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:39:50 +0000 (0:00:00.020) 0:00:14.222 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:39:50 +0000 (0:00:00.036) 0:00:14.259 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:39:50 +0000 (0:00:00.034) 0:00:14.293 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:39:50 +0000 (0:00:00.038) 0:00:14.332 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:39:50 +0000 (0:00:00.025) 0:00:14.357 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:39:50 +0000 (0:00:00.019) 0:00:14.376 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:39:50 +0000 (0:00:00.019) 0:00:14.396 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:39:52 +0000 (0:00:01.442) 0:00:15.838 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:39:52 +0000 (0:00:00.589) 0:00:16.427 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:39:52 +0000 (0:00:00.022) 0:00:16.449 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:39:52 +0000 (0:00:00.020) 0:00:16.470 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:39:52 +0000 (0:00:00.020) 0:00:16.491 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:39:53 +0000 (0:00:00.042) 0:00:16.533 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:39:53 +0000 (0:00:00.020) 0:00:16.554 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:39:53 +0000 (0:00:00.021) 0:00:16.575 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:39:53 +0000 (0:00:00.023) 0:00:16.599 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:39:53 +0000 (0:00:00.020) 0:00:16.619 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:39:53 +0000 (0:00:00.019) 0:00:16.639 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:39:53 +0000 (0:00:00.215) 0:00:16.855 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmp3fff0hls" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:39:53 +0000 (0:00:00.195) 0:00:17.050 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:39:53 +0000 (0:00:00.234) 0:00:17.285 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:39:53 +0000 (0:00:00.020) 0:00:17.306 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:39:53 +0000 (0:00:00.022) 0:00:17.328 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:39:53 +0000 (0:00:00.022) 0:00:17.350 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:39:53 +0000 (0:00:00.019) 0:00:17.370 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:39:54 +0000 (0:00:00.132) 0:00:17.502 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:39:54 +0000 (0:00:00.023) 0:00:17.526 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:39:54 +0000 (0:00:00.037) 0:00:17.563 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:39:54 +0000 (0:00:00.040) 0:00:17.604 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:39:54 +0000 (0:00:00.038) 0:00:17.643 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:39:54 +0000 (0:00:00.025) 0:00:17.668 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:39:54 +0000 (0:00:00.047) 0:00:17.716 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:39:54 +0000 (0:00:00.023) 0:00:17.739 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:39:55 +0000 (0:00:01.418) 0:00:19.157 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:39:56 +0000 (0:00:00.581) 0:00:19.739 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:39:56 +0000 (0:00:00.022) 0:00:19.761 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:39:56 +0000 (0:00:00.022) 0:00:19.783 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:39:56 +0000 (0:00:00.022) 0:00:19.805 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:39:56 +0000 (0:00:00.093) 0:00:19.899 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:39:56 +0000 (0:00:00.031) 0:00:19.931 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:39:56 +0000 (0:00:00.021) 0:00:19.953 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:39:56 +0000 (0:00:00.024) 0:00:19.977 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:39:56 +0000 (0:00:00.021) 0:00:19.999 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:39:56 +0000 (0:00:00.021) 0:00:20.020 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:39:56 +0000 (0:00:00.191) 0:00:20.212 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmp5ftlc0l7" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:39:56 +0000 (0:00:00.195) 0:00:20.408 ******** 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='', err='' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:39:57 +0000 (0:00:00.377) 0:00:20.785 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:39:57 +0000 (0:00:00.021) 0:00:20.806 ******** 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='', err=''" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:39:57 +0000 (0:00:00.023) 0:00:20.829 ******** 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='', err=''\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='', err=''" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:39:57 +0000 (0:00:00.024) 0:00:20.854 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:39:57 +0000 (0:00:00.020) 0:00:20.874 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:39:57 +0000 (0:00:00.126) 0:00:21.001 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:39:57 +0000 (0:00:00.063) 0:00:21.064 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:39:57 +0000 (0:00:00.034) 0:00:21.098 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724797.2109904, "block_size": 4096, "blocks": 0, "ctime": 1704724797.20999, "dev": 0, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 6471, "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": 1704724797.20999, "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_typeuxysm9b5/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:39:57 +0000 (0:00:00.131) 0:00:21.230 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:3 Monday 08 January 2024 14:39:57 +0000 (0:00:00.022) 0:00:21.252 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:39:57 +0000 (0:00:00.036) 0:00:21.288 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:39:57 +0000 (0:00:00.020) 0:00:21.309 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724795.2980344, "block_size": 4096, "blocks": 8, "ctime": 1704724793.796284, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 18845, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1704724793.796284, "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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:39:57 +0000 (0:00:00.132) 0:00:21.441 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:39:57 +0000 (0:00:00.024) 0:00:21.466 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.004944", "end": "2024-01-08 14:39:58.125019", "rc": 1, "start": "2024-01-08 14:39:58.120075" } STDERR: /bin/sh: nmcli: command not found 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:39:58 +0000 (0:00:00.143) 0:00:21.610 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:39:58 +0000 (0:00:00.026) 0:00:21.636 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003167", "end": "2024-01-08 14:39:58.293884", "rc": 0, "start": "2024-01-08 14:39:58.290717" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:39:58 +0000 (0:00:00.142) 0:00:21.779 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:39:58 +0000 (0:00:00.026) 0:00:21.805 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003230", "end": "2024-01-08 14:39:58.457442", "rc": 0, "start": "2024-01-08 14:39:58.454212" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:39:58 +0000 (0:00:00.159) 0:00:21.965 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:5 Monday 08 January 2024 14:39:58 +0000 (0:00:00.026) 0:00:21.992 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:10 Monday 08 January 2024 14:39:58 +0000 (0:00:00.023) 0:00:22.015 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_present.yml:15 Monday 08 January 2024 14:39:58 +0000 (0:00:00.024) 0:00:22.039 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:39:58 +0000 (0:00:00.023) 0:00:22.063 ******** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:39:58 +0000 (0:00:00.021) 0:00:22.084 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:39:58 +0000 (0:00:00.022) 0:00:22.107 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:39:58 +0000 (0:00:00.038) 0:00:22.145 ******** 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.024681", "end": "2024-01-08 14:39:58.818531", "rc": 0, "start": "2024-01-08 14:39:58.793850" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tests_states.yml:83 Monday 08 January 2024 14:39:58 +0000 (0:00:00.164) 0:00:22.310 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:39:58 +0000 (0:00:00.035) 0:00:22.345 ******** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:39:58 +0000 (0:00:00.020) 0:00:22.366 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:39:58 +0000 (0:00:00.044) 0:00:22.410 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:39:58 +0000 (0:00:00.034) 0:00:22.444 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:39:59 +0000 (0:00:00.064) 0:00:22.509 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003341", "end": "2024-01-08 14:39:59.162026", "rc": 0, "start": "2024-01-08 14:39:59.158685" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:39:59 +0000 (0:00:00.137) 0:00:22.646 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:39:59 +0000 (0:00:00.021) 0:00:22.668 ******** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:39:59 +0000 (0:00:00.021) 0:00:22.689 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:39:59 +0000 (0:00:00.041) 0:00:22.731 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:39:59 +0000 (0:00:00.036) 0:00:22.768 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:39:59 +0000 (0:00:00.040) 0:00:22.808 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:39:59 +0000 (0:00:00.028) 0:00:22.836 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:39:59 +0000 (0:00:00.020) 0:00:22.857 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:39:59 +0000 (0:00:00.021) 0:00:22.878 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:00 +0000 (0:00:01.456) 0:00:24.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 : Print network provider] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:01 +0000 (0:00:00.586) 0:00:24.921 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:01 +0000 (0:00:00.022) 0:00:24.944 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:01 +0000 (0:00:00.022) 0:00:24.966 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:01 +0000 (0:00:00.023) 0:00:24.989 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:01 +0000 (0:00:00.045) 0:00:25.034 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:01 +0000 (0:00:00.023) 0:00:25.058 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:01 +0000 (0:00:00.021) 0:00:25.079 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:01 +0000 (0:00:00.024) 0:00:25.104 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:01 +0000 (0:00:00.021) 0:00:25.126 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:01 +0000 (0:00:00.020) 0:00:25.147 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:01 +0000 (0:00:00.204) 0:00:25.352 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmp38e6y66m" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:02 +0000 (0:00:00.205) 0:00:25.557 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:02 +0000 (0:00:00.250) 0:00:25.808 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:02 +0000 (0:00:00.020) 0:00:25.829 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:02 +0000 (0:00:00.022) 0:00:25.851 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:02 +0000 (0:00:00.021) 0:00:25.873 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:02 +0000 (0:00:00.021) 0:00:25.895 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:40:02 +0000 (0:00:00.128) 0:00:26.023 ******** 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_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:40:02 +0000 (0:00:00.021) 0:00:26.045 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:02 +0000 (0:00:00.034) 0:00:26.080 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:02 +0000 (0:00:00.038) 0:00:26.118 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:02 +0000 (0:00:00.025) 0:00:26.143 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:02 +0000 (0:00:00.019) 0:00:26.162 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:02 +0000 (0:00:00.043) 0:00:26.205 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:04 +0000 (0:00:01.532) 0:00:27.738 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:04 +0000 (0:00:00.592) 0:00:28.331 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:04 +0000 (0:00:00.022) 0:00:28.353 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:04 +0000 (0:00:00.020) 0:00:28.373 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:04 +0000 (0:00:00.020) 0:00:28.394 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:04 +0000 (0:00:00.060) 0:00:28.454 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:04 +0000 (0:00:00.021) 0:00:28.476 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:05 +0000 (0:00:00.020) 0:00:28.496 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:05 +0000 (0:00:00.022) 0:00:28.519 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:05 +0000 (0:00:00.020) 0:00:28.540 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:05 +0000 (0:00:00.019) 0:00:28.559 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:05 +0000 (0:00:00.191) 0:00:28.751 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmpsspr2ei2" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:05 +0000 (0:00:00.197) 0:00:28.949 ******** 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='', err='' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:05 +0000 (0:00:00.366) 0:00:29.315 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:05 +0000 (0:00:00.021) 0:00:29.336 ******** 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='', err=''" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:05 +0000 (0:00:00.023) 0:00:29.359 ******** 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='', err=''\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='', err=''" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:05 +0000 (0:00:00.023) 0:00:29.383 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:05 +0000 (0:00:00.021) 0:00:29.404 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:40:06 +0000 (0:00:00.128) 0:00:29.533 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove_profile.yml:3 Monday 08 January 2024 14:40:06 +0000 (0:00:00.067) 0:00:29.600 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:06 +0000 (0:00:00.041) 0:00:29.642 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:06 +0000 (0:00:00.040) 0:00:29.682 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:06 +0000 (0:00:00.025) 0:00:29.707 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:06 +0000 (0:00:00.020) 0:00:29.728 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:06 +0000 (0:00:00.019) 0:00:29.747 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:07 +0000 (0:00:01.510) 0:00:31.258 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:08 +0000 (0:00:00.611) 0:00:31.869 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:08 +0000 (0:00:00.022) 0:00:31.892 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:08 +0000 (0:00:00.023) 0:00:31.915 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:08 +0000 (0:00:00.021) 0:00:31.936 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:08 +0000 (0:00:00.042) 0:00:31.978 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:08 +0000 (0:00:00.021) 0:00:32.000 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:08 +0000 (0:00:00.021) 0:00:32.021 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:08 +0000 (0:00:00.024) 0:00:32.045 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:08 +0000 (0:00:00.020) 0:00:32.066 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:08 +0000 (0:00:00.020) 0:00:32.086 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:08 +0000 (0:00:00.189) 0:00:32.276 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmpcnhrb8hk" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:08 +0000 (0:00:00.196) 0:00:32.473 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:09 +0000 (0:00:00.273) 0:00:32.747 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:09 +0000 (0:00:00.045) 0:00:32.792 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:09 +0000 (0:00:00.024) 0:00:32.816 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:09 +0000 (0:00:00.021) 0:00:32.838 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:09 +0000 (0:00:00.019) 0:00:32.858 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:40:09 +0000 (0:00:00.125) 0:00:32.984 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_device_present.yml:3 Monday 08 January 2024 14:40:09 +0000 (0:00:00.041) 0:00:33.026 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_interface_stat.yml:3 Monday 08 January 2024 14:40:09 +0000 (0:00:00.034) 0:00:33.060 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1704724805.752259, "block_size": 4096, "blocks": 0, "ctime": 1704724805.7512584, "dev": 0, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 6471, "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": 1704724805.7512584, "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_typeuxysm9b5/tests/playbooks/tasks/assert_device_present.yml:5 Monday 08 January 2024 14:40:09 +0000 (0:00:00.132) 0:00:33.193 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:40:09 +0000 (0:00:00.022) 0:00:33.216 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:40:09 +0000 (0:00:00.034) 0:00:33.250 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:40:09 +0000 (0:00:00.020) 0:00:33.271 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:40:09 +0000 (0:00:00.130) 0:00:33.401 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:40:09 +0000 (0:00:00.020) 0:00:33.421 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.005317", "end": "2024-01-08 14:40:10.080956", "rc": 1, "start": "2024-01-08 14:40:10.075639" } STDERR: /bin/sh: nmcli: command not found 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:40:10 +0000 (0:00:00.136) 0:00:33.558 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:40:10 +0000 (0:00:00.024) 0:00:33.583 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:40:10 +0000 (0:00:00.022) 0:00:33.606 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:40:10 +0000 (0:00:00.023) 0:00:33.629 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:40:10 +0000 (0:00:00.021) 0:00:33.650 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:40:10 +0000 (0:00:00.020) 0:00:33.671 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:40:10 +0000 (0:00:00.022) 0:00:33.693 ******** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:40:10 +0000 (0:00:00.018) 0:00:33.711 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:40:10 +0000 (0:00:00.020) 0:00:33.732 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:40:10 +0000 (0:00:00.038) 0:00:33.771 ******** 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.024441", "end": "2024-01-08 14:40:10.454498", "rc": 0, "start": "2024-01-08 14:40:10.430057" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tests_states.yml:103 Monday 08 January 2024 14:40:10 +0000 (0:00:00.168) 0:00:33.939 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:40:10 +0000 (0:00:00.036) 0:00:33.976 ******** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:40:10 +0000 (0:00:00.022) 0:00:33.998 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:40:10 +0000 (0:00:00.049) 0:00:34.048 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:40:10 +0000 (0:00:00.066) 0:00:34.114 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:40:10 +0000 (0:00:00.033) 0:00:34.148 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003299", "end": "2024-01-08 14:40:10.805504", "rc": 0, "start": "2024-01-08 14:40:10.802205" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:40:10 +0000 (0:00:00.135) 0:00:34.284 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:40:10 +0000 (0:00:00.024) 0:00:34.308 ******** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:40:10 +0000 (0:00:00.022) 0:00:34.331 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:40:10 +0000 (0:00:00.042) 0:00:34.374 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:10 +0000 (0:00:00.034) 0:00:34.409 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:10 +0000 (0:00:00.038) 0:00:34.447 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:10 +0000 (0:00:00.026) 0:00:34.474 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:11 +0000 (0:00:00.021) 0:00:34.496 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:11 +0000 (0:00:00.021) 0:00:34.517 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:12 +0000 (0:00:01.463) 0:00:35.981 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:13 +0000 (0:00:00.579) 0:00:36.560 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:13 +0000 (0:00:00.021) 0:00:36.582 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:13 +0000 (0:00:00.020) 0:00:36.602 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:13 +0000 (0:00:00.019) 0:00:36.622 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:13 +0000 (0:00:00.041) 0:00:36.663 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:13 +0000 (0:00:00.019) 0:00:36.683 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:13 +0000 (0:00:00.019) 0:00:36.703 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:13 +0000 (0:00:00.043) 0:00:36.747 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:13 +0000 (0:00:00.020) 0:00:36.768 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:13 +0000 (0:00:00.021) 0:00:36.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 : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:13 +0000 (0:00:00.190) 0:00:36.979 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmprf9itzma" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:13 +0000 (0:00:00.193) 0:00:37.173 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:13 +0000 (0:00:00.245) 0:00:37.418 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:13 +0000 (0:00:00.021) 0:00:37.440 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:13 +0000 (0:00:00.022) 0:00:37.462 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:13 +0000 (0:00:00.021) 0:00:37.484 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:14 +0000 (0:00:00.020) 0:00:37.504 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:40:14 +0000 (0:00:00.130) 0:00:37.634 ******** 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_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:40:14 +0000 (0:00:00.022) 0:00:37.656 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:14 +0000 (0:00:00.035) 0:00:37.692 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:14 +0000 (0:00:00.066) 0:00:37.759 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:14 +0000 (0:00:00.026) 0:00:37.785 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:14 +0000 (0:00:00.021) 0:00:37.807 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:14 +0000 (0:00:00.022) 0:00:37.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 : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:15 +0000 (0:00:01.434) 0:00:39.264 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:16 +0000 (0:00:00.581) 0:00:39.845 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:16 +0000 (0:00:00.021) 0:00:39.867 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:16 +0000 (0:00:00.041) 0:00:39.908 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:16 +0000 (0:00:00.021) 0:00:39.929 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:16 +0000 (0:00:00.041) 0:00:39.971 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:16 +0000 (0:00:00.021) 0:00:39.992 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:16 +0000 (0:00:00.019) 0:00:40.011 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:16 +0000 (0:00:00.025) 0:00:40.037 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:16 +0000 (0:00:00.021) 0:00:40.058 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:16 +0000 (0:00:00.020) 0:00:40.079 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:16 +0000 (0:00:00.193) 0:00:40.273 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmpkytj8he6" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:16 +0000 (0:00:00.198) 0:00:40.472 ******** 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='', err='' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:17 +0000 (0:00:00.353) 0:00:40.825 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:17 +0000 (0:00:00.021) 0:00:40.847 ******** 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='', err=''" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:17 +0000 (0:00:00.021) 0:00:40.868 ******** 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='', err=''\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='', err=''" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:17 +0000 (0:00:00.021) 0:00:40.890 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:17 +0000 (0:00:00.019) 0:00:40.910 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove_profile.yml:3 Monday 08 January 2024 14:40:17 +0000 (0:00:00.150) 0:00:41.060 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:17 +0000 (0:00:00.034) 0:00:41.095 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:17 +0000 (0:00:00.038) 0:00:41.134 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:17 +0000 (0:00:00.025) 0:00:41.159 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:17 +0000 (0:00:00.020) 0:00:41.180 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:17 +0000 (0:00:00.020) 0:00:41.200 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:19 +0000 (0:00:01.416) 0:00:42.616 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:19 +0000 (0:00:00.610) 0:00:43.227 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:19 +0000 (0:00:00.022) 0:00:43.249 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:19 +0000 (0:00:00.021) 0:00:43.270 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:19 +0000 (0:00:00.020) 0:00:43.290 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:19 +0000 (0:00:00.041) 0:00:43.331 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:19 +0000 (0:00:00.021) 0:00:43.353 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:19 +0000 (0:00:00.020) 0:00:43.374 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:19 +0000 (0:00:00.023) 0:00:43.397 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:19 +0000 (0:00:00.021) 0:00:43.418 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:19 +0000 (0:00:00.020) 0:00:43.439 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:20 +0000 (0:00:00.191) 0:00:43.630 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmpkdgz3rho" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:20 +0000 (0:00:00.194) 0:00:43.825 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:20 +0000 (0:00:00.262) 0:00:44.087 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:20 +0000 (0:00:00.043) 0:00:44.130 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:20 +0000 (0:00:00.022) 0:00:44.152 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:20 +0000 (0:00:00.021) 0:00:44.174 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:20 +0000 (0:00:00.021) 0:00:44.195 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:40:20 +0000 (0:00:00.131) 0:00:44.327 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:40:20 +0000 (0:00:00.037) 0:00:44.365 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:20 +0000 (0:00:00.039) 0:00:44.404 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:20 +0000 (0:00:00.038) 0:00:44.442 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:20 +0000 (0:00:00.025) 0:00:44.467 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:20 +0000 (0:00:00.020) 0:00:44.487 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:21 +0000 (0:00:00.020) 0:00:44.508 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:22 +0000 (0:00:01.434) 0:00:45.942 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:23 +0000 (0:00:00.577) 0:00:46.520 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:23 +0000 (0:00:00.023) 0:00:46.544 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:23 +0000 (0:00:00.022) 0:00:46.566 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:23 +0000 (0:00:00.021) 0:00:46.588 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:23 +0000 (0:00:00.041) 0:00:46.629 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:23 +0000 (0:00:00.021) 0:00:46.650 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:23 +0000 (0:00:00.020) 0:00:46.670 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:23 +0000 (0:00:00.027) 0:00:46.698 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:23 +0000 (0:00:00.044) 0:00:46.742 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:23 +0000 (0:00:00.020) 0:00:46.763 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:23 +0000 (0:00:00.192) 0:00:46.955 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmps6y8qddr" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:23 +0000 (0:00:00.197) 0:00:47.152 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:23 +0000 (0:00:00.239) 0:00:47.392 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:23 +0000 (0:00:00.021) 0:00:47.413 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:23 +0000 (0:00:00.022) 0:00:47.435 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:23 +0000 (0:00:00.022) 0:00:47.457 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:23 +0000 (0:00:00.020) 0:00:47.478 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:40:24 +0000 (0:00:00.129) 0:00:47.607 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:40:24 +0000 (0:00:00.037) 0:00:47.645 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:40:24 +0000 (0:00:00.035) 0:00:47.680 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:40:24 +0000 (0:00:00.020) 0:00:47.701 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:40:24 +0000 (0:00:00.155) 0:00:47.857 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:40:24 +0000 (0:00:00.021) 0:00:47.878 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.005067", "end": "2024-01-08 14:40:24.546009", "rc": 1, "start": "2024-01-08 14:40:24.540942" } STDERR: /bin/sh: nmcli: command not found 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:40:24 +0000 (0:00:00.138) 0:00:48.017 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:40:24 +0000 (0:00:00.022) 0:00:48.039 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:40:24 +0000 (0:00:00.022) 0:00:48.062 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:40:24 +0000 (0:00:00.021) 0:00:48.084 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:40:24 +0000 (0:00:00.021) 0:00:48.105 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:40:24 +0000 (0:00:00.021) 0:00:48.126 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:40:24 +0000 (0:00:00.023) 0:00:48.149 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:40:24 +0000 (0:00:00.025) 0:00:48.175 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:40:24 +0000 (0:00:00.021) 0:00:48.197 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:40:24 +0000 (0:00:00.038) 0:00:48.235 ******** 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.016950", "end": "2024-01-08 14:40:24.914420", "rc": 0, "start": "2024-01-08 14:40:24.897470" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tests_states.yml:126 Monday 08 January 2024 14:40:24 +0000 (0:00:00.155) 0:00:48.391 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:5 Monday 08 January 2024 14:40:24 +0000 (0:00:00.034) 0:00:48.426 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:9 Monday 08 January 2024 14:40:24 +0000 (0:00:00.048) 0:00:48.474 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:21 Monday 08 January 2024 14:40:25 +0000 (0:00:00.047) 0:00:48.521 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:3 Monday 08 January 2024 14:40:25 +0000 (0:00:00.035) 0:00:48.556 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:3 Monday 08 January 2024 14:40:25 +0000 (0:00:00.032) 0:00:48.589 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003414", "end": "2024-01-08 14:40:25.255384", "rc": 0, "start": "2024-01-08 14:40:25.251970" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_current_interfaces.yml:9 Monday 08 January 2024 14:40:25 +0000 (0:00:00.136) 0:00:48.726 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/show_interfaces.yml:5 Monday 08 January 2024 14:40:25 +0000 (0:00:00.024) 0:00:48.751 ******** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:24 Monday 08 January 2024 14:40:25 +0000 (0:00:00.022) 0:00:48.774 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:3 Monday 08 January 2024 14:40:25 +0000 (0:00:00.044) 0:00:48.818 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:25 +0000 (0:00:00.036) 0:00:48.854 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:25 +0000 (0:00:00.041) 0:00:48.895 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:25 +0000 (0:00:00.027) 0:00:48.923 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:25 +0000 (0:00:00.020) 0:00:48.943 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:25 +0000 (0:00:00.046) 0:00:48.990 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:26 +0000 (0:00:01.417) 0:00:50.407 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:27 +0000 (0:00:00.577) 0:00:50.985 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:27 +0000 (0:00:00.021) 0:00:51.007 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:27 +0000 (0:00:00.020) 0:00:51.027 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:27 +0000 (0:00:00.020) 0:00:51.047 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:27 +0000 (0:00:00.041) 0:00:51.089 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:27 +0000 (0:00:00.043) 0:00:51.133 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:27 +0000 (0:00:00.021) 0:00:51.154 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:27 +0000 (0:00:00.024) 0:00:51.178 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:27 +0000 (0:00:00.019) 0:00:51.198 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:27 +0000 (0:00:00.019) 0:00:51.217 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:27 +0000 (0:00:00.189) 0:00:51.407 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmputwusn5q" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:28 +0000 (0:00:00.192) 0:00:51.600 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:28 +0000 (0:00:00.236) 0:00:51.836 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:28 +0000 (0:00:00.020) 0:00:51.857 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:28 +0000 (0:00:00.021) 0:00:51.879 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:28 +0000 (0:00:00.021) 0:00:51.901 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:28 +0000 (0:00:00.019) 0:00:51.921 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/create_bridge_profile.yml:14 Monday 08 January 2024 14:40:28 +0000 (0:00:00.130) 0:00:52.052 ******** 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_typeuxysm9b5/tests/playbooks/tasks/activate_profile.yml:3 Monday 08 January 2024 14:40:28 +0000 (0:00:00.023) 0:00:52.075 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:28 +0000 (0:00:00.065) 0:00:52.141 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:28 +0000 (0:00:00.039) 0:00:52.181 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:28 +0000 (0:00:00.025) 0:00:52.206 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:28 +0000 (0:00:00.019) 0:00:52.226 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:28 +0000 (0:00:00.020) 0:00:52.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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:30 +0000 (0:00:01.422) 0:00:53.669 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:30 +0000 (0:00:00.603) 0:00:54.272 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:30 +0000 (0:00:00.022) 0:00:54.295 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:30 +0000 (0:00:00.020) 0:00:54.315 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:30 +0000 (0:00:00.020) 0:00:54.335 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:30 +0000 (0:00:00.041) 0:00:54.376 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:30 +0000 (0:00:00.021) 0:00:54.398 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:30 +0000 (0:00:00.019) 0:00:54.417 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:30 +0000 (0:00:00.023) 0:00:54.441 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:30 +0000 (0:00:00.020) 0:00:54.461 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:30 +0000 (0:00:00.019) 0:00:54.480 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:31 +0000 (0:00:00.189) 0:00:54.670 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmp2o6yq1n0" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:31 +0000 (0:00:00.193) 0:00:54.864 ******** 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='', err='' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:31 +0000 (0:00:00.347) 0:00:55.211 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:31 +0000 (0:00:00.020) 0:00:55.232 ******** 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='', err=''" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:31 +0000 (0:00:00.022) 0:00:55.254 ******** 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='', err=''\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='', err=''" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:31 +0000 (0:00:00.022) 0:00:55.276 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:31 +0000 (0:00:00.044) 0:00:55.320 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:40:31 +0000 (0:00:00.127) 0:00:55.448 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:31 +0000 (0:00:00.034) 0:00:55.483 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:32 +0000 (0:00:00.039) 0:00:55.522 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:32 +0000 (0:00:00.025) 0:00:55.548 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:32 +0000 (0:00:00.020) 0:00:55.569 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:32 +0000 (0:00:00.020) 0:00:55.589 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:33 +0000 (0:00:01.422) 0:00:57.011 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:34 +0000 (0:00:00.597) 0:00:57.609 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:34 +0000 (0:00:00.022) 0:00:57.631 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:34 +0000 (0:00:00.021) 0:00:57.652 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:34 +0000 (0:00:00.020) 0:00:57.672 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:34 +0000 (0:00:00.041) 0:00:57.714 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:34 +0000 (0:00:00.021) 0:00:57.735 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:34 +0000 (0:00:00.020) 0:00:57.756 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:34 +0000 (0:00:00.026) 0:00:57.783 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:34 +0000 (0:00:00.021) 0:00:57.805 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:34 +0000 (0:00:00.021) 0:00:57.827 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:34 +0000 (0:00:00.193) 0:00:58.020 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmp4pnduttl" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:34 +0000 (0:00:00.196) 0:00:58.216 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:34 +0000 (0:00:00.273) 0:00:58.490 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:35 +0000 (0:00:00.027) 0:00:58.517 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:35 +0000 (0:00:00.022) 0:00:58.540 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:35 +0000 (0:00:00.023) 0:00:58.564 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:35 +0000 (0:00:00.021) 0:00:58.585 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:30 Monday 08 January 2024 14:40:35 +0000 (0:00:00.129) 0:00:58.715 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/remove+down_profile.yml:3 Monday 08 January 2024 14:40:35 +0000 (0:00:00.038) 0:00:58.753 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:4 Monday 08 January 2024 14:40:35 +0000 (0:00:00.034) 0:00:58.788 ******** included: /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Monday 08 January 2024 14:40:35 +0000 (0:00:00.039) 0:00:58.828 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Monday 08 January 2024 14:40:35 +0000 (0:00:00.025) 0:00:58.853 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Monday 08 January 2024 14:40:35 +0000 (0:00:00.021) 0:00:58.875 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Monday 08 January 2024 14:40:35 +0000 (0:00:00.020) 0:00:58.896 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Monday 08 January 2024 14:40:36 +0000 (0:00:01.434) 0:01:00.331 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:7 Monday 08 January 2024 14:40:37 +0000 (0:00:00.586) 0:01:00.917 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:11 Monday 08 January 2024 14:40:37 +0000 (0:00:00.022) 0:01:00.939 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:19 Monday 08 January 2024 14:40:37 +0000 (0:00:00.021) 0:01:00.961 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:30 Monday 08 January 2024 14:40:37 +0000 (0:00:00.020) 0:01:00.982 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:40 Monday 08 January 2024 14:40:37 +0000 (0:00:00.043) 0:01:01.025 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:55 Monday 08 January 2024 14:40:37 +0000 (0:00:00.021) 0:01:01.046 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:71 Monday 08 January 2024 14:40:37 +0000 (0:00:00.020) 0:01:01.067 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:85 Monday 08 January 2024 14:40:37 +0000 (0:00:00.046) 0:01:01.113 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:96 Monday 08 January 2024 14:40:37 +0000 (0:00:00.022) 0:01:01.136 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 Monday 08 January 2024 14:40:37 +0000 (0:00:00.021) 0:01:01.157 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Monday 08 January 2024 14:40:37 +0000 (0:00:00.193) 0:01:01.351 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15890nhz9hj0s/tmpfrn78m8q" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 Monday 08 January 2024 14:40:38 +0000 (0:00:00.197) 0:01:01.549 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:134 Monday 08 January 2024 14:40:38 +0000 (0:00:00.236) 0:01:01.785 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:140 Monday 08 January 2024 14:40:38 +0000 (0:00:00.021) 0:01:01.806 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:144 Monday 08 January 2024 14:40:38 +0000 (0:00:00.021) 0:01:01.828 ******** 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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:149 Monday 08 January 2024 14:40:38 +0000 (0:00:00.022) 0:01:01.850 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:155 Monday 08 January 2024 14:40:38 +0000 (0:00:00.021) 0:01:01.871 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:36 Monday 08 January 2024 14:40:38 +0000 (0:00:00.127) 0:01:01.998 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml:3 Monday 08 January 2024 14:40:38 +0000 (0:00:00.043) 0:01:02.042 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:3 Monday 08 January 2024 14:40:38 +0000 (0:00:00.036) 0:01:02.078 ******** 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:9 Monday 08 January 2024 14:40:38 +0000 (0:00:00.049) 0:01:02.127 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:17 Monday 08 January 2024 14:40:38 +0000 (0:00:00.133) 0:01:02.261 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:25 Monday 08 January 2024 14:40:38 +0000 (0:00:00.021) 0:01:02.283 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.005055", "end": "2024-01-08 14:40:38.957895", "rc": 1, "start": "2024-01-08 14:40:38.952840" } STDERR: /bin/sh: nmcli: command not found 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_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:35 Monday 08 January 2024 14:40:38 +0000 (0:00:00.137) 0:01:02.420 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:49 Monday 08 January 2024 14:40:38 +0000 (0:00:00.022) 0:01:02.442 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:56 Monday 08 January 2024 14:40:38 +0000 (0:00:00.021) 0:01:02.464 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:62 Monday 08 January 2024 14:40:38 +0000 (0:00:00.021) 0:01:02.486 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_profile_stat.yml:69 Monday 08 January 2024 14:40:39 +0000 (0:00:00.021) 0:01:02.507 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/assert_profile_absent.yml:5 Monday 08 January 2024 14:40:39 +0000 (0:00:00.022) 0:01:02.530 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Monday 08 January 2024 14:40:39 +0000 (0:00:00.024) 0:01:02.554 ******** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.390567", "end": "2024-01-08 14:40:39.613969", "rc": 0, "start": "2024-01-08 14:40:39.223402" } TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Monday 08 January 2024 14:40:39 +0000 (0:00:00.524) 0:01:03.079 ******** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Monday 08 January 2024 14:40:39 +0000 (0:00:00.022) 0:01:03.101 ******** ok: [sut] => { "networkmanager_nvr": "" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:42 Monday 08 January 2024 14:40:39 +0000 (0:00:00.023) 0:01:03.124 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:47 Monday 08 January 2024 14:40:39 +0000 (0:00:00.026) 0:01:03.151 ******** 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_typeuxysm9b5/tests/playbooks/tasks/run_test.yml:66 Monday 08 January 2024 14:40:39 +0000 (0:00:00.021) 0:01:03.172 ******** included: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeuxysm9b5/tests/playbooks/tasks/cleanup_profile+device.yml:3 Monday 08 January 2024 14:40:39 +0000 (0:00:00.068) 0:01:03.241 ******** 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.031317", "end": "2024-01-08 14:40:39.954491", "rc": 0, "start": "2024-01-08 14:40:39.923174" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=332 changed=13 unreachable=0 failed=0 skipped=227 rescued=0 ignored=10 Monday 08 January 2024 14:40:39 +0000 (0:00:00.169) 0:01:03.411 ******** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.78s /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.53s /WORKDIR/git-route_typeuxysm9b5/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_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.46s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.46s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Configure networking connection profiles --- 1.44s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Check which services are running ----------- 1.44s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.43s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.43s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.43s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.42s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.42s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.42s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.42s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.42s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Configure networking connection profiles --- 1.34s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable network service --------------------- 1.08s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:105 linux-system-roles.network : Ensure initscripts network file dependency is present --- 0.98s /WORKDIR/git-route_typeuxysm9b5/tests/roles/linux-system-roles.network/tasks/main.yml:113 Gathering Facts --------------------------------------------------------- 0.90s /WORKDIR/git-route_typeuxysm9b5/tests/tests_states_initscripts.yml:5 ---------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---