# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_team.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 20:56:28 +0000 (0:00:00.487) 0:00:00.487 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:56:35 +0000 (0:00:06.271) 0:00:06.758 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 20:56:35 +0000 (0:00:00.467) 0:00:07.226 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:56:36 +0000 (0:00:00.897) 0:00:08.124 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 20:56:36 +0000 (0:00:00.601) 0:00:08.725 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 20:56:37 +0000 (0:00:00.414) 0:00:09.140 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 20:56:37 +0000 (0:00:00.464) 0:00:09.604 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 20:56:38 +0000 (0:00:00.662) 0:00:10.267 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 20:56:38 +0000 (0:00:00.414) 0:00:10.681 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 20:56:39 +0000 (0:00:00.960) 0:00:11.642 ********* ok: [sut] TASK [Show playbook name] ****************************************************** Friday 05 August 2022 20:56:42 +0000 (0:00:02.550) 0:00:14.192 ********* ok: [sut] => {} MSG: this is: playbooks/tests_team.yml TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:56:42 +0000 (0:00:00.521) 0:00:14.714 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: Create a team interface without any port attached] ***************** Friday 05 August 2022 20:56:43 +0000 (0:00:00.886) 0:00:15.600 ********* ok: [sut] => {} MSG: ########## Create a team interface without any port attached ########## TASK [Show item] *************************************************************** Friday 05 August 2022 20:56:44 +0000 (0:00:00.856) 0:00:16.457 ********* 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_tasks] *********************************************************** Friday 05 August 2022 20:56:47 +0000 (0:00:03.162) 0:00:19.620 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:56:48 +0000 (0:00:00.828) 0:00:20.449 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 20:56:49 +0000 (0:00:00.812) 0:00:21.262 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003608", "end": "2022-08-05 20:56:52.260090", "rc": 0, "start": "2022-08-05 20:56:52.256482" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 20:56:52 +0000 (0:00:03.205) 0:00:24.468 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 20:56:53 +0000 (0:00:01.105) 0:00:25.573 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 05 August 2022 20:56:55 +0000 (0:00:01.761) 0:00:27.335 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/delete_interface.yml for sut => (item=tasks/delete_interface.yml) included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_absent.yml for sut => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 20:56:57 +0000 (0:00:01.537) 0:00:28.873 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "team0" ], "delta": "0:00:00.008221", "end": "2022-08-05 20:56:58.996400", "rc": 1, "start": "2022-08-05 20:56:58.988179" } STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:56:59 +0000 (0:00:02.540) 0:00:31.413 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface team0] ******************************************** Friday 05 August 2022 20:57:00 +0000 (0:00:01.204) 0:00:32.618 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface team0 is absent] *********************************** Friday 05 August 2022 20:57:05 +0000 (0:00:04.609) 0:00:37.227 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** Friday 05 August 2022 20:57:06 +0000 (0:00:01.193) 0:00:38.421 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/create_team_profile.yml for sut => (item=tasks/create_team_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 20:57:07 +0000 (0:00:01.120) 0:00:39.541 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 20:57:09 +0000 (0:00:01.879) 0:00:41.421 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/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] *** Friday 05 August 2022 20:57:10 +0000 (0:00:01.155) 0:00:42.577 ********* 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 services are running] *********** Friday 05 August 2022 20:57:13 +0000 (0:00:02.563) 0:00:45.140 ********* 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] ********* Friday 05 August 2022 20:57:19 +0000 (0:00:06.277) 0:00:51.418 ********* 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] ********************* Friday 05 August 2022 20:57:25 +0000 (0:00:06.262) 0:00:57.681 ********* 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] *** Friday 05 August 2022 20:57:26 +0000 (0:00:00.746) 0:00:58.427 ********* 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] *** Friday 05 August 2022 20:57:27 +0000 (0:00:01.233) 0:00:59.660 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 20:57:28 +0000 (0:00:00.966) 0:01:00.626 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 20:57:30 +0000 (0:00:01.889) 0:01:02.515 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 20:57:31 +0000 (0:00:00.663) 0:01:03.179 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 20:57:32 +0000 (0:00:00.863) 0:01:04.042 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 20:57:33 +0000 (0:00:01.529) 0:01:05.572 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 20:57:42 +0000 (0:00:08.236) 0:01:13.809 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 20:57:43 +0000 (0:00:01.294) 0:01:15.103 ********* 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] *** Friday 05 August 2022 20:57:44 +0000 (0:00:00.813) 0:01:15.916 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 20:57:44 +0000 (0:00:00.638) 0:01:16.555 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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, 1ff8e1a6-fc5f-453c-a641-769b0380dfaf TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 20:57:52 +0000 (0:00:07.411) 0:01:23.983 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 20:57:53 +0000 (0:00:00.911) 0:01:24.895 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 1ff8e1a6-fc5f-453c-a641-769b0380dfaf" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 20:57:54 +0000 (0:00:01.562) 0:01:26.458 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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, 1ff8e1a6-fc5f-453c-a641-769b0380dfaf\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 1ff8e1a6-fc5f-453c-a641-769b0380dfaf" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 20:57:56 +0000 (0:00:02.120) 0:01:28.578 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 20:57:58 +0000 (0:00:01.560) 0:01:30.138 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Friday 05 August 2022 20:58:02 +0000 (0:00:04.335) 0:01:34.474 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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, 1ff8e1a6-fc5f-453c-a641-769b0380dfaf\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'team0': add connection team0, 1ff8e1a6-fc5f-453c-a641-769b0380dfaf" ] } } TASK [asserts] ***************************************************************** Friday 05 August 2022 20:58:05 +0000 (0:00:02.803) 0:01:37.278 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=tasks/assert_profile_present.yml) included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut => (item=tasks/assert_device_present.yml) TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:58:07 +0000 (0:00:01.491) 0:01:38.769 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 20:58:08 +0000 (0:00:01.186) 0:01:39.956 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 20:58:09 +0000 (0:00:01.174) 0:01:41.130 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 20:58:11 +0000 (0:00:02.172) 0:01:43.303 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 20:58:12 +0000 (0:00:01.155) 0:01:44.459 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep team0 | grep /etc", "delta": "0:00:00.147794", "end": "2022-08-05 20:58:13.816980", "rc": 0, "start": "2022-08-05 20:58:13.669186" } STDOUT: team0 /etc/NetworkManager/system-connections/team0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 20:58:14 +0000 (0:00:01.972) 0:01:46.432 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-team0] ************************** Friday 05 August 2022 20:58:15 +0000 (0:00:01.059) 0:01:47.492 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-team0] *********************** Friday 05 August 2022 20:58:16 +0000 (0:00:00.595) 0:01:48.087 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'team0' is present] ********************************** Friday 05 August 2022 20:58:17 +0000 (0:00:00.680) 0:01:48.767 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'team0' is present] *************** Friday 05 August 2022 20:58:17 +0000 (0:00:00.618) 0:01:49.386 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 20:58:19 +0000 (0:00:01.662) 0:01:51.048 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface team0] ******************************************** Friday 05 August 2022 20:58:20 +0000 (0:00:01.319) 0:01:52.368 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659733071.664734, "block_size": 4096, "blocks": 0, "ctime": 1659733071.664734, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22149, "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": 1659733071.664734, "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 interface team0 is present] ********************************** Friday 05 August 2022 20:58:25 +0000 (0:00:04.434) 0:01:56.802 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** Friday 05 August 2022 20:58:26 +0000 (0:00:01.110) 0:01:57.913 ********* TASK [Success in test 'Create a team interface without any port attached'] ***** Friday 05 August 2022 20:58:26 +0000 (0:00:00.781) 0:01:58.695 ********* ok: [sut] => {} MSG: +++++ Success in test 'Create a team interface without any port attached' +++++ TASK [cleanup] ***************************************************************** Friday 05 August 2022 20:58:28 +0000 (0:00:02.034) 0:02:00.729 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/cleanup_profile+device.yml for sut => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** Friday 05 August 2022 20:58:31 +0000 (0:00:02.052) 0:02:02.782 ********* 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.072427", "end": "2022-08-05 20:58:32.259370", "rc": 1, "start": "2022-08-05 20:58:32.186943" } STDOUT: Connection 'team0' (1ff8e1a6-fc5f-453c-a641-769b0380dfaf) successfully deleted. STDERR: Cannot find device "team0" MSG: non-zero return code ...ignoring PLAY RECAP ********************************************************************* sut : ok=47 changed=1 unreachable=0 failed=0 skipped=20 rescued=0 ignored=2 Friday 05 August 2022 20:58:33 +0000 (0:00:02.549) 0:02:05.331 ********* =============================================================================== linux-system-roles.network : Enable and start NetworkManager ------------ 8.24s linux-system-roles.network : Configure networking connection profiles --- 7.43s linux-system-roles.network : Check which services are running ----------- 6.28s Gathering Facts --------------------------------------------------------- 6.27s linux-system-roles.network : Check which packages are installed --------- 6.26s Get stat for interface team0 -------------------------------------------- 4.61s Get stat for interface team0 -------------------------------------------- 4.43s linux-system-roles.network : Re-test connectivity ----------------------- 4.34s Gather current interface info ------------------------------------------- 3.21s Show item --------------------------------------------------------------- 3.16s Show result ------------------------------------------------------------- 2.80s linux-system-roles.network : Ensure ansible_facts used by role are present --- 2.56s Gathering Facts --------------------------------------------------------- 2.55s Cleanup profile and device ---------------------------------------------- 2.55s remove test interface if necessary -------------------------------------- 2.54s stat profile file ------------------------------------------------------- 2.17s linux-system-roles.network : Show debug messages for the network_connections --- 2.12s cleanup ----------------------------------------------------------------- 2.05s Success in test 'Create a team interface without any port attached' ----- 2.03s Get NM profile info ----------------------------------------------------- 1.97s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---