# 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_team_nm.yml **************************************************** 2 plays in /WORKDIR/git-code_refactorwk092_tu/tests/tests_team_nm.yml PLAY [Run playbook 'playbooks/tests_team.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/tests_team_nm.yml:5 Thursday 30 November 2023 17:13:49 +0000 (0:00:00.017) 0:00:00.017 ***** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/tests_team_nm.yml:9 Thursday 30 November 2023 17:13:49 +0000 (0:00:00.712) 0:00:00.729 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml for sut TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:3 Thursday 30 November 2023 17:13:49 +0000 (0:00:00.030) 0:00:00.759 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:19 Thursday 30 November 2023 17:13:50 +0000 (0:00:00.339) 0:00:01.099 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:24 Thursday 30 November 2023 17:13:50 +0000 (0:00:00.288) 0:00:01.387 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:28 Thursday 30 November 2023 17:13:50 +0000 (0:00:00.028) 0:00:01.416 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:53 Thursday 30 November 2023 17:13:50 +0000 (0:00:00.029) 0:00:01.445 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:8 Thursday 30 November 2023 17:13:50 +0000 (0:00:00.061) 0:00:01.506 ***** ok: [sut] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:24 Thursday 30 November 2023 17:13:50 +0000 (0:00:00.270) 0:00:01.777 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:30 Thursday 30 November 2023 17:13:50 +0000 (0:00:00.019) 0:00:01.796 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:35 Thursday 30 November 2023 17:13:51 +0000 (0:00:00.021) 0:00:01.818 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.375180", "end": "2023-11-30 17:13:51.555158", "rc": 0, "start": "2023-11-30 17:13:51.179978" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:40 Thursday 30 November 2023 17:13:51 +0000 (0:00:00.567) 0:00:02.385 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tests_team_nm.yml:11 Thursday 30 November 2023 17:13:51 +0000 (0:00:00.017) 0:00:02.402 ***** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for testing team connection] **************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_team.yml:3 Thursday 30 November 2023 17:13:51 +0000 (0:00:00.017) 0:00:02.420 ***** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_team.yml:11 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.507) 0:00:02.928 ***** ok: [sut] => {} MSG: this is: playbooks/tests_team.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_team.yml:21 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.018) 0:00:02.946 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: Create a team interface without any port attached] ***************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:5 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.028) 0:00:02.975 ***** ok: [sut] => {} MSG: ########## Create a team interface without any port attached ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:9 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.018) 0:00:02.993 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a team interface without any port attached" } 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_team_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml", "tasks/assert_device_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:21 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.095) 0:00:03.089 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.032) 0:00:03.121 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.024) 0:00:03.145 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003121", "end": "2023-11-30 17:13:52.512718", "rc": 0, "start": "2023-11-30 17:13:52.509597" } STDOUT: bonding_masters eth0 lo rpltstbr TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.197) 0:00:03.343 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "rpltstbr" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.024) 0:00:03.368 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'rpltstbr'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:24 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.020) 0:00:03.389 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/delete_interface.yml:3 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.046) 0:00:03.435 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "team0" ], "delta": "0:00:00.007169", "end": "2023-11-30 17:13:52.802689", "rc": 1, "start": "2023-11-30 17:13:52.795520" } STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.195) 0:00:03.630 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface team0] ******************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:13:52 +0000 (0:00:00.021) 0:00:03.652 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'team0'] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.187) 0:00:03.840 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:30 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.019) 0:00:03.860 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/create_team_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/create_team_profile.yml:3 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.039) 0:00:03.899 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.065) 0:00:03.964 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.113) 0:00:04.078 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.019) 0:00:04.098 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.016) 0:00:04.114 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:13:53 +0000 (0:00:00.014) 0:00:04.129 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:13:55 +0000 (0:00:01.726) 0:00:05.855 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:13:56 +0000 (0:00:01.474) 0:00:07.330 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:13:56 +0000 (0:00:00.034) 0:00:07.364 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:13:56 +0000 (0:00:00.032) 0:00:07.396 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:13:56 +0000 (0:00:00.032) 0:00:07.429 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:13:56 +0000 (0:00:00.064) 0:00:07.494 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:13:56 +0000 (0:00:00.034) 0:00:07.529 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:13:56 +0000 (0:00:00.032) 0:00:07.561 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:13:56 +0000 (0:00:00.046) 0:00:07.607 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:13:57 +0000 (0:00:00.600) 0:00:08.207 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:13:57 +0000 (0:00:00.043) 0:00:08.251 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:13:57 +0000 (0:00:00.045) 0:00:08.297 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:13:57 +0000 (0:00:00.045) 0:00:08.343 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'team0': add connection team0, b28ef28b-0de4-4fc3-acfa-b638d5b0af35 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:13:58 +0000 (0:00:00.865) 0:00:09.209 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:13:58 +0000 (0:00:00.044) 0:00:09.253 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b28ef28b-0de4-4fc3-acfa-b638d5b0af35" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:13:58 +0000 (0:00:00.050) 0:00:09.303 ***** 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": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b28ef28b-0de4-4fc3-acfa-b638d5b0af35\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b28ef28b-0de4-4fc3-acfa-b638d5b0af35" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:13:58 +0000 (0:00:00.046) 0:00:09.349 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:13:58 +0000 (0:00:00.042) 0:00:09.392 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/create_team_profile.yml:14 Thursday 30 November 2023 17:13:58 +0000 (0:00:00.321) 0:00:09.714 ***** 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": "team0", "persistent_state": "present", "type": "team" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b28ef28b-0de4-4fc3-acfa-b638d5b0af35\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, b28ef28b-0de4-4fc3-acfa-b638d5b0af35" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:36 Thursday 30 November 2023 17:13:58 +0000 (0:00:00.072) 0:00:09.786 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.113) 0:00:09.899 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.090) 0:00:09.990 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.033) 0:00:10.024 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701364438.3827887, "block_size": 4096, "blocks": 8, "ctime": 1701364438.0567973, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798138, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1701364438.0567973, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-team0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 206, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.208) 0:00:10.232 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.038) 0:00:10.270 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep team0 | grep /etc", "delta": "0:00:00.024009", "end": "2023-11-30 17:13:59.658347", "rc": 0, "start": "2023-11-30 17:13:59.634338" } STDOUT: team0 /etc/sysconfig/network-scripts/ifcfg-team0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.232) 0:00:10.503 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-team0] ************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.036) 0:00:10.540 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-team0] *********************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.037) 0:00:10.578 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-team0] ****************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.037) 0:00:10.615 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-team0] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.036) 0:00:10.652 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'team0'] **************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.034) 0:00:10.687 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'team0'] *********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.033) 0:00:10.721 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in team0] ***************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 30 November 2023 17:13:59 +0000 (0:00:00.070) 0:00:10.791 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.036) 0:00:10.828 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface team0] ******************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.053) 0:00:10.881 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701364438.1823325, "block_size": 4096, "blocks": 0, "ctime": 1701364438.1823325, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 40469, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/team0", "lnk_target": "../../devices/virtual/net/team0", "mode": "0777", "mtime": 1701364438.1823325, "nlink": 1, "path": "/sys/class/net/team0", "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 - 'team0'] ************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.212) 0:00:11.094 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:42 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.046) 0:00:11.141 ***** TASK [Success in test 'Create a team interface without any port attached'] ***** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:47 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.044) 0:00:11.185 ***** ok: [sut] => {} MSG: +++++ Success in test 'Create a team interface without any port attached' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:66 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.041) 0:00:11.227 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.069) 0:00:11.296 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli con delete team0\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-team0\nrm -f /etc/sysconfig/network-scripts/ifcfg-team0\nip link del team0\n", "delta": "0:00:00.078928", "end": "2023-11-30 17:14:00.740295", "rc": 1, "start": "2023-11-30 17:14:00.661367" } STDOUT: Connection 'team0' (b28ef28b-0de4-4fc3-acfa-b638d5b0af35) successfully deleted. STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=53 changed=1 unreachable=0 failed=0 skipped=23 rescued=0 ignored=2 Thursday 30 November 2023 17:14:00 +0000 (0:00:00.271) 0:00:11.567 ***** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.73s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which packages are installed --------- 1.47s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Configure networking connection profiles --- 0.87s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:122 Gathering Facts --------------------------------------------------------- 0.71s /WORKDIR/git-code_refactorwk092_tu/tests/tests_team_nm.yml:5 ------------------ linux-system-roles.network : Enable and start NetworkManager ------------ 0.60s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:85 Enable EPEL 8 ----------------------------------------------------------- 0.57s /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:35 ------------- Gathering Facts --------------------------------------------------------- 0.51s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_team.yml:3 ----------- Gather the minimum subset of ansible_facts required by the network role test --- 0.34s /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:3 ------------ linux-system-roles.network : Re-test connectivity ----------------------- 0.32s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:155 Check if system is ostree ----------------------------------------------- 0.29s /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:19 ----------- Cleanup profile and device ---------------------------------------------- 0.27s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/cleanup_profile+device.yml:3 Create EPEL 8 ----------------------------------------------------------- 0.27s /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:8 -------------- Get NM profile info ----------------------------------------------------- 0.23s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:25 Get stat for interface team0 -------------------------------------------- 0.21s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 Stat profile file ------------------------------------------------------- 0.21s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_profile_stat.yml:9 Gather current interface info ------------------------------------------- 0.20s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:3 Remove test interface if necessary -------------------------------------- 0.20s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/delete_interface.yml:3 Get stat for interface team0 -------------------------------------------- 0.19s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 linux-system-roles.network : Ensure ansible_facts used by role ---------- 0.11s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:4 Asserts ----------------------------------------------------------------- 0.11s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/run_test.yml:36 ------ ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---