[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. No config file found; using defaults running playbook inside collection fedora.linux_system_roles PLAY [Run playbook 'playbooks/tests_team.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* Saturday 06 July 2024 06:50:18 -0400 (0:00:00.008) 0:00:00.008 ********* [WARNING]: Platform linux on host managed_node1 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed_node1] TASK [Include the task 'el_repo_setup.yml'] ************************************ Saturday 06 July 2024 06:50:21 -0400 (0:00:02.820) 0:00:02.828 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml for managed_node1 TASK [Gather the minimum subset of ansible_facts required by the network role test] *** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.022) 0:00:02.851 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "not ansible_facts.keys() | list | intersect(network_test_required_facts) == network_test_required_facts", "skip_reason": "Conditional result was False" } TASK [Check if system is ostree] *********************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.024) 0:00:02.876 ********* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.494) 0:00:03.370 ********* ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.024) 0:00:03.395 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution == 'CentOS'", "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.015) 0:00:03.410 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 40] ********************************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.031) 0:00:03.442 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.014) 0:00:03.456 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.013) 0:00:03.470 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.014) 0:00:03.484 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.014) 0:00:03.499 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Saturday 06 July 2024 06:50:21 -0400 (0:00:00.014) 0:00:03.513 ********* ok: [managed_node1] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [Play for testing team connection] **************************************** TASK [Gathering Facts] ********************************************************* Saturday 06 July 2024 06:50:21 -0400 (0:00:00.032) 0:00:03.545 ********* ok: [managed_node1] TASK [Show playbook name] ****************************************************** Saturday 06 July 2024 06:50:24 -0400 (0:00:02.284) 0:00:05.830 ********* ok: [managed_node1] => {} MSG: this is: playbooks/tests_team.yml TASK [Include the task 'run_test.yml'] ***************************************** Saturday 06 July 2024 06:50:24 -0400 (0:00:00.019) 0:00:05.850 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 TASK [TEST: Create a team interface without any port attached] ***************** Saturday 06 July 2024 06:50:24 -0400 (0:00:00.027) 0:00:05.877 ********* ok: [managed_node1] => {} MSG: ########## Create a team interface without any port attached ########## TASK [Show item] *************************************************************** Saturday 06 July 2024 06:50:24 -0400 (0:00:00.018) 0:00:05.896 ********* ok: [managed_node1] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Create a team interface without any port attached" } ok: [managed_node1] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [managed_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_team_profile.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml", "tasks/assert_device_present.yml" ] } ok: [managed_node1] => (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: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml", "tasks/check_network_dns.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Saturday 06 July 2024 06:50:24 -0400 (0:00:00.055) 0:00:05.951 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Saturday 06 July 2024 06:50:24 -0400 (0:00:00.023) 0:00:05.975 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Saturday 06 July 2024 06:50:24 -0400 (0:00:00.021) 0:00:05.996 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003825", "end": "2024-07-06 06:50:24.766953", "rc": 0, "start": "2024-07-06 06:50:24.763128" } STDOUT: eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Saturday 06 July 2024 06:50:24 -0400 (0:00:00.491) 0:00:06.488 ********* ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Saturday 06 July 2024 06:50:24 -0400 (0:00:00.021) 0:00:06.509 ********* ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo', 'rpltstbr', 'team0'] TASK [Setup] ******************************************************************* Saturday 06 July 2024 06:50:24 -0400 (0:00:00.021) 0:00:06.530 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/delete_interface.yml for managed_node1 => (item=tasks/delete_interface.yml) included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_absent.yml for managed_node1 => (item=tasks/assert_device_absent.yml) TASK [Remove test interface if necessary] ************************************** Saturday 06 July 2024 06:50:24 -0400 (0:00:00.033) 0:00:06.564 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "team0" ], "delta": "0:00:00.014381", "end": "2024-07-06 06:50:25.260596", "rc": 0, "start": "2024-07-06 06:50:25.246215" } TASK [Include the task 'get_interface_stat.yml'] ******************************* Saturday 06 July 2024 06:50:25 -0400 (0:00:00.462) 0:00:07.027 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface team0] ******************************************** Saturday 06 July 2024 06:50:25 -0400 (0:00:00.023) 0:00:07.050 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1720263025.2635076, "block_size": 4096, "blocks": 0, "ctime": 1720263025.2635076, "dev": 23, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37801, "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": 1720263025.2635076, "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 absent - 'team0'] *************************** Saturday 06 July 2024 06:50:25 -0400 (0:00:00.398) 0:00:07.448 ********* fatal: [managed_node1]: FAILED! => { "assertion": "not interface_stat.stat.exists", "changed": false, "evaluated_to": false } MSG: team0 exists TASK [Failure in test 'Create a team interface without any port attached'] ***** Saturday 06 July 2024 06:50:25 -0400 (0:00:00.023) 0:00:07.472 ********* ok: [managed_node1] => {} MSG: !!!!! Failure in test 'Create a team interface without any port attached' !!!!! TASK [Show item that failed] *************************************************** Saturday 06 July 2024 06:50:25 -0400 (0:00:00.020) 0:00:07.492 ********* ok: [managed_node1] => (item=__network_connections_result) => { "__network_connections_result": "VARIABLE IS NOT DEFINED!: '__network_connections_result' is undefined", "ansible_loop_var": "item", "item": "__network_connections_result" } TASK [Issue failed message] **************************************************** Saturday 06 July 2024 06:50:25 -0400 (0:00:00.029) 0:00:07.521 ********* fatal: [managed_node1]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'Create a team interface without any port attached' !!!!! TASK [Cleanup] ***************************************************************** Saturday 06 July 2024 06:50:25 -0400 (0:00:00.020) 0:00:07.541 ********* included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed_node1 => (item=tasks/cleanup_profile+device.yml) included: /var/ARTIFACTS/work-generalmrilaeue/plans/general/tree/tmp.XMvRh9TpI5/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml for managed_node1 => (item=tasks/check_network_dns.yml) TASK [Cleanup profile and device] ********************************************** Saturday 06 July 2024 06:50:25 -0400 (0:00:00.036) 0:00:07.578 ********* ok: [managed_node1] => { "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.058101", "end": "2024-07-06 06:50:26.313905", "rc": 0, "start": "2024-07-06 06:50:26.255804" } STDOUT: Connection 'team0' (ae918ef6-1b0e-4391-95e2-f93b56d4d544) successfully deleted. STDERR: Could not load file '/etc/sysconfig/network-scripts/ifcfg-team0' TASK [Check routes and DNS] **************************************************** Saturday 06 July 2024 06:50:26 -0400 (0:00:00.471) 0:00:08.050 ********* ok: [managed_node1] => { "changed": false, "cmd": "set -euo pipefail\necho IP\nip a\necho IP ROUTE\nip route\necho IP -6 ROUTE\nip -6 route\necho RESOLV\nif [ -f /etc/resolv.conf ]; then\n cat /etc/resolv.conf\nelse\n echo NO /etc/resolv.conf\n ls -alrtF /etc/resolv.* || :\nfi\n", "delta": "0:00:00.010328", "end": "2024-07-06 06:50:26.739971", "rc": 0, "start": "2024-07-06 06:50:26.729643" } STDOUT: IP 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: eth0: mtu 9001 qdisc mq state UP group default qlen 1000 link/ether 0e:2d:fb:90:9f:a1 brd ff:ff:ff:ff:ff:ff altname enX0 inet 10.31.40.186/22 brd 10.31.43.255 scope global dynamic noprefixroute eth0 valid_lft 3436sec preferred_lft 3436sec inet6 fe80::c2d:fbff:fe90:9fa1/64 scope link noprefixroute valid_lft forever preferred_lft forever 19: rpltstbr: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether a2:c0:a7:cb:4a:08 brd ff:ff:ff:ff:ff:ff inet 192.0.2.72/31 scope global noprefixroute rpltstbr valid_lft forever preferred_lft forever IP ROUTE default via 10.31.40.1 dev eth0 proto dhcp src 10.31.40.186 metric 100 10.31.40.0/22 dev eth0 proto kernel scope link src 10.31.40.186 metric 100 192.0.2.72/31 dev rpltstbr proto kernel scope link src 192.0.2.72 metric 425 linkdown IP -6 ROUTE fe80::/64 dev eth0 proto kernel metric 1024 pref medium RESOLV # This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8). # Do not edit. # # This file might be symlinked as /etc/resolv.conf. If you're looking at # /etc/resolv.conf and seeing this text, you have followed the symlink. # # This is a dynamic resolv.conf file for connecting local clients to the # internal DNS stub resolver of systemd-resolved. This file lists all # configured search domains. # # Run "resolvectl status" to see details about the uplink DNS servers # currently in use. # # Third party programs should typically not access this file directly, but only # through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a # different way, replace this symlink by a static file or a different symlink. # # See man:systemd-resolved.service(8) for details about the supported modes of # operation for /etc/resolv.conf. nameserver 127.0.0.53 options edns0 trust-ad search us-east-1.aws.redhat.com TASK [Verify DNS and network connectivity] ************************************* Saturday 06 July 2024 06:50:26 -0400 (0:00:00.409) 0:00:08.459 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_facts[\"distribution\"] == \"CentOS\"", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed_node1 : ok=27 changed=0 unreachable=0 failed=1 skipped=8 rescued=1 ignored=0 Saturday 06 July 2024 06:50:26 -0400 (0:00:00.013) 0:00:08.473 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 2.82s Gathering Facts --------------------------------------------------------- 2.29s Check if system is ostree ----------------------------------------------- 0.49s Gather current interface info ------------------------------------------- 0.49s Cleanup profile and device ---------------------------------------------- 0.47s Remove test interface if necessary -------------------------------------- 0.46s Check routes and DNS ---------------------------------------------------- 0.41s Get stat for interface team0 -------------------------------------------- 0.40s Show item --------------------------------------------------------------- 0.06s Cleanup ----------------------------------------------------------------- 0.04s Setup ------------------------------------------------------------------- 0.03s Set network provider to 'nm' -------------------------------------------- 0.03s Include the task 'enable_epel.yml' -------------------------------------- 0.03s Show item that failed --------------------------------------------------- 0.03s Include the task 'run_test.yml' ----------------------------------------- 0.03s Gather the minimum subset of ansible_facts required by the network role test --- 0.02s Set flag to indicate system is ostree ----------------------------------- 0.02s Include the task 'get_interface_stat.yml' ------------------------------- 0.02s Include the task 'show_interfaces.yml' ---------------------------------- 0.02s Assert that the interface is absent - 'team0' --------------------------- 0.02s