ansible-playbook [core 2.17.9] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-5ok executable location = /usr/local/bin/ansible-playbook python version = 3.12.9 (main, Feb 4 2025, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)] (/usr/bin/python3.12) jinja version = 3.1.5 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_bond_options_nm.yml ******************************************** 2 plays in /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml PLAY [Run playbook 'playbooks/tests_bond_options.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml:6 Wednesday 12 March 2025 15:10:36 -0400 (0:00:00.009) 0:00:00.009 ******* [WARNING]: Platform linux on host managed-node5 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-node5] TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml:9 Wednesday 12 March 2025 15:10:38 -0400 (0:00:01.369) 0:00:01.378 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml for managed-node5 TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:3 Wednesday 12 March 2025 15:10:38 -0400 (0:00:00.079) 0:00:01.458 ******* ok: [managed-node5] TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:17 Wednesday 12 March 2025 15:10:38 -0400 (0:00:00.656) 0:00:02.114 ******* ok: [managed-node5] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:22 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.574) 0:00:02.689 ******* ok: [managed-node5] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:26 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.070) 0:00:02.760 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution == 'CentOS'", "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:51 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.024) 0:00:02.784 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed-node5 TASK [Create EPEL 40] ********************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:8 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.057) 0:00:02.841 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:26 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.017) 0:00:02.859 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:32 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.018) 0:00:02.877 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:37 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.017) 0:00:02.895 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:42 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.014) 0:00:02.910 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in ['RedHat', 'CentOS']", "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml:11 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.018) 0:00:02.928 ******* ok: [managed-node5] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [Play for testing bond options] ******************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:3 Wednesday 12 March 2025 15:10:39 -0400 (0:00:00.024) 0:00:02.953 ******* ok: [managed-node5] TASK [Show playbook name] ****************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:32 Wednesday 12 March 2025 15:10:40 -0400 (0:00:00.974) 0:00:03.927 ******* ok: [managed-node5] => {} MSG: this is: playbooks/tests_bond_options.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:42 Wednesday 12 March 2025 15:10:40 -0400 (0:00:00.040) 0:00:03.968 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed-node5 TASK [TEST: Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 12 March 2025 15:10:40 -0400 (0:00:00.066) 0:00:04.034 ******* ok: [managed-node5] => {} MSG: ########## Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device. ########## TASK [Show item] *************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 12 March 2025 15:10:40 -0400 (0:00:00.027) 0:00:04.062 ******* ok: [managed-node5] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device." } ok: [managed-node5] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_test_interfaces_with_dhcp.yml", "tasks/assert_dhcp_device_present.yml" ] } ok: [managed-node5] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bond_profile.yml" ] } ok: [managed-node5] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_controller_device_present.yml", "tasks/assert_bond_port_profile_present.yml", "tasks/assert_bond_options.yml" ] } ok: [managed-node5] => (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-node5] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed-node5] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_bond_profile+device.yml", "tasks/remove_test_interfaces_with_dhcp.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 12 March 2025 15:10:40 -0400 (0:00:00.097) 0:00:04.159 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed-node5 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 12 March 2025 15:10:40 -0400 (0:00:00.040) 0:00:04.200 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed-node5 TASK [Gather current interface info] ******************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 12 March 2025 15:10:40 -0400 (0:00:00.037) 0:00:04.238 ******* ok: [managed-node5] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003412", "end": "2025-03-12 15:10:41.479045", "rc": 0, "start": "2025-03-12 15:10:41.475633" } STDOUT: eth0 eth1 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 12 March 2025 15:10:41 -0400 (0:00:00.596) 0:00:04.834 ******* ok: [managed-node5] => { "ansible_facts": { "current_interfaces": [ "eth0", "eth1", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 Wednesday 12 March 2025 15:10:41 -0400 (0:00:00.020) 0:00:04.854 ******* ok: [managed-node5] => {} MSG: current_interfaces: ['eth0', 'eth1', 'lo'] TASK [Setup] ******************************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:24 Wednesday 12 March 2025 15:10:41 -0400 (0:00:00.025) 0:00:04.879 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml for managed-node5 => (item=tasks/create_test_interfaces_with_dhcp.yml) statically imported: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml statically imported: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_dhcp_device_present.yml for managed-node5 => (item=tasks/assert_dhcp_device_present.yml) TASK [Install dnsmasq] ********************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 Wednesday 12 March 2025 15:10:41 -0400 (0:00:00.055) 0:00:04.935 ******* changed: [managed-node5] => { "attempts": 1, "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.90-1.fc40.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:17 Wednesday 12 March 2025 15:10:56 -0400 (0:00:14.987) 0:00:19.922 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution_major_version is version('6', '<=')", "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:26 Wednesday 12 March 2025 15:10:56 -0400 (0:00:00.112) 0:00:20.035 ******* ok: [managed-node5] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:35 Wednesday 12 March 2025 15:10:58 -0400 (0:00:01.890) 0:00:21.925 ******* ok: [managed-node5] => { "changed": false, "cmd": "set -euxo pipefail\nexec 1>&2\nip link add test1 type veth peer name test1p\nip link add test2 type veth peer name test2p\nif [ -n \"$(pgrep NetworkManager)\" ];then\n nmcli d set test1 managed true\n nmcli d set test2 managed true\n # NetworkManager should not manage DHCP server ports\n nmcli d set test1p managed false\n nmcli d set test2p managed false\nfi\nip link set test1p up\nip link set test2p up\n\n# Create the 'testbr' - providing both 10.x ipv4 and 2620:52:0 ipv6 dhcp\nip link add name testbr type bridge forward_delay 0\nif [ -n \"$(pgrep NetworkManager)\" ];then\n # NetworkManager should not manage DHCP server ports\n nmcli d set testbr managed false\nfi\nip link set testbr up\ntimer=0\n# The while loop following is a workaround for the NM bug, which can be\n# tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2079642\nwhile ! ip addr show testbr | grep -q 'inet [1-9]'\ndo\n let \"timer+=1\"\n if [ $timer -eq 30 ]; then\n echo ERROR - could not add testbr\n ip addr\n exit 1\n fi\n sleep 1\n rc=0\n ip addr add 192.0.2.1/24 dev testbr || rc=\"$?\"\n if [ \"$rc\" != 0 ]; then\n echo NOTICE - could not add testbr - error code \"$rc\"\n continue\n fi\n ip -6 addr add 2001:DB8::1/32 dev testbr || rc=\"$?\"\n if [ \"$rc\" != 0 ]; then\n echo NOTICE - could not add testbr - error code \"$rc\"\n continue\n fi\ndone\n\nif grep 'release 6' /etc/redhat-release; then\n # We need bridge-utils and radvd only in rhel6\n if ! rpm -q --quiet radvd; then yum -y install radvd; fi\n if ! rpm -q --quiet bridge-utils; then yum -y install bridge-utils; fi\n\n # We need to add iptables rule to allow dhcp request\n iptables -I INPUT -i testbr -p udp --dport 67:68 --sport 67:68 -j ACCEPT\n\n # Add test1, test2 peers into the testbr\n brctl addif testbr test1p\n brctl addif testbr test2p\n\n # in RHEL6 /run is not present\n mkdir -p /run\n\n # and dnsmasq does not support ipv6\n dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --interface=testbr --bind-interfaces\n\n # start radvd for ipv6\n echo 'interface testbr {' > /etc/radvd.conf\n echo ' AdvSendAdvert on;' >> /etc/radvd.conf\n echo ' prefix 2001:DB8::/64 { ' >> /etc/radvd.conf\n echo ' AdvOnLink on; }; ' >> /etc/radvd.conf\n echo ' }; ' >> /etc/radvd.conf\n\n # enable ipv6 forwarding\n sysctl -w net.ipv6.conf.all.forwarding=1\n service radvd restart\n\nelse\n ip link set test1p master testbr\n ip link set test2p master testbr\n # Run joint DHCP4/DHCP6 server with RA enabled in veth namespace\n if systemctl is-active firewalld; then\n for service in dhcp dhcpv6 dhcpv6-client; do\n if ! firewall-cmd --query-service=\"$service\"; then\n firewall-cmd --add-service \"$service\"\n fi\n done\n fi\n dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --dhcp-range=2001:DB8::10,2001:DB8::1FF,slaac,64,240 --enable-ra --interface=testbr --bind-interfaces\nfi\n", "delta": "0:00:01.302714", "end": "2025-03-12 15:11:00.447005", "rc": 0, "start": "2025-03-12 15:10:59.144291" } STDERR: + exec + ip link add test1 type veth peer name test1p + ip link add test2 type veth peer name test2p ++ pgrep NetworkManager + '[' -n 690 ']' + nmcli d set test1 managed true + nmcli d set test2 managed true + nmcli d set test1p managed false + nmcli d set test2p managed false + ip link set test1p up + ip link set test2p up + ip link add name testbr type bridge forward_delay 0 ++ pgrep NetworkManager + '[' -n 690 ']' + nmcli d set testbr managed false + ip link set testbr up + timer=0 + ip addr show testbr + grep -q 'inet [1-9]' + let timer+=1 + '[' 1 -eq 30 ']' + sleep 1 + rc=0 + ip addr add 192.0.2.1/24 dev testbr + '[' 0 '!=' 0 ']' + ip -6 addr add 2001:DB8::1/32 dev testbr + '[' 0 '!=' 0 ']' + ip addr show testbr + grep -q 'inet [1-9]' + grep 'release 6' /etc/redhat-release + ip link set test1p master testbr + ip link set test2p master testbr + systemctl is-active firewalld inactive + dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --dhcp-range=2001:DB8::10,2001:DB8::1FF,slaac,64,240 --enable-ra --interface=testbr --bind-interfaces TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 12 March 2025 15:11:00 -0400 (0:00:01.929) 0:00:23.855 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed-node5 TASK [Get stat for interface test1] ******************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 12 March 2025 15:11:00 -0400 (0:00:00.109) 0:00:23.964 ******* ok: [managed-node5] => { "changed": false, "stat": { "atime": 1741806659.1575515, "block_size": 4096, "blocks": 0, "ctime": 1741806659.1575515, "dev": 23, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 34220, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test1", "lnk_target": "../../devices/virtual/net/test1", "mode": "0777", "mtime": 1741806659.1575515, "nlink": 1, "path": "/sys/class/net/test1", "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 - 'test1'] ************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 12 March 2025 15:11:01 -0400 (0:00:00.722) 0:00:24.686 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 12 March 2025 15:11:01 -0400 (0:00:00.127) 0:00:24.813 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed-node5 TASK [Get stat for interface test2] ******************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 12 March 2025 15:11:01 -0400 (0:00:00.131) 0:00:24.945 ******* ok: [managed-node5] => { "changed": false, "stat": { "atime": 1741806659.16344, "block_size": 4096, "blocks": 0, "ctime": 1741806659.16344, "dev": 23, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 34626, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test2", "lnk_target": "../../devices/virtual/net/test2", "mode": "0777", "mtime": 1741806659.16344, "nlink": 1, "path": "/sys/class/net/test2", "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 - 'test2'] ************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 12 March 2025 15:11:02 -0400 (0:00:00.742) 0:00:25.688 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:30 Wednesday 12 March 2025 15:11:02 -0400 (0:00:00.083) 0:00:25.772 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile.yml for managed-node5 => (item=tasks/create_bond_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile.yml:3 Wednesday 12 March 2025 15:11:02 -0400 (0:00:00.148) 0:00:25.920 ******* redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf included: fedora.linux_system_roles.network for managed-node5 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 12 March 2025 15:11:02 -0400 (0:00:00.155) 0:00:26.077 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed-node5 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 12 March 2025 15:11:02 -0400 (0:00:00.117) 0:00:26.195 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 12 March 2025 15:11:02 -0400 (0:00:00.069) 0:00:26.265 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 12 March 2025 15:11:03 -0400 (0:00:00.042) 0:00:26.307 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 12 March 2025 15:11:03 -0400 (0:00:00.065) 0:00:26.372 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 12 March 2025 15:11:06 -0400 (0:00:03.230) 0:00:29.603 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 12 March 2025 15:11:09 -0400 (0:00:03.455) 0:00:33.058 ******* ok: [managed-node5] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 12 March 2025 15:11:09 -0400 (0:00:00.208) 0:00:33.267 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 12 March 2025 15:11:10 -0400 (0:00:00.169) 0:00:33.437 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 12 March 2025 15:11:10 -0400 (0:00:00.175) 0:00:33.612 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in __network_rh_distros", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 12 March 2025 15:11:10 -0400 (0:00:00.196) 0:00:33.809 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 12 March 2025 15:11:10 -0400 (0:00:00.439) 0:00:34.248 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 12 March 2025 15:11:11 -0400 (0:00:00.264) 0:00:34.513 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 12 March 2025 15:11:11 -0400 (0:00:00.166) 0:00:34.679 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 12 March 2025 15:11:11 -0400 (0:00:00.162) 0:00:34.842 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 12 March 2025 15:11:11 -0400 (0:00:00.111) 0:00:34.953 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 12 March 2025 15:11:11 -0400 (0:00:00.209) 0:00:35.163 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 12 March 2025 15:11:12 -0400 (0:00:00.476) 0:00:35.639 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 12 March 2025 15:11:14 -0400 (0:00:02.646) 0:00:38.286 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 12 March 2025 15:11:15 -0400 (0:00:00.337) 0:00:38.624 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 12 March 2025 15:11:15 -0400 (0:00:00.086) 0:00:38.711 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 12 March 2025 15:11:15 -0400 (0:00:00.147) 0:00:38.858 ******* changed: [managed-node5] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "bond": { "ad_actor_sys_prio": 65535, "ad_actor_system": "00:00:5e:00:53:5d", "ad_select": "stable", "ad_user_port_key": 1023, "all_ports_active": true, "downdelay": 0, "lacp_rate": "slow", "lp_interval": 128, "miimon": 110, "min_links": 0, "mode": "802.3ad", "num_grat_arp": 64, "primary_reselect": "better", "resend_igmp": 225, "updelay": 0, "use_carrier": true, "xmit_hash_policy": "encap2+3" }, "interface_name": "nm-bond", "ip": { "route_metric4": 65535 }, "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 12 March 2025 15:11:18 -0400 (0:00:02.522) 0:00:41.381 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 12 March 2025 15:11:18 -0400 (0:00:00.129) 0:00:41.510 ******* ok: [managed-node5] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 12 March 2025 15:11:18 -0400 (0:00:00.173) 0:00:41.684 ******* ok: [managed-node5] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "bond": { "ad_actor_sys_prio": 65535, "ad_actor_system": "00:00:5e:00:53:5d", "ad_select": "stable", "ad_user_port_key": 1023, "all_ports_active": true, "downdelay": 0, "lacp_rate": "slow", "lp_interval": 128, "miimon": 110, "min_links": 0, "mode": "802.3ad", "num_grat_arp": 64, "primary_reselect": "better", "resend_igmp": 225, "updelay": 0, "use_carrier": true, "xmit_hash_policy": "encap2+3" }, "interface_name": "nm-bond", "ip": { "route_metric4": 65535 }, "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 12 March 2025 15:11:18 -0400 (0:00:00.220) 0:00:41.904 ******* skipping: [managed-node5] => { "false_condition": "network_state != {}" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 12 March 2025 15:11:18 -0400 (0:00:00.178) 0:00:42.082 ******* ok: [managed-node5] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile.yml:46 Wednesday 12 March 2025 15:11:20 -0400 (0:00:01.386) 0:00:43.469 ******* ok: [managed-node5] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "bond": { "ad_actor_sys_prio": 65535, "ad_actor_system": "00:00:5e:00:53:5d", "ad_select": "stable", "ad_user_port_key": 1023, "all_ports_active": true, "downdelay": 0, "lacp_rate": "slow", "lp_interval": 128, "miimon": 110, "min_links": 0, "mode": "802.3ad", "num_grat_arp": 64, "primary_reselect": "better", "resend_igmp": 225, "updelay": 0, "use_carrier": true, "xmit_hash_policy": "encap2+3" }, "interface_name": "nm-bond", "ip": { "route_metric4": 65535 }, "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 855cdad2-7165-4c56-8ba3-d005f830abbe (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 02a3b762-ea18-4161-9cef-6b04529ccfbf (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, e564d00b-afac-4eca-9acc-ade352ee68be (not-active)" ] } } TASK [Asserts] ***************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:36 Wednesday 12 March 2025 15:11:20 -0400 (0:00:00.235) 0:00:43.705 ******* statically imported: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_controller_device_present.yml for managed-node5 => (item=tasks/assert_controller_device_present.yml) included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_port_profile_present.yml for managed-node5 => (item=tasks/assert_bond_port_profile_present.yml) included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml for managed-node5 => (item=tasks/assert_bond_options.yml) TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 12 March 2025 15:11:20 -0400 (0:00:00.577) 0:00:44.282 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed-node5 TASK [Get stat for interface nm-bond] ****************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 12 March 2025 15:11:21 -0400 (0:00:00.274) 0:00:44.557 ******* ok: [managed-node5] => { "changed": false, "stat": { "atime": 1741806677.7770813, "block_size": 4096, "blocks": 0, "ctime": 1741806677.7770813, "dev": 23, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 35232, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/nm-bond", "lnk_target": "../../devices/virtual/net/nm-bond", "mode": "0777", "mtime": 1741806677.7770813, "nlink": 1, "path": "/sys/class/net/nm-bond", "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 - 'nm-bond'] ************************ task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 12 March 2025 15:11:22 -0400 (0:00:00.795) 0:00:45.352 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_port_profile_present.yml:3 Wednesday 12 March 2025 15:11:22 -0400 (0:00:00.260) 0:00:45.612 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed-node5 => (item=bond0) included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed-node5 => (item=bond0.0) included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed-node5 => (item=bond0.1) TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 12 March 2025 15:11:22 -0400 (0:00:00.388) 0:00:46.001 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed-node5 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 12 March 2025 15:11:23 -0400 (0:00:00.322) 0:00:46.323 ******* ok: [managed-node5] => { "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: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:9 Wednesday 12 March 2025 15:11:23 -0400 (0:00:00.164) 0:00:46.487 ******* ok: [managed-node5] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:17 Wednesday 12 March 2025 15:11:23 -0400 (0:00:00.631) 0:00:47.119 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:25 Wednesday 12 March 2025 15:11:23 -0400 (0:00:00.145) 0:00:47.264 ******* ok: [managed-node5] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.029899", "end": "2025-03-12 15:11:24.533982", "rc": 0, "start": "2025-03-12 15:11:24.504083" } STDOUT: bond0 /etc/NetworkManager/system-connections/bond0.nmconnection bond0.0 /etc/NetworkManager/system-connections/bond0.0.nmconnection bond0.1 /etc/NetworkManager/system-connections/bond0.1.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:35 Wednesday 12 March 2025 15:11:24 -0400 (0:00:00.692) 0:00:47.957 ******* ok: [managed-node5] => { "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-bond0] ************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 12 March 2025 15:11:24 -0400 (0:00:00.078) 0:00:48.036 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:56 Wednesday 12 March 2025 15:11:24 -0400 (0:00:00.106) 0:00:48.143 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-bond0] ****************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:62 Wednesday 12 March 2025 15:11:25 -0400 (0:00:00.298) 0:00:48.441 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-bond0] *************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:69 Wednesday 12 March 2025 15:11:25 -0400 (0:00:00.197) 0:00:48.641 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'bond0'] **************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:5 Wednesday 12 March 2025 15:11:25 -0400 (0:00:00.263) 0:00:48.904 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'bond0'] *********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:10 Wednesday 12 March 2025 15:11:25 -0400 (0:00:00.221) 0:00:49.125 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in bond0] ***************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:15 Wednesday 12 March 2025 15:11:25 -0400 (0:00:00.165) 0:00:49.290 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 12 March 2025 15:11:26 -0400 (0:00:00.189) 0:00:49.480 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed-node5 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 12 March 2025 15:11:26 -0400 (0:00:00.278) 0:00:49.758 ******* ok: [managed-node5] => { "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: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:9 Wednesday 12 March 2025 15:11:26 -0400 (0:00:00.143) 0:00:49.902 ******* ok: [managed-node5] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:17 Wednesday 12 March 2025 15:11:27 -0400 (0:00:00.735) 0:00:50.637 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:25 Wednesday 12 March 2025 15:11:27 -0400 (0:00:00.228) 0:00:50.865 ******* ok: [managed-node5] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.024777", "end": "2025-03-12 15:11:28.217056", "rc": 0, "start": "2025-03-12 15:11:28.192279" } STDOUT: bond0.0 /etc/NetworkManager/system-connections/bond0.0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:35 Wednesday 12 March 2025 15:11:28 -0400 (0:00:00.865) 0:00:51.731 ******* ok: [managed-node5] => { "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-bond0.0] ************************ task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 12 March 2025 15:11:28 -0400 (0:00:00.217) 0:00:51.948 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:56 Wednesday 12 March 2025 15:11:28 -0400 (0:00:00.222) 0:00:52.171 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-bond0.0] **************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:62 Wednesday 12 March 2025 15:11:29 -0400 (0:00:00.242) 0:00:52.413 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-bond0.0] ************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:69 Wednesday 12 March 2025 15:11:29 -0400 (0:00:00.228) 0:00:52.642 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'bond0.0'] ************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:5 Wednesday 12 March 2025 15:11:29 -0400 (0:00:00.311) 0:00:52.953 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'bond0.0'] ********* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:10 Wednesday 12 March 2025 15:11:29 -0400 (0:00:00.174) 0:00:53.128 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in bond0.0] *************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:15 Wednesday 12 March 2025 15:11:30 -0400 (0:00:00.171) 0:00:53.300 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 12 March 2025 15:11:30 -0400 (0:00:00.181) 0:00:53.481 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed-node5 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 12 March 2025 15:11:30 -0400 (0:00:00.412) 0:00:53.894 ******* ok: [managed-node5] => { "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: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:9 Wednesday 12 March 2025 15:11:30 -0400 (0:00:00.192) 0:00:54.086 ******* ok: [managed-node5] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:17 Wednesday 12 March 2025 15:11:31 -0400 (0:00:00.708) 0:00:54.795 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:25 Wednesday 12 March 2025 15:11:31 -0400 (0:00:00.171) 0:00:54.966 ******* ok: [managed-node5] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.025085", "end": "2025-03-12 15:11:32.285669", "rc": 0, "start": "2025-03-12 15:11:32.260584" } STDOUT: bond0.1 /etc/NetworkManager/system-connections/bond0.1.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:35 Wednesday 12 March 2025 15:11:32 -0400 (0:00:00.811) 0:00:55.778 ******* ok: [managed-node5] => { "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-bond0.1] ************************ task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 12 March 2025 15:11:32 -0400 (0:00:00.140) 0:00:55.918 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:56 Wednesday 12 March 2025 15:11:32 -0400 (0:00:00.119) 0:00:56.038 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-bond0.1] **************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:62 Wednesday 12 March 2025 15:11:32 -0400 (0:00:00.094) 0:00:56.132 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-bond0.1] ************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:69 Wednesday 12 March 2025 15:11:32 -0400 (0:00:00.057) 0:00:56.190 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'bond0.1'] ************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:5 Wednesday 12 March 2025 15:11:32 -0400 (0:00:00.051) 0:00:56.242 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'bond0.1'] ********* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:10 Wednesday 12 March 2025 15:11:33 -0400 (0:00:00.086) 0:00:56.328 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in bond0.1] *************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:15 Wednesday 12 March 2025 15:11:33 -0400 (0:00:00.099) 0:00:56.428 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [** TEST check bond settings] ********************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:3 Wednesday 12 March 2025 15:11:33 -0400 (0:00:00.280) 0:00:56.708 ******* ok: [managed-node5] => (item={'key': 'mode', 'value': '802.3ad'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "mode", "value": "802.3ad" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/mode" ], "delta": "0:00:00.003279", "end": "2025-03-12 15:11:33.957097", "rc": 0, "start": "2025-03-12 15:11:33.953818" } STDOUT: 802.3ad 4 ok: [managed-node5] => (item={'key': 'ad_actor_sys_prio', 'value': '65535'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "ad_actor_sys_prio", "value": "65535" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_actor_sys_prio" ], "delta": "0:00:00.003681", "end": "2025-03-12 15:11:34.512475", "rc": 0, "start": "2025-03-12 15:11:34.508794" } STDOUT: 65535 ok: [managed-node5] => (item={'key': 'ad_actor_system', 'value': '00:00:5e:00:53:5d'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "ad_actor_system", "value": "00:00:5e:00:53:5d" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_actor_system" ], "delta": "0:00:00.003431", "end": "2025-03-12 15:11:35.041856", "rc": 0, "start": "2025-03-12 15:11:35.038425" } STDOUT: 00:00:5e:00:53:5d ok: [managed-node5] => (item={'key': 'ad_select', 'value': 'stable'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "ad_select", "value": "stable" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_select" ], "delta": "0:00:00.003797", "end": "2025-03-12 15:11:35.587573", "rc": 0, "start": "2025-03-12 15:11:35.583776" } STDOUT: stable 0 ok: [managed-node5] => (item={'key': 'ad_user_port_key', 'value': '1023'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "ad_user_port_key", "value": "1023" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_user_port_key" ], "delta": "0:00:00.003776", "end": "2025-03-12 15:11:36.126264", "rc": 0, "start": "2025-03-12 15:11:36.122488" } STDOUT: 1023 ok: [managed-node5] => (item={'key': 'all_slaves_active', 'value': '1'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "all_slaves_active", "value": "1" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/all_slaves_active" ], "delta": "0:00:00.003242", "end": "2025-03-12 15:11:36.610149", "rc": 0, "start": "2025-03-12 15:11:36.606907" } STDOUT: 1 ok: [managed-node5] => (item={'key': 'downdelay', 'value': '0'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "downdelay", "value": "0" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/downdelay" ], "delta": "0:00:00.003813", "end": "2025-03-12 15:11:37.192196", "rc": 0, "start": "2025-03-12 15:11:37.188383" } STDOUT: 0 ok: [managed-node5] => (item={'key': 'lacp_rate', 'value': 'slow'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "lacp_rate", "value": "slow" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/lacp_rate" ], "delta": "0:00:01.004296", "end": "2025-03-12 15:11:38.812576", "rc": 0, "start": "2025-03-12 15:11:37.808280" } STDOUT: slow 0 ok: [managed-node5] => (item={'key': 'lp_interval', 'value': '128'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "lp_interval", "value": "128" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/lp_interval" ], "delta": "0:00:00.003341", "end": "2025-03-12 15:11:39.432059", "rc": 0, "start": "2025-03-12 15:11:39.428718" } STDOUT: 128 ok: [managed-node5] => (item={'key': 'miimon', 'value': '110'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "miimon", "value": "110" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/miimon" ], "delta": "0:00:00.003280", "end": "2025-03-12 15:11:40.036780", "rc": 0, "start": "2025-03-12 15:11:40.033500" } STDOUT: 110 ok: [managed-node5] => (item={'key': 'num_grat_arp', 'value': '64'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "num_grat_arp", "value": "64" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/num_grat_arp" ], "delta": "0:00:00.003247", "end": "2025-03-12 15:11:40.645169", "rc": 0, "start": "2025-03-12 15:11:40.641922" } STDOUT: 64 ok: [managed-node5] => (item={'key': 'resend_igmp', 'value': '225'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "resend_igmp", "value": "225" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/resend_igmp" ], "delta": "0:00:00.003310", "end": "2025-03-12 15:11:41.261045", "rc": 0, "start": "2025-03-12 15:11:41.257735" } STDOUT: 225 ok: [managed-node5] => (item={'key': 'updelay', 'value': '0'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "updelay", "value": "0" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/updelay" ], "delta": "0:00:00.003847", "end": "2025-03-12 15:11:41.887173", "rc": 0, "start": "2025-03-12 15:11:41.883326" } STDOUT: 0 ok: [managed-node5] => (item={'key': 'use_carrier', 'value': '1'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "use_carrier", "value": "1" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/use_carrier" ], "delta": "0:00:00.003347", "end": "2025-03-12 15:11:42.534889", "rc": 0, "start": "2025-03-12 15:11:42.531542" } STDOUT: 1 ok: [managed-node5] => (item={'key': 'xmit_hash_policy', 'value': 'encap2+3'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "xmit_hash_policy", "value": "encap2+3" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/xmit_hash_policy" ], "delta": "0:00:01.004390", "end": "2025-03-12 15:11:44.126633", "rc": 0, "start": "2025-03-12 15:11:43.122243" } STDOUT: encap2+3 3 TASK [Include the task 'assert_IPv4_present.yml'] ****************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:11 Wednesday 12 March 2025 15:11:44 -0400 (0:00:10.974) 0:01:07.683 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv4_present.yml for managed-node5 TASK [** TEST check IPv4] ****************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv4_present.yml:3 Wednesday 12 March 2025 15:11:44 -0400 (0:00:00.363) 0:01:08.046 ******* ok: [managed-node5] => { "attempts": 1, "changed": false, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004008", "end": "2025-03-12 15:11:45.336242", "rc": 0, "start": "2025-03-12 15:11:45.332234" } STDOUT: 9: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.224/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 215sec preferred_lft 215sec TASK [Include the task 'assert_IPv6_present.yml'] ****************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:16 Wednesday 12 March 2025 15:11:45 -0400 (0:00:00.831) 0:01:08.878 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv6_present.yml for managed-node5 TASK [** TEST check IPv6] ****************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv6_present.yml:3 Wednesday 12 March 2025 15:11:45 -0400 (0:00:00.297) 0:01:09.176 ******* ok: [managed-node5] => { "attempts": 1, "changed": false, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004054", "end": "2025-03-12 15:11:46.412009", "rc": 0, "start": "2025-03-12 15:11:46.407955" } STDOUT: 9: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::cf/128 scope global dynamic noprefixroute valid_lft 215sec preferred_lft 215sec inet6 2001:db8::f891:a2ff:fe90:2db3/64 scope global dynamic noprefixroute valid_lft 1798sec preferred_lft 1798sec inet6 fe80::f891:a2ff:fe90:2db3/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [Conditional asserts] ***************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:42 Wednesday 12 March 2025 15:11:46 -0400 (0:00:00.744) 0:01:09.921 ******* skipping: [managed-node5] => { "changed": false, "skipped_reason": "No items in the list" } TASK [Success in test 'Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.'] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 12 March 2025 15:11:46 -0400 (0:00:00.297) 0:01:10.219 ******* ok: [managed-node5] => {} MSG: +++++ Success in test 'Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.' +++++ TASK [Cleanup] ***************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 12 March 2025 15:11:47 -0400 (0:00:00.230) 0:01:10.449 ******* redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_bond_profile+device.yml for managed-node5 => (item=tasks/cleanup_bond_profile+device.yml) included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml for managed-node5 => (item=tasks/remove_test_interfaces_with_dhcp.yml) TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 12 March 2025 15:11:47 -0400 (0:00:00.598) 0:01:11.047 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed-node5 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 12 March 2025 15:11:48 -0400 (0:00:00.466) 0:01:11.514 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 12 March 2025 15:11:48 -0400 (0:00:00.434) 0:01:11.948 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 12 March 2025 15:11:49 -0400 (0:00:00.516) 0:01:12.464 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 12 March 2025 15:11:49 -0400 (0:00:00.302) 0:01:12.767 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 12 March 2025 15:11:52 -0400 (0:00:03.190) 0:01:15.958 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 12 March 2025 15:11:54 -0400 (0:00:01.681) 0:01:17.639 ******* ok: [managed-node5] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 12 March 2025 15:11:54 -0400 (0:00:00.160) 0:01:17.800 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 12 March 2025 15:11:54 -0400 (0:00:00.098) 0:01:17.898 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 12 March 2025 15:11:54 -0400 (0:00:00.069) 0:01:17.968 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in __network_rh_distros", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 12 March 2025 15:11:54 -0400 (0:00:00.136) 0:01:18.105 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 12 March 2025 15:11:55 -0400 (0:00:00.310) 0:01:18.416 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 12 March 2025 15:11:55 -0400 (0:00:00.267) 0:01:18.684 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 12 March 2025 15:11:55 -0400 (0:00:00.274) 0:01:18.958 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 12 March 2025 15:11:56 -0400 (0:00:00.427) 0:01:19.386 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 12 March 2025 15:11:56 -0400 (0:00:00.207) 0:01:19.593 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 12 March 2025 15:11:56 -0400 (0:00:00.238) 0:01:19.832 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 12 March 2025 15:11:57 -0400 (0:00:00.798) 0:01:20.631 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 12 March 2025 15:11:58 -0400 (0:00:01.519) 0:01:22.151 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 12 March 2025 15:11:59 -0400 (0:00:00.438) 0:01:22.589 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 12 March 2025 15:11:59 -0400 (0:00:00.199) 0:01:22.788 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 12 March 2025 15:11:59 -0400 (0:00:00.197) 0:01:22.986 ******* changed: [managed-node5] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 12 March 2025 15:12:01 -0400 (0:00:01.715) 0:01:24.701 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 12 March 2025 15:12:01 -0400 (0:00:00.287) 0:01:24.989 ******* ok: [managed-node5] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 12 March 2025 15:12:01 -0400 (0:00:00.152) 0:01:25.141 ******* ok: [managed-node5] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 12 March 2025 15:12:02 -0400 (0:00:00.275) 0:01:25.417 ******* skipping: [managed-node5] => { "false_condition": "network_state != {}" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 12 March 2025 15:12:02 -0400 (0:00:00.171) 0:01:25.588 ******* ok: [managed-node5] => { "changed": false, "ping": "pong" } TASK [Delete the device 'nm-bond'] ********************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_bond_profile+device.yml:22 Wednesday 12 March 2025 15:12:03 -0400 (0:00:00.815) 0:01:26.404 ******* ok: [managed-node5] => { "changed": false, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.007734", "end": "2025-03-12 15:12:03.599583", "failed_when_result": false, "rc": 1, "start": "2025-03-12 15:12:03.591849" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code TASK [Remove test interfaces] ************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:3 Wednesday 12 March 2025 15:12:03 -0400 (0:00:00.696) 0:01:27.100 ******* ok: [managed-node5] => { "changed": false, "cmd": "set -euxo pipefail\nexec 1>&2\nrc=0\nip link delete test1 || rc=\"$?\"\nif [ \"$rc\" != 0 ]; then\n echo ERROR - could not delete link test1 - error \"$rc\"\nfi\nip link delete test2 || rc=\"$?\"\nif [ \"$rc\" != 0 ]; then\n echo ERROR - could not delete link test2 - error \"$rc\"\nfi\nip link delete testbr || rc=\"$?\"\nif [ \"$rc\" != 0 ]; then\n echo ERROR - could not delete link testbr - error \"$rc\"\nfi\n", "delta": "0:00:00.066428", "end": "2025-03-12 15:12:04.393465", "rc": 0, "start": "2025-03-12 15:12:04.327037" } STDERR: + exec + rc=0 + ip link delete test1 + '[' 0 '!=' 0 ']' + ip link delete test2 + '[' 0 '!=' 0 ']' + ip link delete testbr + '[' 0 '!=' 0 ']' TASK [Stop dnsmasq/radvd services] ********************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:23 Wednesday 12 March 2025 15:12:04 -0400 (0:00:00.873) 0:01:27.973 ******* ok: [managed-node5] => { "changed": false, "cmd": "set -uxo pipefail\nexec 1>&2\npkill -F /run/dhcp_testbr.pid\nrm -rf /run/dhcp_testbr.pid\nrm -rf /run/dhcp_testbr.lease\nif grep 'release 6' /etc/redhat-release; then\n # Stop radvd server\n service radvd stop\n iptables -D INPUT -i testbr -p udp --dport 67:68 --sport 67:68 -j ACCEPT\nfi\nif systemctl is-active firewalld; then\n for service in dhcp dhcpv6 dhcpv6-client; do\n if firewall-cmd --query-service=\"$service\"; then\n firewall-cmd --remove-service \"$service\"\n fi\n done\nfi\n", "delta": "0:00:00.031874", "end": "2025-03-12 15:12:05.234175", "rc": 0, "start": "2025-03-12 15:12:05.202301" } STDERR: + exec + pkill -F /run/dhcp_testbr.pid + rm -rf /run/dhcp_testbr.pid + rm -rf /run/dhcp_testbr.lease + grep 'release 6' /etc/redhat-release + systemctl is-active firewalld inactive TASK [Reset bond options to assert] ******************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:59 Wednesday 12 March 2025 15:12:05 -0400 (0:00:00.810) 0:01:28.783 ******* ok: [managed-node5] => { "ansible_facts": { "bond_options_to_assert": [ { "key": "mode", "value": "active-backup" }, { "key": "arp_interval", "value": "60" }, { "key": "arp_ip_target", "value": "192.0.2.128" }, { "key": "arp_validate", "value": "none" }, { "key": "primary", "value": "test1" } ] }, "changed": false } TASK [Include the task 'run_test.yml'] ***************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:72 Wednesday 12 March 2025 15:12:05 -0400 (0:00:00.238) 0:01:29.022 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed-node5 TASK [TEST: Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 12 March 2025 15:12:06 -0400 (0:00:00.676) 0:01:29.698 ******* ok: [managed-node5] => {} MSG: ########## Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device. ########## TASK [Show item] *************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 12 March 2025 15:12:06 -0400 (0:00:00.245) 0:01:29.944 ******* ok: [managed-node5] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device." } ok: [managed-node5] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_test_interfaces_with_dhcp.yml", "tasks/assert_dhcp_device_present.yml" ] } ok: [managed-node5] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bond_profile_reconfigure.yml" ] } ok: [managed-node5] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_bond_options.yml" ] } ok: [managed-node5] => (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-node5] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed-node5] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_bond_profile+device.yml", "tasks/remove_test_interfaces_with_dhcp.yml", "tasks/check_network_dns.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 12 March 2025 15:12:07 -0400 (0:00:00.428) 0:01:30.373 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed-node5 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 12 March 2025 15:12:07 -0400 (0:00:00.395) 0:01:30.768 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed-node5 TASK [Gather current interface info] ******************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 12 March 2025 15:12:07 -0400 (0:00:00.326) 0:01:31.095 ******* ok: [managed-node5] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003695", "end": "2025-03-12 15:12:08.266833", "rc": 0, "start": "2025-03-12 15:12:08.263138" } STDOUT: bonding_masters eth0 eth1 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 12 March 2025 15:12:08 -0400 (0:00:00.758) 0:01:31.854 ******* ok: [managed-node5] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "eth1", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 Wednesday 12 March 2025 15:12:08 -0400 (0:00:00.305) 0:01:32.159 ******* ok: [managed-node5] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'eth1', 'lo'] TASK [Setup] ******************************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:24 Wednesday 12 March 2025 15:12:09 -0400 (0:00:00.275) 0:01:32.435 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml for managed-node5 => (item=tasks/create_test_interfaces_with_dhcp.yml) statically imported: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml statically imported: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_dhcp_device_present.yml for managed-node5 => (item=tasks/assert_dhcp_device_present.yml) TASK [Install dnsmasq] ********************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 Wednesday 12 March 2025 15:12:09 -0400 (0:00:00.429) 0:01:32.864 ******* ok: [managed-node5] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:17 Wednesday 12 March 2025 15:12:11 -0400 (0:00:01.786) 0:01:34.651 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution_major_version is version('6', '<=')", "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:26 Wednesday 12 March 2025 15:12:11 -0400 (0:00:00.097) 0:01:34.748 ******* ok: [managed-node5] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:35 Wednesday 12 March 2025 15:12:13 -0400 (0:00:01.923) 0:01:36.672 ******* ok: [managed-node5] => { "changed": false, "cmd": "set -euxo pipefail\nexec 1>&2\nip link add test1 type veth peer name test1p\nip link add test2 type veth peer name test2p\nif [ -n \"$(pgrep NetworkManager)\" ];then\n nmcli d set test1 managed true\n nmcli d set test2 managed true\n # NetworkManager should not manage DHCP server ports\n nmcli d set test1p managed false\n nmcli d set test2p managed false\nfi\nip link set test1p up\nip link set test2p up\n\n# Create the 'testbr' - providing both 10.x ipv4 and 2620:52:0 ipv6 dhcp\nip link add name testbr type bridge forward_delay 0\nif [ -n \"$(pgrep NetworkManager)\" ];then\n # NetworkManager should not manage DHCP server ports\n nmcli d set testbr managed false\nfi\nip link set testbr up\ntimer=0\n# The while loop following is a workaround for the NM bug, which can be\n# tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2079642\nwhile ! ip addr show testbr | grep -q 'inet [1-9]'\ndo\n let \"timer+=1\"\n if [ $timer -eq 30 ]; then\n echo ERROR - could not add testbr\n ip addr\n exit 1\n fi\n sleep 1\n rc=0\n ip addr add 192.0.2.1/24 dev testbr || rc=\"$?\"\n if [ \"$rc\" != 0 ]; then\n echo NOTICE - could not add testbr - error code \"$rc\"\n continue\n fi\n ip -6 addr add 2001:DB8::1/32 dev testbr || rc=\"$?\"\n if [ \"$rc\" != 0 ]; then\n echo NOTICE - could not add testbr - error code \"$rc\"\n continue\n fi\ndone\n\nif grep 'release 6' /etc/redhat-release; then\n # We need bridge-utils and radvd only in rhel6\n if ! rpm -q --quiet radvd; then yum -y install radvd; fi\n if ! rpm -q --quiet bridge-utils; then yum -y install bridge-utils; fi\n\n # We need to add iptables rule to allow dhcp request\n iptables -I INPUT -i testbr -p udp --dport 67:68 --sport 67:68 -j ACCEPT\n\n # Add test1, test2 peers into the testbr\n brctl addif testbr test1p\n brctl addif testbr test2p\n\n # in RHEL6 /run is not present\n mkdir -p /run\n\n # and dnsmasq does not support ipv6\n dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --interface=testbr --bind-interfaces\n\n # start radvd for ipv6\n echo 'interface testbr {' > /etc/radvd.conf\n echo ' AdvSendAdvert on;' >> /etc/radvd.conf\n echo ' prefix 2001:DB8::/64 { ' >> /etc/radvd.conf\n echo ' AdvOnLink on; }; ' >> /etc/radvd.conf\n echo ' }; ' >> /etc/radvd.conf\n\n # enable ipv6 forwarding\n sysctl -w net.ipv6.conf.all.forwarding=1\n service radvd restart\n\nelse\n ip link set test1p master testbr\n ip link set test2p master testbr\n # Run joint DHCP4/DHCP6 server with RA enabled in veth namespace\n if systemctl is-active firewalld; then\n for service in dhcp dhcpv6 dhcpv6-client; do\n if ! firewall-cmd --query-service=\"$service\"; then\n firewall-cmd --add-service \"$service\"\n fi\n done\n fi\n dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --dhcp-range=2001:DB8::10,2001:DB8::1FF,slaac,64,240 --enable-ra --interface=testbr --bind-interfaces\nfi\n", "delta": "0:00:01.253341", "end": "2025-03-12 15:12:15.239930", "rc": 0, "start": "2025-03-12 15:12:13.986589" } STDERR: + exec + ip link add test1 type veth peer name test1p + ip link add test2 type veth peer name test2p ++ pgrep NetworkManager + '[' -n 690 ']' + nmcli d set test1 managed true + nmcli d set test2 managed true + nmcli d set test1p managed false + nmcli d set test2p managed false + ip link set test1p up + ip link set test2p up + ip link add name testbr type bridge forward_delay 0 ++ pgrep NetworkManager + '[' -n 690 ']' + nmcli d set testbr managed false + ip link set testbr up + timer=0 + ip addr show testbr + grep -q 'inet [1-9]' + let timer+=1 + '[' 1 -eq 30 ']' + sleep 1 + rc=0 + ip addr add 192.0.2.1/24 dev testbr + '[' 0 '!=' 0 ']' + ip -6 addr add 2001:DB8::1/32 dev testbr + '[' 0 '!=' 0 ']' + ip addr show testbr + grep -q 'inet [1-9]' + grep 'release 6' /etc/redhat-release + ip link set test1p master testbr + ip link set test2p master testbr + systemctl is-active firewalld inactive + dnsmasq --pid-file=/run/dhcp_testbr.pid --dhcp-leasefile=/run/dhcp_testbr.lease --dhcp-range=192.0.2.1,192.0.2.254,240 --dhcp-range=2001:DB8::10,2001:DB8::1FF,slaac,64,240 --enable-ra --interface=testbr --bind-interfaces TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 12 March 2025 15:12:15 -0400 (0:00:02.342) 0:01:39.015 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed-node5 TASK [Get stat for interface test1] ******************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 12 March 2025 15:12:16 -0400 (0:00:00.524) 0:01:39.539 ******* ok: [managed-node5] => { "changed": false, "stat": { "atime": 1741806733.9915807, "block_size": 4096, "blocks": 0, "ctime": 1741806733.9915807, "dev": 23, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 35710, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test1", "lnk_target": "../../devices/virtual/net/test1", "mode": "0777", "mtime": 1741806733.9915807, "nlink": 1, "path": "/sys/class/net/test1", "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 - 'test1'] ************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 12 March 2025 15:12:17 -0400 (0:00:00.821) 0:01:40.360 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 12 March 2025 15:12:17 -0400 (0:00:00.265) 0:01:40.626 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed-node5 TASK [Get stat for interface test2] ******************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 12 March 2025 15:12:17 -0400 (0:00:00.424) 0:01:41.050 ******* ok: [managed-node5] => { "changed": false, "stat": { "atime": 1741806734.0004382, "block_size": 4096, "blocks": 0, "ctime": 1741806734.0004382, "dev": 23, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 36116, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test2", "lnk_target": "../../devices/virtual/net/test2", "mode": "0777", "mtime": 1741806734.0004382, "nlink": 1, "path": "/sys/class/net/test2", "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 - 'test2'] ************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 12 March 2025 15:12:18 -0400 (0:00:00.765) 0:01:41.816 ******* ok: [managed-node5] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:30 Wednesday 12 March 2025 15:12:18 -0400 (0:00:00.235) 0:01:42.052 ******* redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile_reconfigure.yml for managed-node5 => (item=tasks/create_bond_profile_reconfigure.yml) TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 12 March 2025 15:12:19 -0400 (0:00:00.570) 0:01:42.622 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed-node5 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 12 March 2025 15:12:19 -0400 (0:00:00.349) 0:01:42.972 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 12 March 2025 15:12:20 -0400 (0:00:00.385) 0:01:43.362 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 12 March 2025 15:12:20 -0400 (0:00:00.267) 0:01:43.629 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 12 March 2025 15:12:20 -0400 (0:00:00.222) 0:01:43.852 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 12 March 2025 15:12:24 -0400 (0:00:03.609) 0:01:47.462 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 12 March 2025 15:12:26 -0400 (0:00:01.850) 0:01:49.313 ******* ok: [managed-node5] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 12 March 2025 15:12:26 -0400 (0:00:00.185) 0:01:49.499 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 12 March 2025 15:12:26 -0400 (0:00:00.098) 0:01:49.597 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 12 March 2025 15:12:26 -0400 (0:00:00.110) 0:01:49.707 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in __network_rh_distros", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 12 March 2025 15:12:26 -0400 (0:00:00.258) 0:01:49.966 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 12 March 2025 15:12:27 -0400 (0:00:00.436) 0:01:50.402 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 12 March 2025 15:12:27 -0400 (0:00:00.219) 0:01:50.622 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 12 March 2025 15:12:27 -0400 (0:00:00.169) 0:01:50.791 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 12 March 2025 15:12:28 -0400 (0:00:00.578) 0:01:51.370 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 12 March 2025 15:12:28 -0400 (0:00:00.190) 0:01:51.560 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 12 March 2025 15:12:28 -0400 (0:00:00.183) 0:01:51.744 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 12 March 2025 15:12:28 -0400 (0:00:00.216) 0:01:51.960 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 12 March 2025 15:12:30 -0400 (0:00:01.465) 0:01:53.425 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 12 March 2025 15:12:30 -0400 (0:00:00.270) 0:01:53.696 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 12 March 2025 15:12:30 -0400 (0:00:00.141) 0:01:53.837 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 12 March 2025 15:12:30 -0400 (0:00:00.107) 0:01:53.945 ******* changed: [managed-node5] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "bond": { "arp_interval": 60, "arp_ip_target": "192.0.2.128", "arp_validate": "none", "mode": "active-backup", "primary": "test1" }, "interface_name": "nm-bond", "ip": { "route_metric4": 65535 }, "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 12 March 2025 15:12:31 -0400 (0:00:01.223) 0:01:55.168 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 12 March 2025 15:12:32 -0400 (0:00:00.151) 0:01:55.320 ******* ok: [managed-node5] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 12 March 2025 15:12:32 -0400 (0:00:00.109) 0:01:55.429 ******* ok: [managed-node5] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "bond": { "arp_interval": 60, "arp_ip_target": "192.0.2.128", "arp_validate": "none", "mode": "active-backup", "primary": "test1" }, "interface_name": "nm-bond", "ip": { "route_metric4": 65535 }, "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 12 March 2025 15:12:32 -0400 (0:00:00.144) 0:01:55.574 ******* skipping: [managed-node5] => { "false_condition": "network_state != {}" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 12 March 2025 15:12:32 -0400 (0:00:00.079) 0:01:55.654 ******* ok: [managed-node5] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile_reconfigure.yml:33 Wednesday 12 March 2025 15:12:32 -0400 (0:00:00.551) 0:01:56.205 ******* ok: [managed-node5] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "bond": { "arp_interval": 60, "arp_ip_target": "192.0.2.128", "arp_validate": "none", "mode": "active-backup", "primary": "test1" }, "interface_name": "nm-bond", "ip": { "route_metric4": 65535 }, "name": "bond0", "state": "up", "type": "bond" }, { "controller": "bond0", "interface_name": "test1", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "controller": "bond0", "interface_name": "test2", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 72315bdd-e61b-47f7-8c55-3b3e0205ad80 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f2a89a19-7810-4a2d-9a0b-a934873fbeb1 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9f5c842d-51c8-435f-a2f3-d033b2cd4953 (not-active)" ] } } TASK [Asserts] ***************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:36 Wednesday 12 March 2025 15:12:33 -0400 (0:00:00.133) 0:01:56.339 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml for managed-node5 => (item=tasks/assert_bond_options.yml) TASK [** TEST check bond settings] ********************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:3 Wednesday 12 March 2025 15:12:33 -0400 (0:00:00.351) 0:01:56.690 ******* ok: [managed-node5] => (item={'key': 'mode', 'value': 'active-backup'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "mode", "value": "active-backup" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/mode" ], "delta": "0:00:00.003779", "end": "2025-03-12 15:12:33.997244", "rc": 0, "start": "2025-03-12 15:12:33.993465" } STDOUT: active-backup 1 ok: [managed-node5] => (item={'key': 'arp_interval', 'value': '60'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "arp_interval", "value": "60" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_interval" ], "delta": "0:00:00.003225", "end": "2025-03-12 15:12:34.419519", "rc": 0, "start": "2025-03-12 15:12:34.416294" } STDOUT: 60 ok: [managed-node5] => (item={'key': 'arp_ip_target', 'value': '192.0.2.128'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "arp_ip_target", "value": "192.0.2.128" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_ip_target" ], "delta": "0:00:00.003165", "end": "2025-03-12 15:12:35.020500", "rc": 0, "start": "2025-03-12 15:12:35.017335" } STDOUT: 192.0.2.128 ok: [managed-node5] => (item={'key': 'arp_validate', 'value': 'none'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "arp_validate", "value": "none" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_validate" ], "delta": "0:00:00.003128", "end": "2025-03-12 15:12:35.557455", "rc": 0, "start": "2025-03-12 15:12:35.554327" } STDOUT: none 0 ok: [managed-node5] => (item={'key': 'primary', 'value': 'test1'}) => { "ansible_loop_var": "bond_opt", "attempts": 1, "bond_opt": { "key": "primary", "value": "test1" }, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/primary" ], "delta": "0:00:00.003253", "end": "2025-03-12 15:12:36.119999", "rc": 0, "start": "2025-03-12 15:12:36.116746" } STDOUT: test1 TASK [Include the task 'assert_IPv4_present.yml'] ****************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:11 Wednesday 12 March 2025 15:12:36 -0400 (0:00:02.955) 0:01:59.646 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv4_present.yml for managed-node5 TASK [** TEST check IPv4] ****************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv4_present.yml:3 Wednesday 12 March 2025 15:12:36 -0400 (0:00:00.505) 0:02:00.151 ******* ok: [managed-node5] => { "attempts": 1, "changed": false, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004166", "end": "2025-03-12 15:12:37.553090", "rc": 0, "start": "2025-03-12 15:12:37.548924" } STDOUT: 15: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.224/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 237sec preferred_lft 237sec TASK [Include the task 'assert_IPv6_present.yml'] ****************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:16 Wednesday 12 March 2025 15:12:37 -0400 (0:00:00.888) 0:02:01.040 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv6_present.yml for managed-node5 TASK [** TEST check IPv6] ****************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv6_present.yml:3 Wednesday 12 March 2025 15:12:38 -0400 (0:00:00.380) 0:02:01.420 ******* ok: [managed-node5] => { "attempts": 1, "changed": false, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.003930", "end": "2025-03-12 15:12:38.842684", "rc": 0, "start": "2025-03-12 15:12:38.838754" } STDOUT: 15: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::cf/128 scope global dynamic noprefixroute valid_lft 237sec preferred_lft 237sec inet6 2001:db8::f891:a2ff:fe90:2db3/64 scope global dynamic noprefixroute valid_lft 1797sec preferred_lft 1797sec inet6 fe80::f891:a2ff:fe90:2db3/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [Conditional asserts] ***************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:42 Wednesday 12 March 2025 15:12:39 -0400 (0:00:00.967) 0:02:02.387 ******* skipping: [managed-node5] => { "changed": false, "skipped_reason": "No items in the list" } TASK [Success in test 'Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.'] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:47 Wednesday 12 March 2025 15:12:39 -0400 (0:00:00.223) 0:02:02.611 ******* ok: [managed-node5] => {} MSG: +++++ Success in test 'Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.' +++++ TASK [Cleanup] ***************************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 12 March 2025 15:12:39 -0400 (0:00:00.185) 0:02:02.796 ******* redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_bond_profile+device.yml for managed-node5 => (item=tasks/cleanup_bond_profile+device.yml) included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml for managed-node5 => (item=tasks/remove_test_interfaces_with_dhcp.yml) included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml for managed-node5 => (item=tasks/check_network_dns.yml) TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 12 March 2025 15:12:40 -0400 (0:00:00.861) 0:02:03.657 ******* included: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed-node5 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 12 March 2025 15:12:40 -0400 (0:00:00.467) 0:02:04.125 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 12 March 2025 15:12:41 -0400 (0:00:00.436) 0:02:04.562 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 12 March 2025 15:12:41 -0400 (0:00:00.168) 0:02:04.730 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 12 March 2025 15:12:41 -0400 (0:00:00.090) 0:02:04.820 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 12 March 2025 15:12:44 -0400 (0:00:02.832) 0:02:07.652 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 12 March 2025 15:12:46 -0400 (0:00:01.788) 0:02:09.441 ******* ok: [managed-node5] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 12 March 2025 15:12:46 -0400 (0:00:00.244) 0:02:09.686 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 12 March 2025 15:12:46 -0400 (0:00:00.178) 0:02:09.864 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 12 March 2025 15:12:46 -0400 (0:00:00.121) 0:02:09.986 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution in __network_rh_distros", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 12 March 2025 15:12:46 -0400 (0:00:00.280) 0:02:10.267 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } redirecting (type: action) ansible.builtin.yum to ansible.builtin.dnf TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 12 March 2025 15:12:47 -0400 (0:00:00.199) 0:02:10.466 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 12 March 2025 15:12:47 -0400 (0:00:00.267) 0:02:10.734 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 12 March 2025 15:12:47 -0400 (0:00:00.230) 0:02:10.965 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 12 March 2025 15:12:48 -0400 (0:00:00.520) 0:02:11.485 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 12 March 2025 15:12:48 -0400 (0:00:00.130) 0:02:11.616 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 12 March 2025 15:12:48 -0400 (0:00:00.124) 0:02:11.740 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 12 March 2025 15:12:48 -0400 (0:00:00.368) 0:02:12.109 ******* ok: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 12 March 2025 15:12:50 -0400 (0:00:01.353) 0:02:13.462 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 12 March 2025 15:12:50 -0400 (0:00:00.247) 0:02:13.709 ******* skipping: [managed-node5] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 12 March 2025 15:12:50 -0400 (0:00:00.156) 0:02:13.866 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 12 March 2025 15:12:50 -0400 (0:00:00.327) 0:02:14.194 ******* changed: [managed-node5] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 12 March 2025 15:12:52 -0400 (0:00:01.612) 0:02:15.807 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 12 March 2025 15:12:52 -0400 (0:00:00.231) 0:02:16.038 ******* ok: [managed-node5] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 12 March 2025 15:12:53 -0400 (0:00:00.284) 0:02:16.323 ******* ok: [managed-node5] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 12 March 2025 15:12:53 -0400 (0:00:00.264) 0:02:16.587 ******* skipping: [managed-node5] => { "false_condition": "network_state != {}" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 12 March 2025 15:12:53 -0400 (0:00:00.182) 0:02:16.770 ******* ok: [managed-node5] => { "changed": false, "ping": "pong" } TASK [Delete the device 'nm-bond'] ********************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_bond_profile+device.yml:22 Wednesday 12 March 2025 15:12:54 -0400 (0:00:00.827) 0:02:17.597 ******* ok: [managed-node5] => { "changed": false, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.007607", "end": "2025-03-12 15:12:54.956672", "failed_when_result": false, "rc": 1, "start": "2025-03-12 15:12:54.949065" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code TASK [Remove test interfaces] ************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:3 Wednesday 12 March 2025 15:12:55 -0400 (0:00:00.950) 0:02:18.548 ******* ok: [managed-node5] => { "changed": false, "cmd": "set -euxo pipefail\nexec 1>&2\nrc=0\nip link delete test1 || rc=\"$?\"\nif [ \"$rc\" != 0 ]; then\n echo ERROR - could not delete link test1 - error \"$rc\"\nfi\nip link delete test2 || rc=\"$?\"\nif [ \"$rc\" != 0 ]; then\n echo ERROR - could not delete link test2 - error \"$rc\"\nfi\nip link delete testbr || rc=\"$?\"\nif [ \"$rc\" != 0 ]; then\n echo ERROR - could not delete link testbr - error \"$rc\"\nfi\n", "delta": "0:00:00.045367", "end": "2025-03-12 15:12:55.858380", "rc": 0, "start": "2025-03-12 15:12:55.813013" } STDERR: + exec + rc=0 + ip link delete test1 + '[' 0 '!=' 0 ']' + ip link delete test2 + '[' 0 '!=' 0 ']' + ip link delete testbr + '[' 0 '!=' 0 ']' TASK [Stop dnsmasq/radvd services] ********************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:23 Wednesday 12 March 2025 15:12:56 -0400 (0:00:00.865) 0:02:19.414 ******* ok: [managed-node5] => { "changed": false, "cmd": "set -uxo pipefail\nexec 1>&2\npkill -F /run/dhcp_testbr.pid\nrm -rf /run/dhcp_testbr.pid\nrm -rf /run/dhcp_testbr.lease\nif grep 'release 6' /etc/redhat-release; then\n # Stop radvd server\n service radvd stop\n iptables -D INPUT -i testbr -p udp --dport 67:68 --sport 67:68 -j ACCEPT\nfi\nif systemctl is-active firewalld; then\n for service in dhcp dhcpv6 dhcpv6-client; do\n if firewall-cmd --query-service=\"$service\"; then\n firewall-cmd --remove-service \"$service\"\n fi\n done\nfi\n", "delta": "0:00:00.029854", "end": "2025-03-12 15:12:56.648277", "rc": 0, "start": "2025-03-12 15:12:56.618423" } STDERR: + exec + pkill -F /run/dhcp_testbr.pid + rm -rf /run/dhcp_testbr.pid + rm -rf /run/dhcp_testbr.lease + grep 'release 6' /etc/redhat-release + systemctl is-active firewalld inactive TASK [Check routes and DNS] **************************************************** task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml:6 Wednesday 12 March 2025 15:12:56 -0400 (0:00:00.741) 0:02:20.157 ******* ok: [managed-node5] => { "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.009260", "end": "2025-03-12 15:12:57.361461", "rc": 0, "start": "2025-03-12 15:12:57.352201" } 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:8e:67:51:60:c5 brd ff:ff:ff:ff:ff:ff altname enX0 inet 10.31.42.128/22 brd 10.31.43.255 scope global dynamic noprefixroute eth0 valid_lft 3185sec preferred_lft 3185sec inet6 fe80::c8e:67ff:fe51:60c5/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: eth1: mtu 9001 qdisc mq state UP group default qlen 1000 link/ether 0e:94:ea:75:a9:d1 brd ff:ff:ff:ff:ff:ff altname enX1 inet 10.31.43.252/22 brd 10.31.43.255 scope global dynamic noprefixroute eth1 valid_lft 3185sec preferred_lft 3185sec inet6 fe80::c94:eaff:fe75:a9d1/64 scope link noprefixroute valid_lft forever preferred_lft forever IP ROUTE default via 10.31.40.1 dev eth0 proto dhcp src 10.31.42.128 metric 100 default via 10.31.40.1 dev eth1 proto dhcp src 10.31.43.252 metric 101 10.31.40.0/22 dev eth0 proto kernel scope link src 10.31.42.128 metric 100 10.31.40.0/22 dev eth1 proto kernel scope link src 10.31.43.252 metric 101 IP -6 ROUTE fe80::/64 dev eth0 proto kernel metric 1024 pref medium fe80::/64 dev eth1 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] ************************************* task path: /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml:24 Wednesday 12 March 2025 15:12:57 -0400 (0:00:00.708) 0:02:20.865 ******* skipping: [managed-node5] => { "changed": false, "false_condition": "ansible_facts[\"distribution\"] == \"CentOS\"", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node5 : ok=147 changed=5 unreachable=0 failed=0 skipped=98 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Wednesday 12 March 2025 15:12:57 -0400 (0:00:00.068) 0:02:20.934 ******* =============================================================================== Install dnsmasq -------------------------------------------------------- 14.99s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 ** TEST check bond settings -------------------------------------------- 10.97s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:3 fedora.linux_system_roles.network : Check which services are running ---- 3.61s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which packages are installed --- 3.46s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which services are running ---- 3.23s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which services are running ---- 3.19s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 ** TEST check bond settings --------------------------------------------- 2.96s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml:3 fedora.linux_system_roles.network : Check which services are running ---- 2.83s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Enable and start NetworkManager ----- 2.65s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 fedora.linux_system_roles.network : Configure networking connection profiles --- 2.52s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Create test interfaces -------------------------------------------------- 2.34s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:35 Create test interfaces -------------------------------------------------- 1.93s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:35 Install pgrep, sysctl --------------------------------------------------- 1.92s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:26 Install pgrep, sysctl --------------------------------------------------- 1.89s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:26 fedora.linux_system_roles.network : Check which packages are installed --- 1.85s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which packages are installed --- 1.79s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Install dnsmasq --------------------------------------------------------- 1.79s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 fedora.linux_system_roles.network : Configure networking connection profiles --- 1.72s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 fedora.linux_system_roles.network : Check which packages are installed --- 1.68s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Configure networking connection profiles --- 1.61s /tmp/collections-5ok/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159