# 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_typejuh9rwt9/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/tests_states_initscripts.yml:5 Friday 12 January 2024 20:43:56 +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_typejuh9rwt9/tests/tests_states_initscripts.yml:8 Friday 12 January 2024 20:43:57 +0000 (0:00:00.893) 0:00:00.905 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/tasks/el_repo_setup.yml:3 Friday 12 January 2024 20:43:57 +0000 (0:00:00.023) 0:00:00.928 ******** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/el_repo_setup.yml:19 Friday 12 January 2024 20:43:57 +0000 (0:00:00.230) 0:00:01.159 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/el_repo_setup.yml:24 Friday 12 January 2024 20:43:57 +0000 (0:00:00.175) 0:00:01.335 ******** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/el_repo_setup.yml:28 Friday 12 January 2024 20:43:57 +0000 (0:00:00.020) 0:00:01.356 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/el_repo_setup.yml:53 Friday 12 January 2024 20:43:57 +0000 (0:00:00.017) 0:00:01.373 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/enable_epel.yml:8 Friday 12 January 2024 20:43:57 +0000 (0:00:00.031) 0:00:01.404 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/enable_epel.yml:24 Friday 12 January 2024 20:43:57 +0000 (0:00:00.010) 0:00:01.414 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/enable_epel.yml:30 Friday 12 January 2024 20:43:57 +0000 (0:00:00.009) 0:00:01.424 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/enable_epel.yml:35 Friday 12 January 2024 20:43:57 +0000 (0:00:00.010) 0:00:01.434 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/tasks/enable_epel.yml:40 Friday 12 January 2024 20:43:57 +0000 (0:00:00.010) 0:00:01.444 ******** 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_typejuh9rwt9/tests/tests_states_initscripts.yml:10 Friday 12 January 2024 20:43:58 +0000 (0:00:00.429) 0:00:01.874 ******** 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_typejuh9rwt9/tests/playbooks/tests_states.yml:3 Friday 12 January 2024 20:43:58 +0000 (0:00:00.010) 0:00:01.885 ******** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tests_states.yml:11 Friday 12 January 2024 20:43:58 +0000 (0:00:00.700) 0:00:02.585 ******** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tests_states.yml:22 Friday 12 January 2024 20:43:59 +0000 (0:00:00.011) 0:00:02.597 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:43:59 +0000 (0:00:00.017) 0:00:02.615 ******** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:43:59 +0000 (0:00:00.011) 0:00:02.626 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:43:59 +0000 (0:00:00.036) 0:00:02.663 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:43:59 +0000 (0:00:00.015) 0:00:02.678 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:43:59 +0000 (0:00:00.014) 0:00:02.693 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002961", "end": "2024-01-12 20:43:59.296806", "rc": 0, "start": "2024-01-12 20:43:59.293845" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:43:59 +0000 (0:00:00.179) 0:00:02.873 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:43:59 +0000 (0:00:00.013) 0:00:02.886 ******** ok: [sut] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:43:59 +0000 (0:00:00.011) 0:00:02.897 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/delete_interface.yml:3 Friday 12 January 2024 20:43:59 +0000 (0:00:00.021) 0:00:02.919 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.026181", "end": "2024-01-12 20:43:59.482854", "rc": 255, "start": "2024-01-12 20:43:59.456673" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml:3 Friday 12 January 2024 20:43:59 +0000 (0:00:00.139) 0:00:03.059 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:43:59 +0000 (0:00:00.017) 0:00:03.077 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml:5 Friday 12 January 2024 20:43:59 +0000 (0:00:00.121) 0:00:03.198 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:43:59 +0000 (0:00:00.012) 0:00:03.211 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:43:59 +0000 (0:00:00.019) 0:00:03.231 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:43:59 +0000 (0:00:00.032) 0:00:03.263 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:43:59 +0000 (0:00:00.069) 0:00:03.333 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:43:59 +0000 (0:00:00.013) 0:00:03.346 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:43:59 +0000 (0:00:00.010) 0:00:03.357 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:43:59 +0000 (0:00:00.010) 0:00:03.367 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:01 +0000 (0:00:01.792) 0:00:05.159 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:02 +0000 (0:00:00.701) 0:00:05.861 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:02 +0000 (0:00:00.021) 0:00:05.882 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:02 +0000 (0:00:00.019) 0:00:05.902 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:02 +0000 (0:00:00.019) 0:00:05.922 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:02 +0000 (0:00:00.041) 0:00:05.963 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:02 +0000 (0:00:00.032) 0:00:05.996 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:02 +0000 (0:00:00.021) 0:00:06.017 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:02 +0000 (0:00:00.024) 0:00:06.042 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:02 +0000 (0:00:00.021) 0:00:06.063 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:02 +0000 (0:00:00.020) 0:00:06.083 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:02 +0000 (0:00:00.266) 0:00:06.350 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmp7_ths2o6" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:02 +0000 (0:00:00.189) 0:00:06.539 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:03 +0000 (0:00:00.347) 0:00:06.887 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:03 +0000 (0:00:00.020) 0:00:06.907 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:03 +0000 (0:00:00.021) 0:00:06.929 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:03 +0000 (0:00:00.021) 0:00:06.951 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:03 +0000 (0:00:00.019) 0:00:06.970 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:44:03 +0000 (0:00:00.189) 0:00:07.159 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:44:03 +0000 (0:00:00.041) 0:00:07.200 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:3 Friday 12 January 2024 20:44:03 +0000 (0:00:00.039) 0:00:07.239 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:44:03 +0000 (0:00:00.037) 0:00:07.277 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:44:03 +0000 (0:00:00.020) 0:00:07.297 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705092243.3019884, "block_size": 4096, "blocks": 8, "ctime": 1705092243.3019884, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 18846, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1705092243.3019884, "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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:44:03 +0000 (0:00:00.123) 0:00:07.421 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:44:03 +0000 (0:00:00.022) 0:00:07.443 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.006334", "end": "2024-01-12 20:44:03.990693", "rc": 1, "start": "2024-01-12 20:44:03.984359" } STDERR: Error: Object 'connection' is unknown, try 'nmcli help'. 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:44:03 +0000 (0:00:00.129) 0:00:07.572 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:44:03 +0000 (0:00:00.021) 0:00:07.594 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003062", "end": "2024-01-12 20:44:04.141759", "rc": 0, "start": "2024-01-12 20:44:04.138697" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:44:04 +0000 (0:00:00.131) 0:00:07.726 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:44:04 +0000 (0:00:00.025) 0:00:07.751 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002908", "end": "2024-01-12 20:44:04.297913", "rc": 0, "start": "2024-01-12 20:44:04.295005" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:44:04 +0000 (0:00:00.130) 0:00:07.882 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:5 Friday 12 January 2024 20:44:04 +0000 (0:00:00.025) 0:00:07.907 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:10 Friday 12 January 2024 20:44:04 +0000 (0:00:00.024) 0:00:07.931 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:15 Friday 12 January 2024 20:44:04 +0000 (0:00:00.044) 0:00:07.975 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:44:04 +0000 (0:00:00.022) 0:00:07.998 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:44:04 +0000 (0:00:00.024) 0:00:08.022 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:44:04 +0000 (0:00:00.021) 0:00:08.043 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:44:04 +0000 (0:00:00.037) 0:00:08.081 ******** 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.044142", "end": "2024-01-12 20:44:04.666957", "rc": 255, "start": "2024-01-12 20:44:04.622815" } STDERR: Error: Can't obtain connections: settings services are not running. Error: Can't obtain connections: settings services are not running. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tests_states.yml:45 Friday 12 January 2024 20:44:04 +0000 (0:00:00.168) 0:00:08.250 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:44:04 +0000 (0:00:00.035) 0:00:08.286 ******** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:44:04 +0000 (0:00:00.020) 0:00:08.306 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:44:04 +0000 (0:00:00.043) 0:00:08.350 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:44:04 +0000 (0:00:00.032) 0:00:08.383 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:44:04 +0000 (0:00:00.032) 0:00:08.416 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003214", "end": "2024-01-12 20:44:04.961956", "rc": 0, "start": "2024-01-12 20:44:04.958742" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:44:04 +0000 (0:00:00.128) 0:00:08.544 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:44:04 +0000 (0:00:00.044) 0:00:08.588 ******** ok: [sut] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:44:05 +0000 (0:00:00.021) 0:00:08.609 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/delete_interface.yml:3 Friday 12 January 2024 20:44:05 +0000 (0:00:00.039) 0:00:08.649 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.004524", "end": "2024-01-12 20:44:05.195623", "rc": 255, "start": "2024-01-12 20:44:05.191099" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml:3 Friday 12 January 2024 20:44:05 +0000 (0:00:00.127) 0:00:08.777 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:44:05 +0000 (0:00:00.034) 0:00:08.812 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml:5 Friday 12 January 2024 20:44:05 +0000 (0:00:00.122) 0:00:08.934 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:44:05 +0000 (0:00:00.022) 0:00:08.957 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Friday 12 January 2024 20:44:05 +0000 (0:00:00.038) 0:00:08.995 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:05 +0000 (0:00:00.039) 0:00:09.034 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:05 +0000 (0:00:00.038) 0:00:09.073 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:05 +0000 (0:00:00.023) 0:00:09.096 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:05 +0000 (0:00:00.039) 0:00:09.136 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:05 +0000 (0:00:00.021) 0:00:09.158 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:07 +0000 (0:00:01.568) 0:00:10.726 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:07 +0000 (0:00:00.557) 0:00:11.283 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:07 +0000 (0:00:00.023) 0:00:11.306 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:07 +0000 (0:00:00.021) 0:00:11.328 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:07 +0000 (0:00:00.038) 0:00:11.366 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:07 +0000 (0:00:00.042) 0:00:11.409 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:07 +0000 (0:00:00.020) 0:00:11.429 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:07 +0000 (0:00:00.020) 0:00:11.449 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:07 +0000 (0:00:00.024) 0:00:11.474 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:07 +0000 (0:00:00.019) 0:00:11.493 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:07 +0000 (0:00:00.021) 0:00:11.514 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:08 +0000 (0:00:00.183) 0:00:11.698 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmp4amlkyzg" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:08 +0000 (0:00:00.188) 0:00:11.886 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:08 +0000 (0:00:00.233) 0:00:12.119 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:08 +0000 (0:00:00.021) 0:00:12.140 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:08 +0000 (0:00:00.021) 0:00:12.162 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:08 +0000 (0:00:00.022) 0:00:12.184 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:08 +0000 (0:00:00.019) 0:00:12.204 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Friday 12 January 2024 20:44:08 +0000 (0:00:00.140) 0:00:12.344 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:44:08 +0000 (0:00:00.022) 0:00:12.367 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml:3 Friday 12 January 2024 20:44:08 +0000 (0:00:00.041) 0:00:12.408 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:44:08 +0000 (0:00:00.033) 0:00:12.442 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_absent.yml:5 Friday 12 January 2024 20:44:08 +0000 (0:00:00.124) 0:00:12.566 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:3 Friday 12 January 2024 20:44:08 +0000 (0:00:00.021) 0:00:12.588 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:44:09 +0000 (0:00:00.036) 0:00:12.624 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:44:09 +0000 (0:00:00.020) 0:00:12.645 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705092248.5376048, "block_size": 4096, "blocks": 8, "ctime": 1705092248.5376048, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 18846, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1705092248.5376048, "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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:44:09 +0000 (0:00:00.121) 0:00:12.767 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:44:09 +0000 (0:00:00.022) 0:00:12.789 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.006266", "end": "2024-01-12 20:44:09.337162", "rc": 1, "start": "2024-01-12 20:44:09.330896" } STDERR: Error: Object 'connection' is unknown, try 'nmcli help'. 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:44:09 +0000 (0:00:00.128) 0:00:12.917 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:44:09 +0000 (0:00:00.020) 0:00:12.938 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002807", "end": "2024-01-12 20:44:09.486316", "rc": 0, "start": "2024-01-12 20:44:09.483509" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:44:09 +0000 (0:00:00.128) 0:00:13.066 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:44:09 +0000 (0:00:00.044) 0:00:13.111 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002920", "end": "2024-01-12 20:44:09.660685", "rc": 0, "start": "2024-01-12 20:44:09.657765" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:44:09 +0000 (0:00:00.130) 0:00:13.242 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:5 Friday 12 January 2024 20:44:09 +0000 (0:00:00.026) 0:00:13.268 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:10 Friday 12 January 2024 20:44:09 +0000 (0:00:00.023) 0:00:13.291 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:15 Friday 12 January 2024 20:44:09 +0000 (0:00:00.023) 0:00:13.314 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:44:09 +0000 (0:00:00.022) 0:00:13.336 ******** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:44:09 +0000 (0:00:00.018) 0:00:13.355 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:44:09 +0000 (0:00:00.021) 0:00:13.376 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:44:09 +0000 (0:00:00.039) 0:00:13.415 ******** 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.015591", "end": "2024-01-12 20:44:09.975033", "rc": 255, "start": "2024-01-12 20:44:09.959442" } STDERR: Error: Can't obtain connections: settings services are not running. Error: Can't obtain connections: settings services are not running. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tests_states.yml:65 Friday 12 January 2024 20:44:09 +0000 (0:00:00.139) 0:00:13.554 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:44:09 +0000 (0:00:00.035) 0:00:13.590 ******** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:44:10 +0000 (0:00:00.020) 0:00:13.610 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:44:10 +0000 (0:00:00.043) 0:00:13.654 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:44:10 +0000 (0:00:00.053) 0:00:13.708 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:44:10 +0000 (0:00:00.033) 0:00:13.742 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002938", "end": "2024-01-12 20:44:10.288173", "rc": 0, "start": "2024-01-12 20:44:10.285235" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:44:10 +0000 (0:00:00.125) 0:00:13.867 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:44:10 +0000 (0:00:00.022) 0:00:13.890 ******** ok: [sut] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:44:10 +0000 (0:00:00.020) 0:00:13.910 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:44:10 +0000 (0:00:00.037) 0:00:13.948 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:10 +0000 (0:00:00.035) 0:00:13.983 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:10 +0000 (0:00:00.039) 0:00:14.022 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:10 +0000 (0:00:00.024) 0:00:14.047 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:10 +0000 (0:00:00.019) 0:00:14.067 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:10 +0000 (0:00:00.019) 0:00:14.087 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:12 +0000 (0:00:01.542) 0:00:15.629 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:12 +0000 (0:00:00.559) 0:00:16.189 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:12 +0000 (0:00:00.020) 0:00:16.210 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:12 +0000 (0:00:00.020) 0:00:16.230 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:12 +0000 (0:00:00.020) 0:00:16.250 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:12 +0000 (0:00:00.041) 0:00:16.291 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:12 +0000 (0:00:00.020) 0:00:16.312 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:12 +0000 (0:00:00.019) 0:00:16.331 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:12 +0000 (0:00:00.042) 0:00:16.373 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:12 +0000 (0:00:00.021) 0:00:16.395 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:12 +0000 (0:00:00.019) 0:00:16.414 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:13 +0000 (0:00:00.186) 0:00:16.600 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpwncuhy3v" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:13 +0000 (0:00:00.184) 0:00:16.785 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:13 +0000 (0:00:00.229) 0:00:17.015 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:13 +0000 (0:00:00.020) 0:00:17.036 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:13 +0000 (0:00:00.022) 0:00:17.058 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:13 +0000 (0:00:00.021) 0:00:17.080 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:13 +0000 (0:00:00.020) 0:00:17.100 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:44:13 +0000 (0:00:00.117) 0:00:17.218 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:44:13 +0000 (0:00:00.022) 0:00:17.240 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:44:13 +0000 (0:00:00.037) 0:00:17.278 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:13 +0000 (0:00:00.062) 0:00:17.341 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:13 +0000 (0:00:00.039) 0:00:17.380 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:13 +0000 (0:00:00.025) 0:00:17.406 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:13 +0000 (0:00:00.021) 0:00:17.427 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:13 +0000 (0:00:00.021) 0:00:17.449 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:15 +0000 (0:00:01.504) 0:00:18.953 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:15 +0000 (0:00:00.596) 0:00:19.550 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:15 +0000 (0:00:00.022) 0:00:19.572 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:15 +0000 (0:00:00.019) 0:00:19.592 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:16 +0000 (0:00:00.020) 0:00:19.612 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:16 +0000 (0:00:00.041) 0:00:19.654 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:16 +0000 (0:00:00.021) 0:00:19.675 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:16 +0000 (0:00:00.020) 0:00:19.695 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:16 +0000 (0:00:00.023) 0:00:19.718 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:16 +0000 (0:00:00.019) 0:00:19.737 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:16 +0000 (0:00:00.019) 0:00:19.757 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:16 +0000 (0:00:00.182) 0:00:19.939 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmp7ab7mtjp" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:16 +0000 (0:00:00.182) 0:00:20.122 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:16 +0000 (0:00:00.353) 0:00:20.475 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:16 +0000 (0:00:00.043) 0:00:20.519 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:16 +0000 (0:00:00.023) 0:00:20.542 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:16 +0000 (0:00:00.022) 0:00:20.564 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:16 +0000 (0:00:00.020) 0:00:20.584 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:44:17 +0000 (0:00:00.121) 0:00:20.706 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_present.yml:3 Friday 12 January 2024 20:44:17 +0000 (0:00:00.042) 0:00:20.748 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:44:17 +0000 (0:00:00.035) 0:00:20.783 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705092256.8197439, "block_size": 4096, "blocks": 0, "ctime": 1705092256.8187432, "dev": 0, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 6553, "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": 1705092256.8187432, "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_typejuh9rwt9/tests/playbooks/tasks/assert_device_present.yml:5 Friday 12 January 2024 20:44:17 +0000 (0:00:00.126) 0:00:20.910 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:3 Friday 12 January 2024 20:44:17 +0000 (0:00:00.024) 0:00:20.934 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:44:17 +0000 (0:00:00.036) 0:00:20.971 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:44:17 +0000 (0:00:00.021) 0:00:20.992 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705092254.978824, "block_size": 4096, "blocks": 8, "ctime": 1705092253.4350524, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 18846, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1705092253.4350524, "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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:44:17 +0000 (0:00:00.123) 0:00:21.115 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:44:17 +0000 (0:00:00.044) 0:00:21.160 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.006133", "end": "2024-01-12 20:44:17.718749", "rc": 1, "start": "2024-01-12 20:44:17.712616" } STDERR: Error: Object 'connection' is unknown, try 'nmcli help'. 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:44:17 +0000 (0:00:00.133) 0:00:21.294 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:44:17 +0000 (0:00:00.022) 0:00:21.316 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.002865", "end": "2024-01-12 20:44:17.868476", "rc": 0, "start": "2024-01-12 20:44:17.865611" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:44:17 +0000 (0:00:00.129) 0:00:21.445 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:44:17 +0000 (0:00:00.026) 0:00:21.471 ******** ok: [sut] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003001", "end": "2024-01-12 20:44:18.023758", "rc": 0, "start": "2024-01-12 20:44:18.020757" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:44:18 +0000 (0:00:00.130) 0:00:21.602 ******** ok: [sut] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:5 Friday 12 January 2024 20:44:18 +0000 (0:00:00.025) 0:00:21.627 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:10 Friday 12 January 2024 20:44:18 +0000 (0:00:00.023) 0:00:21.651 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_present.yml:15 Friday 12 January 2024 20:44:18 +0000 (0:00:00.023) 0:00:21.674 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:44:18 +0000 (0:00:00.021) 0:00:21.696 ******** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:44:18 +0000 (0:00:00.018) 0:00:21.715 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:44:18 +0000 (0:00:00.021) 0:00:21.736 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:44:18 +0000 (0:00:00.038) 0:00:21.775 ******** 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.037981", "end": "2024-01-12 20:44:18.362554", "rc": 0, "start": "2024-01-12 20:44:18.324573" } STDERR: Error: Can't obtain connections: settings services are not running. Error: Can't obtain connections: settings services are not running. TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tests_states.yml:83 Friday 12 January 2024 20:44:18 +0000 (0:00:00.166) 0:00:21.941 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:44:18 +0000 (0:00:00.058) 0:00:22.000 ******** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:44:18 +0000 (0:00:00.022) 0:00:22.023 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:44:18 +0000 (0:00:00.044) 0:00:22.067 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:44:18 +0000 (0:00:00.034) 0:00:22.101 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:44:18 +0000 (0:00:00.033) 0:00:22.135 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003188", "end": "2024-01-12 20:44:18.686986", "rc": 0, "start": "2024-01-12 20:44:18.683798" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:44:18 +0000 (0:00:00.128) 0:00:22.263 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:44:18 +0000 (0:00:00.022) 0:00:22.285 ******** ok: [sut] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:44:18 +0000 (0:00:00.020) 0:00:22.306 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:44:18 +0000 (0:00:00.040) 0:00:22.347 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:18 +0000 (0:00:00.035) 0:00:22.382 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:18 +0000 (0:00:00.038) 0:00:22.420 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:18 +0000 (0:00:00.073) 0:00:22.494 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:18 +0000 (0:00:00.021) 0:00:22.516 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:18 +0000 (0:00:00.019) 0:00:22.536 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:20 +0000 (0:00:01.545) 0:00:24.081 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:21 +0000 (0:00:00.557) 0:00:24.638 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:21 +0000 (0:00:00.021) 0:00:24.660 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:21 +0000 (0:00:00.038) 0:00:24.699 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:21 +0000 (0:00:00.021) 0:00:24.720 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:21 +0000 (0:00:00.041) 0:00:24.762 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:21 +0000 (0:00:00.021) 0:00:24.783 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:21 +0000 (0:00:00.020) 0:00:24.804 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:21 +0000 (0:00:00.024) 0:00:24.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 : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:21 +0000 (0:00:00.021) 0:00:24.849 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:21 +0000 (0:00:00.019) 0:00:24.869 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:21 +0000 (0:00:00.184) 0:00:25.053 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpkeiszcg9" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:21 +0000 (0:00:00.187) 0:00:25.241 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:21 +0000 (0:00:00.234) 0:00:25.475 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:21 +0000 (0:00:00.021) 0:00:25.496 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:21 +0000 (0:00:00.022) 0:00:25.519 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:21 +0000 (0:00:00.022) 0:00:25.541 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:21 +0000 (0:00:00.019) 0:00:25.561 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:44:22 +0000 (0:00:00.124) 0:00:25.686 ******** 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_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:44:22 +0000 (0:00:00.022) 0:00:25.708 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:22 +0000 (0:00:00.034) 0:00:25.744 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:22 +0000 (0:00:00.039) 0:00:25.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 : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:22 +0000 (0:00:00.025) 0:00:25.808 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:22 +0000 (0:00:00.021) 0:00:25.830 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:22 +0000 (0:00:00.019) 0:00:25.849 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:23 +0000 (0:00:01.490) 0:00:27.340 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:24 +0000 (0:00:00.578) 0:00:27.918 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:24 +0000 (0:00:00.022) 0:00:27.940 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:24 +0000 (0:00:00.020) 0:00:27.960 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:24 +0000 (0:00:00.020) 0:00:27.981 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:24 +0000 (0:00:00.041) 0:00:28.022 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:24 +0000 (0:00:00.020) 0:00:28.042 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:24 +0000 (0:00:00.019) 0:00:28.062 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:24 +0000 (0:00:00.023) 0:00:28.086 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:24 +0000 (0:00:00.020) 0:00:28.106 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:24 +0000 (0:00:00.019) 0:00:28.126 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:24 +0000 (0:00:00.178) 0:00:28.305 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpuxtd4y_w" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:24 +0000 (0:00:00.180) 0:00:28.485 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:25 +0000 (0:00:00.359) 0:00:28.845 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:25 +0000 (0:00:00.021) 0:00:28.866 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:25 +0000 (0:00:00.022) 0:00:28.888 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:25 +0000 (0:00:00.022) 0:00:28.911 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:25 +0000 (0:00:00.019) 0:00:28.931 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:44:25 +0000 (0:00:00.117) 0:00:29.048 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove_profile.yml:3 Friday 12 January 2024 20:44:25 +0000 (0:00:00.038) 0:00:29.087 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:25 +0000 (0:00:00.039) 0:00:29.126 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:25 +0000 (0:00:00.039) 0:00:29.165 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:25 +0000 (0:00:00.025) 0:00:29.191 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:25 +0000 (0:00:00.019) 0:00:29.210 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:25 +0000 (0:00:00.019) 0:00:29.230 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:27 +0000 (0:00:01.517) 0:00:30.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 : Print network provider] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:27 +0000 (0:00:00.563) 0:00:31.311 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:27 +0000 (0:00:00.022) 0:00:31.333 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:27 +0000 (0:00:00.021) 0:00:31.355 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:27 +0000 (0:00:00.021) 0:00:31.376 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:27 +0000 (0:00:00.041) 0:00:31.418 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:27 +0000 (0:00:00.039) 0:00:31.458 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:27 +0000 (0:00:00.021) 0:00:31.479 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:27 +0000 (0:00:00.023) 0:00:31.503 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:27 +0000 (0:00:00.021) 0:00:31.524 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:27 +0000 (0:00:00.019) 0:00:31.544 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:28 +0000 (0:00:00.187) 0:00:31.731 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpoge9q6v6" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:28 +0000 (0:00:00.185) 0:00:31.917 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:28 +0000 (0:00:00.232) 0:00:32.149 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:28 +0000 (0:00:00.020) 0:00:32.170 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:28 +0000 (0:00:00.022) 0:00:32.193 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:28 +0000 (0:00:00.022) 0:00:32.215 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:28 +0000 (0:00:00.019) 0:00:32.234 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:44:28 +0000 (0:00:00.121) 0:00:32.355 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_device_present.yml:3 Friday 12 January 2024 20:44:28 +0000 (0:00:00.041) 0:00:32.397 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_interface_stat.yml:3 Friday 12 January 2024 20:44:28 +0000 (0:00:00.057) 0:00:32.455 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1705092265.2079358, "block_size": 4096, "blocks": 0, "ctime": 1705092265.2039337, "dev": 0, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 6553, "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": 1705092265.2039337, "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_typejuh9rwt9/tests/playbooks/tasks/assert_device_present.yml:5 Friday 12 January 2024 20:44:28 +0000 (0:00:00.125) 0:00:32.581 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml:3 Friday 12 January 2024 20:44:29 +0000 (0:00:00.023) 0:00:32.604 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:44:29 +0000 (0:00:00.036) 0:00:32.640 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:44:29 +0000 (0:00:00.020) 0:00:32.661 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:44:29 +0000 (0:00:00.121) 0:00:32.782 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:44:29 +0000 (0:00:00.021) 0:00:32.803 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.006270", "end": "2024-01-12 20:44:29.363461", "rc": 1, "start": "2024-01-12 20:44:29.357191" } STDERR: Error: Object 'connection' is unknown, try 'nmcli help'. 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:44:29 +0000 (0:00:00.128) 0:00:32.932 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:44:29 +0000 (0:00:00.022) 0:00:32.954 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:44:29 +0000 (0:00:00.021) 0:00:32.976 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:44:29 +0000 (0:00:00.021) 0:00:32.997 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:44:29 +0000 (0:00:00.020) 0:00:33.018 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml:5 Friday 12 January 2024 20:44:29 +0000 (0:00:00.021) 0:00:33.039 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:44:29 +0000 (0:00:00.022) 0:00:33.062 ******** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:44:29 +0000 (0:00:00.039) 0:00:33.101 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:44:29 +0000 (0:00:00.022) 0:00:33.124 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:44:29 +0000 (0:00:00.038) 0:00:33.163 ******** 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.035828", "end": "2024-01-12 20:44:29.754613", "rc": 0, "start": "2024-01-12 20:44:29.718785" } STDERR: Error: Can't obtain connections: settings services are not running. Error: Can't obtain connections: settings services are not running. TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tests_states.yml:103 Friday 12 January 2024 20:44:29 +0000 (0:00:00.165) 0:00:33.329 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:44:29 +0000 (0:00:00.036) 0:00:33.365 ******** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:44:29 +0000 (0:00:00.021) 0:00:33.386 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:44:29 +0000 (0:00:00.044) 0:00:33.431 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:44:29 +0000 (0:00:00.034) 0:00:33.466 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:44:29 +0000 (0:00:00.034) 0:00:33.501 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003238", "end": "2024-01-12 20:44:30.062037", "rc": 0, "start": "2024-01-12 20:44:30.058799" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:44:30 +0000 (0:00:00.131) 0:00:33.632 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:44:30 +0000 (0:00:00.022) 0:00:33.655 ******** ok: [sut] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:44:30 +0000 (0:00:00.021) 0:00:33.677 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:44:30 +0000 (0:00:00.087) 0:00:33.764 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:30 +0000 (0:00:00.036) 0:00:33.801 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:30 +0000 (0:00:00.040) 0:00:33.842 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:30 +0000 (0:00:00.026) 0:00:33.869 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:30 +0000 (0:00:00.022) 0:00:33.891 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:30 +0000 (0:00:00.022) 0:00:33.914 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:31 +0000 (0:00:01.511) 0:00:35.426 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:32 +0000 (0:00:00.579) 0:00:36.006 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:32 +0000 (0:00:00.024) 0:00:36.030 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:32 +0000 (0:00:00.022) 0:00:36.052 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:32 +0000 (0:00:00.022) 0:00:36.074 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:32 +0000 (0:00:00.044) 0:00:36.119 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:32 +0000 (0:00:00.022) 0:00:36.141 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:32 +0000 (0:00:00.022) 0:00:36.164 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:32 +0000 (0:00:00.025) 0:00:36.189 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:32 +0000 (0:00:00.022) 0:00:36.211 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:32 +0000 (0:00:00.022) 0:00:36.234 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:32 +0000 (0:00:00.183) 0:00:36.417 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpncppomxc" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:33 +0000 (0:00:00.203) 0:00:36.620 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:33 +0000 (0:00:00.228) 0:00:36.849 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:33 +0000 (0:00:00.021) 0:00:36.870 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:33 +0000 (0:00:00.022) 0:00:36.892 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:33 +0000 (0:00:00.022) 0:00:36.915 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:33 +0000 (0:00:00.020) 0:00:36.936 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:44:33 +0000 (0:00:00.120) 0:00:37.056 ******** 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_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:44:33 +0000 (0:00:00.022) 0:00:37.078 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:33 +0000 (0:00:00.035) 0:00:37.113 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:33 +0000 (0:00:00.038) 0:00:37.152 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:33 +0000 (0:00:00.025) 0:00:37.178 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:33 +0000 (0:00:00.020) 0:00:37.199 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:33 +0000 (0:00:00.020) 0:00:37.219 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:35 +0000 (0:00:01.500) 0:00:38.719 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:35 +0000 (0:00:00.560) 0:00:39.280 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:35 +0000 (0:00:00.022) 0:00:39.302 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:35 +0000 (0:00:00.020) 0:00:39.323 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:35 +0000 (0:00:00.020) 0:00:39.343 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:35 +0000 (0:00:00.042) 0:00:39.385 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:35 +0000 (0:00:00.019) 0:00:39.405 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:35 +0000 (0:00:00.038) 0:00:39.444 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:35 +0000 (0:00:00.024) 0:00:39.469 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:35 +0000 (0:00:00.020) 0:00:39.489 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:35 +0000 (0:00:00.020) 0:00:39.509 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:36 +0000 (0:00:00.180) 0:00:39.690 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmp_mymj_sv" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:36 +0000 (0:00:00.183) 0:00:39.873 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:36 +0000 (0:00:00.334) 0:00:40.208 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:36 +0000 (0:00:00.021) 0:00:40.229 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:36 +0000 (0:00:00.022) 0:00:40.251 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:36 +0000 (0:00:00.021) 0:00:40.273 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:36 +0000 (0:00:00.019) 0:00:40.293 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove_profile.yml:3 Friday 12 January 2024 20:44:36 +0000 (0:00:00.121) 0:00:40.415 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:36 +0000 (0:00:00.034) 0:00:40.449 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:36 +0000 (0:00:00.064) 0:00:40.514 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:36 +0000 (0:00:00.028) 0:00:40.542 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:36 +0000 (0:00:00.022) 0:00:40.565 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:36 +0000 (0:00:00.021) 0:00:40.586 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:38 +0000 (0:00:01.507) 0:00:42.093 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:39 +0000 (0:00:00.575) 0:00:42.669 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:39 +0000 (0:00:00.022) 0:00:42.692 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:39 +0000 (0:00:00.021) 0:00:42.713 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:39 +0000 (0:00:00.020) 0:00:42.733 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:39 +0000 (0:00:00.041) 0:00:42.775 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:39 +0000 (0:00:00.021) 0:00:42.796 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:39 +0000 (0:00:00.019) 0:00:42.816 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:39 +0000 (0:00:00.023) 0:00:42.839 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:39 +0000 (0:00:00.021) 0:00:42.861 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:39 +0000 (0:00:00.019) 0:00:42.880 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:39 +0000 (0:00:00.182) 0:00:43.062 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpfmvqz710" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:39 +0000 (0:00:00.185) 0:00:43.248 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:39 +0000 (0:00:00.238) 0:00:43.486 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:39 +0000 (0:00:00.020) 0:00:43.507 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:39 +0000 (0:00:00.022) 0:00:43.529 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:39 +0000 (0:00:00.022) 0:00:43.551 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:39 +0000 (0:00:00.042) 0:00:43.594 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:44:40 +0000 (0:00:00.121) 0:00:43.716 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove+down_profile.yml:3 Friday 12 January 2024 20:44:40 +0000 (0:00:00.038) 0:00:43.755 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:40 +0000 (0:00:00.039) 0:00:43.795 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:40 +0000 (0:00:00.039) 0:00:43.834 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:40 +0000 (0:00:00.025) 0:00:43.860 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:40 +0000 (0:00:00.021) 0:00:43.881 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:40 +0000 (0:00:00.019) 0:00:43.901 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:41 +0000 (0:00:01.516) 0:00:45.417 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:42 +0000 (0:00:00.564) 0:00:45.981 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:42 +0000 (0:00:00.022) 0:00:46.003 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:42 +0000 (0:00:00.021) 0:00:46.025 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:42 +0000 (0:00:00.020) 0:00:46.045 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:42 +0000 (0:00:00.041) 0:00:46.087 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:42 +0000 (0:00:00.021) 0:00:46.109 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:42 +0000 (0:00:00.019) 0:00:46.129 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:42 +0000 (0:00:00.023) 0:00:46.152 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:42 +0000 (0:00:00.020) 0:00:46.173 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:42 +0000 (0:00:00.019) 0:00:46.192 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:42 +0000 (0:00:00.184) 0:00:46.377 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpema65wfp" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:42 +0000 (0:00:00.186) 0:00:46.563 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:43 +0000 (0:00:00.223) 0:00:46.786 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:43 +0000 (0:00:00.021) 0:00:46.808 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:43 +0000 (0:00:00.022) 0:00:46.830 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:43 +0000 (0:00:00.022) 0:00:46.853 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:43 +0000 (0:00:00.020) 0:00:46.873 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:44:43 +0000 (0:00:00.120) 0:00:46.994 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml:3 Friday 12 January 2024 20:44:43 +0000 (0:00:00.038) 0:00:47.033 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:44:43 +0000 (0:00:00.035) 0:00:47.069 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:44:43 +0000 (0:00:00.020) 0:00:47.089 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:44:43 +0000 (0:00:00.121) 0:00:47.210 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:44:43 +0000 (0:00:00.043) 0:00:47.254 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.006338", "end": "2024-01-12 20:44:43.823666", "rc": 1, "start": "2024-01-12 20:44:43.817328" } STDERR: Error: Object 'connection' is unknown, try 'nmcli help'. 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:44:43 +0000 (0:00:00.131) 0:00:47.385 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:44:43 +0000 (0:00:00.022) 0:00:47.408 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:44:43 +0000 (0:00:00.022) 0:00:47.431 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:44:43 +0000 (0:00:00.023) 0:00:47.454 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:44:43 +0000 (0:00:00.022) 0:00:47.476 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml:5 Friday 12 January 2024 20:44:43 +0000 (0:00:00.022) 0:00:47.499 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:44:43 +0000 (0:00:00.023) 0:00:47.523 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:44:43 +0000 (0:00:00.027) 0:00:47.550 ******** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:44:43 +0000 (0:00:00.022) 0:00:47.573 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:44:44 +0000 (0:00:00.039) 0:00:47.613 ******** 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.028379", "end": "2024-01-12 20:44:44.204613", "rc": 0, "start": "2024-01-12 20:44:44.176234" } STDERR: Error: Can't obtain connections: settings services are not running. Error: Can't obtain connections: settings services are not running. TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tests_states.yml:126 Friday 12 January 2024 20:44:44 +0000 (0:00:00.158) 0:00:47.771 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:5 Friday 12 January 2024 20:44:44 +0000 (0:00:00.036) 0:00:47.808 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:9 Friday 12 January 2024 20:44:44 +0000 (0:00:00.022) 0:00:47.830 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:21 Friday 12 January 2024 20:44:44 +0000 (0:00:00.068) 0:00:47.899 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:3 Friday 12 January 2024 20:44:44 +0000 (0:00:00.034) 0:00:47.934 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:3 Friday 12 January 2024 20:44:44 +0000 (0:00:00.033) 0:00:47.967 ******** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003108", "end": "2024-01-12 20:44:44.534646", "rc": 0, "start": "2024-01-12 20:44:44.531538" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_current_interfaces.yml:9 Friday 12 January 2024 20:44:44 +0000 (0:00:00.128) 0:00:48.096 ******** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/show_interfaces.yml:5 Friday 12 January 2024 20:44:44 +0000 (0:00:00.022) 0:00:48.118 ******** ok: [sut] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:24 Friday 12 January 2024 20:44:44 +0000 (0:00:00.021) 0:00:48.139 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:3 Friday 12 January 2024 20:44:44 +0000 (0:00:00.045) 0:00:48.185 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:44 +0000 (0:00:00.035) 0:00:48.221 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:44 +0000 (0:00:00.040) 0:00:48.262 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:44 +0000 (0:00:00.025) 0:00:48.288 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:44 +0000 (0:00:00.022) 0:00:48.310 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:44 +0000 (0:00:00.023) 0:00:48.333 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:46 +0000 (0:00:01.528) 0:00:49.862 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:46 +0000 (0:00:00.564) 0:00:50.426 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:46 +0000 (0:00:00.022) 0:00:50.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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:46 +0000 (0:00:00.020) 0:00:50.470 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:46 +0000 (0:00:00.021) 0:00:50.492 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:46 +0000 (0:00:00.041) 0:00:50.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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:46 +0000 (0:00:00.040) 0:00:50.574 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:47 +0000 (0:00:00.021) 0:00:50.596 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:47 +0000 (0:00:00.023) 0:00:50.619 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:47 +0000 (0:00:00.020) 0:00:50.639 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:47 +0000 (0:00:00.020) 0:00:50.659 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:47 +0000 (0:00:00.182) 0:00:50.842 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmp6g4fwylq" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:47 +0000 (0:00:00.182) 0:00:51.024 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:47 +0000 (0:00:00.229) 0:00:51.254 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:47 +0000 (0:00:00.020) 0:00:51.275 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:47 +0000 (0:00:00.022) 0:00:51.297 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:47 +0000 (0:00:00.022) 0:00:51.320 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:47 +0000 (0:00:00.019) 0:00:51.339 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/create_bridge_profile.yml:14 Friday 12 January 2024 20:44:47 +0000 (0:00:00.118) 0:00:51.458 ******** 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_typejuh9rwt9/tests/playbooks/tasks/activate_profile.yml:3 Friday 12 January 2024 20:44:47 +0000 (0:00:00.022) 0:00:51.481 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:47 +0000 (0:00:00.059) 0:00:51.540 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:47 +0000 (0:00:00.040) 0:00:51.580 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:48 +0000 (0:00:00.025) 0:00:51.606 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:48 +0000 (0:00:00.020) 0:00:51.626 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:48 +0000 (0:00:00.021) 0:00:51.647 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:49 +0000 (0:00:01.515) 0:00:53.162 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:50 +0000 (0:00:00.592) 0:00:53.755 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:50 +0000 (0:00:00.023) 0:00:53.778 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:50 +0000 (0:00:00.019) 0:00:53.798 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:50 +0000 (0:00:00.021) 0:00:53.820 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:50 +0000 (0:00:00.041) 0:00:53.861 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:50 +0000 (0:00:00.020) 0:00:53.882 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:50 +0000 (0:00:00.020) 0:00:53.902 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:50 +0000 (0:00:00.023) 0:00:53.925 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:50 +0000 (0:00:00.020) 0:00:53.946 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:50 +0000 (0:00:00.019) 0:00:53.965 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:50 +0000 (0:00:00.180) 0:00:54.146 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmp8ikvd6g2" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:50 +0000 (0:00:00.182) 0:00:54.329 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:51 +0000 (0:00:00.342) 0:00:54.671 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:51 +0000 (0:00:00.044) 0:00:54.715 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:51 +0000 (0:00:00.022) 0:00:54.737 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:51 +0000 (0:00:00.022) 0:00:54.760 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:51 +0000 (0:00:00.019) 0:00:54.780 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove+down_profile.yml:3 Friday 12 January 2024 20:44:51 +0000 (0:00:00.123) 0:00:54.904 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:51 +0000 (0:00:00.035) 0:00:54.940 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:51 +0000 (0:00:00.038) 0:00:54.978 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:51 +0000 (0:00:00.025) 0:00:55.004 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:51 +0000 (0:00:00.020) 0:00:55.025 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:51 +0000 (0:00:00.021) 0:00:55.046 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:52 +0000 (0:00:01.504) 0:00:56.551 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:53 +0000 (0:00:00.562) 0:00:57.113 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:53 +0000 (0:00:00.022) 0:00:57.136 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:53 +0000 (0:00:00.021) 0:00:57.158 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:53 +0000 (0:00:00.020) 0:00:57.178 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:53 +0000 (0:00:00.041) 0:00:57.220 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:53 +0000 (0:00:00.021) 0:00:57.242 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:53 +0000 (0:00:00.019) 0:00:57.262 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:53 +0000 (0:00:00.023) 0:00:57.285 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:53 +0000 (0:00:00.020) 0:00:57.306 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:53 +0000 (0:00:00.020) 0:00:57.326 ******** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:53 +0000 (0:00:00.204) 0:00:57.531 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpya5lcbvu" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:54 +0000 (0:00:00.183) 0:00:57.714 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:54 +0000 (0:00:00.233) 0:00:57.948 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:54 +0000 (0:00:00.022) 0:00:57.970 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:54 +0000 (0:00:00.022) 0:00:57.992 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:54 +0000 (0:00:00.022) 0:00:58.015 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:54 +0000 (0:00:00.022) 0:00:58.037 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:30 Friday 12 January 2024 20:44:54 +0000 (0:00:00.119) 0:00:58.157 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/remove+down_profile.yml:3 Friday 12 January 2024 20:44:54 +0000 (0:00:00.037) 0:00:58.195 ******** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:4 Friday 12 January 2024 20:44:54 +0000 (0:00:00.034) 0:00:58.230 ******** included: /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Friday 12 January 2024 20:44:54 +0000 (0:00:00.038) 0:00:58.268 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Friday 12 January 2024 20:44:54 +0000 (0:00:00.025) 0:00:58.294 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Friday 12 January 2024 20:44:54 +0000 (0:00:00.042) 0:00:58.337 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Friday 12 January 2024 20:44:54 +0000 (0:00:00.021) 0:00:58.358 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Friday 12 January 2024 20:44:56 +0000 (0:00:01.498) 0:00:59.857 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:7 Friday 12 January 2024 20:44:56 +0000 (0:00:00.553) 0:01:00.410 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:11 Friday 12 January 2024 20:44:56 +0000 (0:00:00.022) 0:01:00.433 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:19 Friday 12 January 2024 20:44:56 +0000 (0:00:00.021) 0:01:00.454 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:30 Friday 12 January 2024 20:44:56 +0000 (0:00:00.043) 0:01:00.498 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:40 Friday 12 January 2024 20:44:56 +0000 (0:00:00.044) 0:01:00.542 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:55 Friday 12 January 2024 20:44:56 +0000 (0:00:00.021) 0:01:00.564 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:71 Friday 12 January 2024 20:44:56 +0000 (0:00:00.021) 0:01:00.586 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:85 Friday 12 January 2024 20:44:57 +0000 (0:00:00.024) 0:01:00.611 ******** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:96 Friday 12 January 2024 20:44:57 +0000 (0:00:00.021) 0:01:00.632 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 Friday 12 January 2024 20:44:57 +0000 (0:00:00.021) 0:01:00.654 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Friday 12 January 2024 20:44:57 +0000 (0:00:00.181) 0:01:00.836 ******** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-15347gzae6xot/tmpqxsk60iw" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 Friday 12 January 2024 20:44:57 +0000 (0:00:00.187) 0:01:01.023 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:134 Friday 12 January 2024 20:44:57 +0000 (0:00:00.230) 0:01:01.254 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:140 Friday 12 January 2024 20:44:57 +0000 (0:00:00.021) 0:01:01.275 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:144 Friday 12 January 2024 20:44:57 +0000 (0:00:00.021) 0:01:01.297 ******** 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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:149 Friday 12 January 2024 20:44:57 +0000 (0:00:00.022) 0:01:01.320 ******** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:155 Friday 12 January 2024 20:44:57 +0000 (0:00:00.020) 0:01:01.340 ******** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:36 Friday 12 January 2024 20:44:57 +0000 (0:00:00.146) 0:01:01.486 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml:3 Friday 12 January 2024 20:44:57 +0000 (0:00:00.043) 0:01:01.530 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:3 Friday 12 January 2024 20:44:57 +0000 (0:00:00.037) 0:01:01.567 ******** 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:9 Friday 12 January 2024 20:44:57 +0000 (0:00:00.021) 0:01:01.588 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:17 Friday 12 January 2024 20:44:58 +0000 (0:00:00.124) 0:01:01.713 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:25 Friday 12 January 2024 20:44:58 +0000 (0:00:00.021) 0:01:01.734 ******** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.006680", "end": "2024-01-12 20:44:58.310704", "rc": 1, "start": "2024-01-12 20:44:58.304024" } STDERR: Error: Object 'connection' is unknown, try 'nmcli help'. 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_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:35 Friday 12 January 2024 20:44:58 +0000 (0:00:00.129) 0:01:01.863 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:49 Friday 12 January 2024 20:44:58 +0000 (0:00:00.022) 0:01:01.886 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:56 Friday 12 January 2024 20:44:58 +0000 (0:00:00.022) 0:01:01.909 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:62 Friday 12 January 2024 20:44:58 +0000 (0:00:00.020) 0:01:01.930 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_profile_stat.yml:69 Friday 12 January 2024 20:44:58 +0000 (0:00:00.021) 0:01:01.951 ******** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/assert_profile_absent.yml:5 Friday 12 January 2024 20:44:58 +0000 (0:00:00.021) 0:01:01.973 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Friday 12 January 2024 20:44:58 +0000 (0:00:00.022) 0:01:01.995 ******** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.363781", "end": "2024-01-12 20:44:58.927962", "rc": 0, "start": "2024-01-12 20:44:58.564181" } STDOUT: NetworkManager-0.8.1-113.el6 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Friday 12 January 2024 20:44:58 +0000 (0:00:00.512) 0:01:02.508 ******** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-0.8.1-113.el6" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Friday 12 January 2024 20:44:58 +0000 (0:00:00.022) 0:01:02.531 ******** ok: [sut] => { "networkmanager_nvr": "NetworkManager-0.8.1-113.el6" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:42 Friday 12 January 2024 20:44:58 +0000 (0:00:00.021) 0:01:02.552 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:47 Friday 12 January 2024 20:44:58 +0000 (0:00:00.024) 0:01:02.577 ******** 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_typejuh9rwt9/tests/playbooks/tasks/run_test.yml:66 Friday 12 January 2024 20:44:59 +0000 (0:00:00.021) 0:01:02.598 ******** included: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typejuh9rwt9/tests/playbooks/tasks/cleanup_profile+device.yml:3 Friday 12 January 2024 20:44:59 +0000 (0:00:00.038) 0:01:02.636 ******** 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.037060", "end": "2024-01-12 20:44:59.246649", "rc": 0, "start": "2024-01-12 20:44:59.209589" } STDERR: Error: Can't obtain connections: settings services are not running. Error: Can't obtain connections: settings services are not running. META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=332 changed=13 unreachable=0 failed=0 skipped=227 rescued=0 ignored=10 Friday 12 January 2024 20:44:59 +0000 (0:00:00.152) 0:01:02.789 ******** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.79s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.57s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.55s /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.52s /WORKDIR/git-route_typejuh9rwt9/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_typejuh9rwt9/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_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.50s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.50s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.50s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.50s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.49s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Configure networking connection profiles --- 1.39s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Configure networking connection profiles --- 1.27s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable network service --------------------- 1.00s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:105 linux-system-roles.network : Ensure initscripts network file dependency is present --- 0.95s /WORKDIR/git-route_typejuh9rwt9/tests/roles/linux-system-roles.network/tasks/main.yml:113 Gathering Facts --------------------------------------------------------- 0.89s /WORKDIR/git-route_typejuh9rwt9/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. ---^---^---^---^---^---