Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles PLAY [Run playbook 'playbooks/tests_bond_options.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* Monday 22 July 2024 12:17:51 -0400 (0:00:00.024) 0:00:00.024 *********** ok: [managed_node1] TASK [Include the task 'el_repo_setup.yml'] ************************************ Monday 22 July 2024 12:17:52 -0400 (0:00:00.943) 0:00:00.967 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml for managed_node1 TASK [Gather the minimum subset of ansible_facts required by the network role test] *** Monday 22 July 2024 12:17:52 -0400 (0:00:00.089) 0:00:01.057 *********** ok: [managed_node1] TASK [Check if system is ostree] *********************************************** Monday 22 July 2024 12:17:53 -0400 (0:00:00.424) 0:00:01.481 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** Monday 22 July 2024 12:17:53 -0400 (0:00:00.435) 0:00:01.917 *********** ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** Monday 22 July 2024 12:17:53 -0400 (0:00:00.044) 0:00:01.962 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** Monday 22 July 2024 12:17:53 -0400 (0:00:00.042) 0:00:02.004 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 7] *********************************************************** Monday 22 July 2024 12:17:53 -0400 (0:00:00.079) 0:00:02.084 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** Monday 22 July 2024 12:17:54 -0400 (0:00:00.387) 0:00:02.471 *********** ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "yum-utils-1.1.31-54.el7_8.noarch providing yum-utils is already installed" ] } TASK [Enable EPEL 7] *********************************************************** Monday 22 July 2024 12:17:54 -0400 (0:00:00.743) 0:00:03.214 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.168571", "end": "2024-07-22 12:17:55.210409", "rc": 0, "start": "2024-07-22 12:17:55.041838" } STDOUT: Loaded plugins: fastestmirror ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7 baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7/epel check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = True enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7/epel/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos minrate = 0 mirrorlist = mirrorlist_expire = 86400 name = Extra Packages for Enterprise Linux 7 - x86_64 old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7/epel pkgdir = /var/cache/yum/x86_64/7/epel/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = sslclientcert = sslclientkey = sslverify = True throttle = 0 timeout = 30.0 ui_id = epel/x86_64 ui_repoid_vars = releasever, basearch username = TASK [Enable EPEL 8] *********************************************************** Monday 22 July 2024 12:17:55 -0400 (0:00:00.469) 0:00:03.684 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Monday 22 July 2024 12:17:55 -0400 (0:00:00.027) 0:00:03.711 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Monday 22 July 2024 12:17:55 -0400 (0:00:00.023) 0:00:03.735 *********** ok: [managed_node1] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [Play for testing bond options] ******************************************* TASK [Gathering Facts] ********************************************************* Monday 22 July 2024 12:17:55 -0400 (0:00:00.025) 0:00:03.760 *********** ok: [managed_node1] TASK [Show playbook name] ****************************************************** Monday 22 July 2024 12:17:55 -0400 (0:00:00.602) 0:00:04.362 *********** ok: [managed_node1] => {} MSG: this is: playbooks/tests_bond_options.yml TASK [Include the task 'run_test.yml'] ***************************************** Monday 22 July 2024 12:17:55 -0400 (0:00:00.025) 0:00:04.388 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 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.] *** Monday 22 July 2024 12:17:56 -0400 (0:00:00.040) 0:00:04.428 *********** ok: [managed_node1] => {} 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] *************************************************************** Monday 22 July 2024 12:17:56 -0400 (0:00:00.029) 0:00:04.457 *********** ok: [managed_node1] => (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_node1] => (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_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bond_profile.yml" ] } ok: [managed_node1] => (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_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_bond_profile+device.yml", "tasks/remove_test_interfaces_with_dhcp.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:17:56 -0400 (0:00:00.081) 0:00:04.539 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:17:56 -0400 (0:00:00.037) 0:00:04.576 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:17:56 -0400 (0:00:00.035) 0:00:04.611 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003262", "end": "2024-07-22 12:17:56.433461", "rc": 0, "start": "2024-07-22 12:17:56.430199" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:17:56 -0400 (0:00:00.296) 0:00:04.908 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:17:56 -0400 (0:00:00.026) 0:00:04.935 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:17:56 -0400 (0:00:00.030) 0:00:04.965 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_dhcp_device_present.yml for managed_node1 TASK [Install dnsmasq] ********************************************************* Monday 22 July 2024 12:17:56 -0400 (0:00:00.069) 0:00:05.034 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [ "dnsmasq-2.76-17.el7_9.3.x86_64 providing dnsmasq is already installed" ] } TASK [Install pgrep, sysctl] *************************************************** Monday 22 July 2024 12:17:57 -0400 (0:00:00.576) 0:00:05.611 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Monday 22 July 2024 12:17:57 -0400 (0:00:00.026) 0:00:05.637 *********** ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "procps-ng-3.3.10-28.el7.x86_64 providing procps-ng is already installed" ] } TASK [Create test interfaces] ************************************************** Monday 22 July 2024 12:17:57 -0400 (0:00:00.587) 0:00:06.225 *********** ok: [managed_node1] => { "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 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.206916", "end": "2024-07-22 12:17:59.245405", "rc": 0, "start": "2024-07-22 12:17:58.038489" } STDERR: + exec + ip link add test1 type veth peer name test1p + ip link add test2 type veth peer name test2p ++ pgrep NetworkManager + '[' -n 24289 ']' + 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 24289 ']' + 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 + 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'] ******************************* Monday 22 July 2024 12:17:59 -0400 (0:00:01.496) 0:00:07.722 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface test1] ******************************************** Monday 22 July 2024 12:17:59 -0400 (0:00:00.037) 0:00:07.759 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665078.0509048, "block_size": 4096, "blocks": 0, "ctime": 1721665078.0509048, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 18665, "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": 1721665078.0509048, "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'] ************************** Monday 22 July 2024 12:17:59 -0400 (0:00:00.303) 0:00:08.062 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:17:59 -0400 (0:00:00.034) 0:00:08.097 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface test2] ******************************************** Monday 22 July 2024 12:17:59 -0400 (0:00:00.036) 0:00:08.133 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665078.0649047, "block_size": 4096, "blocks": 0, "ctime": 1721665078.0639048, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 19091, "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": 1721665078.0639048, "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'] ************************** Monday 22 July 2024 12:18:00 -0400 (0:00:00.302) 0:00:08.436 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** Monday 22 July 2024 12:18:00 -0400 (0:00:00.032) 0:00:08.468 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:18:00 -0400 (0:00:00.053) 0:00:08.521 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:18:00 -0400 (0:00:00.144) 0:00:08.666 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:18:00 -0400 (0:00:00.055) 0:00:08.722 *********** skipping: [managed_node1] => { "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] *********** Monday 22 July 2024 12:18:00 -0400 (0:00:00.085) 0:00:08.807 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:18:00 -0400 (0:00:00.025) 0:00:08.833 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:18:00 -0400 (0:00:00.026) 0:00:08.860 *********** ok: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:01 -0400 (0:00:00.968) 0:00:09.828 *********** ok: [managed_node1] => { "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] ************** Monday 22 July 2024 12:18:02 -0400 (0:00:01.437) 0:00:11.266 *********** ok: [managed_node1] => {} 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] *** Monday 22 July 2024 12:18:02 -0400 (0:00:00.070) 0:00:11.336 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:02 -0400 (0:00:00.068) 0:00:11.405 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:03 -0400 (0:00:00.067) 0:00:11.472 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } 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] *** Monday 22 July 2024 12:18:03 -0400 (0:00:00.067) 0:00:11.539 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:03 -0400 (0:00:00.119) 0:00:11.659 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:18:03 -0400 (0:00:00.076) 0:00:11.735 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:18:03 -0400 (0:00:00.119) 0:00:11.855 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:18:03 -0400 (0:00:00.067) 0:00:11.923 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:18:03 -0400 (0:00:00.068) 0:00:11.991 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:18:03 -0400 (0:00:00.076) 0:00:12.068 *********** ok: [managed_node1] => { "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] ***** Monday 22 July 2024 12:18:04 -0400 (0:00:00.747) 0:00:12.816 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:18:04 -0400 (0:00:00.075) 0:00:12.891 *********** skipping: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:04 -0400 (0:00:00.066) 0:00:12.958 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:18:04 -0400 (0:00:00.068) 0:00:13.026 *********** changed: [managed_node1] => { "_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, bb420511-ebbd-46e3-8f16-013ffae2699f [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:18:05 -0400 (0:00:01.056) 0:00:14.083 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:18:05 -0400 (0:00:00.068) 0:00:14.151 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:18:05 -0400 (0:00:00.069) 0:00:14.221 *********** ok: [managed_node1] => { "__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, bb420511-ebbd-46e3-8f16-013ffae2699f\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:18:05 -0400 (0:00:00.123) 0:00:14.345 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:18:05 -0400 (0:00:00.069) 0:00:14.415 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:18:06 -0400 (0:00:00.424) 0:00:14.839 *********** ok: [managed_node1] => { "__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, bb420511-ebbd-46e3-8f16-013ffae2699f\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, bb420511-ebbd-46e3-8f16-013ffae2699f (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 0022fa72-813c-4b38-8f81-300f665bac32 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 7bd399b5-7b9e-4585-ad3b-0f86d610d518 (not-active)" ] } } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:18:06 -0400 (0:00:00.200) 0:00:15.040 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_controller_device_present.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_port_profile_present.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml for managed_node1 TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:18:06 -0400 (0:00:00.163) 0:00:15.203 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface nm-bond] ****************************************** Monday 22 July 2024 12:18:06 -0400 (0:00:00.116) 0:00:15.320 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665085.3779814, "block_size": 4096, "blocks": 0, "ctime": 1721665085.365981, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 19371, "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": 1721665085.365981, "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'] ************************ Monday 22 July 2024 12:18:07 -0400 (0:00:00.350) 0:00:15.670 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** Monday 22 July 2024 12:18:07 -0400 (0:00:00.073) 0:00:15.743 *********** [WARNING]: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed_node1 TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:18:07 -0400 (0:00:00.144) 0:00:15.888 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:18:07 -0400 (0:00:00.125) 0:00:16.013 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:18:07 -0400 (0:00:00.068) 0:00:16.082 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665085.3649812, "block_size": 4096, "blocks": 8, "ctime": 1721665085.362981, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 22497, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721665085.362981, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 638, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 12:18:08 -0400 (0:00:00.415) 0:00:16.497 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:18:08 -0400 (0:00:00.073) 0:00:16.571 *********** ok: [managed_node1] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.030478", "end": "2024-07-22 12:18:08.446795", "rc": 0, "start": "2024-07-22 12:18:08.416317" } STDOUT: bond0 /etc/sysconfig/network-scripts/ifcfg-bond0 bond0.0 /etc/sysconfig/network-scripts/ifcfg-bond0.0 bond0.1 /etc/sysconfig/network-scripts/ifcfg-bond0.1 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:18:08 -0400 (0:00:00.393) 0:00:16.965 *********** ok: [managed_node1] => { "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] ************************** Monday 22 July 2024 12:18:08 -0400 (0:00:00.075) 0:00:17.040 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Monday 22 July 2024 12:18:08 -0400 (0:00:00.070) 0:00:17.111 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-bond0] ****************************** Monday 22 July 2024 12:18:08 -0400 (0:00:00.075) 0:00:17.186 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-bond0] *************************** Monday 22 July 2024 12:18:08 -0400 (0:00:00.071) 0:00:17.257 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'bond0'] **************************** Monday 22 July 2024 12:18:08 -0400 (0:00:00.072) 0:00:17.329 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'bond0'] *********** Monday 22 July 2024 12:18:08 -0400 (0:00:00.074) 0:00:17.403 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in bond0] ***************** Monday 22 July 2024 12:18:09 -0400 (0:00:00.074) 0:00:17.478 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:18:09 -0400 (0:00:00.073) 0:00:17.552 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:18:09 -0400 (0:00:00.124) 0:00:17.676 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:18:09 -0400 (0:00:00.071) 0:00:17.747 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665085.4109817, "block_size": 4096, "blocks": 8, "ctime": 1721665085.4109817, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 22506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721665085.4109817, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 167, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 12:18:09 -0400 (0:00:00.343) 0:00:18.090 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:18:09 -0400 (0:00:00.071) 0:00:18.162 *********** ok: [managed_node1] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.029618", "end": "2024-07-22 12:18:10.015572", "rc": 0, "start": "2024-07-22 12:18:09.985954" } STDOUT: bond0.0 /etc/sysconfig/network-scripts/ifcfg-bond0.0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:18:10 -0400 (0:00:00.368) 0:00:18.530 *********** ok: [managed_node1] => { "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] ************************ Monday 22 July 2024 12:18:10 -0400 (0:00:00.077) 0:00:18.607 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Monday 22 July 2024 12:18:10 -0400 (0:00:00.073) 0:00:18.681 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-bond0.0] **************************** Monday 22 July 2024 12:18:10 -0400 (0:00:00.072) 0:00:18.753 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-bond0.0] ************************* Monday 22 July 2024 12:18:10 -0400 (0:00:00.073) 0:00:18.826 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'bond0.0'] ************************** Monday 22 July 2024 12:18:10 -0400 (0:00:00.073) 0:00:18.900 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'bond0.0'] ********* Monday 22 July 2024 12:18:10 -0400 (0:00:00.075) 0:00:18.975 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in bond0.0] *************** Monday 22 July 2024 12:18:10 -0400 (0:00:00.073) 0:00:19.048 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:18:10 -0400 (0:00:00.071) 0:00:19.120 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:18:10 -0400 (0:00:00.126) 0:00:19.246 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:18:10 -0400 (0:00:00.071) 0:00:19.318 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665085.4309819, "block_size": 4096, "blocks": 8, "ctime": 1721665085.4309819, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 22507, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721665085.4309819, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.1", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 167, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 12:18:11 -0400 (0:00:00.344) 0:00:19.663 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:18:11 -0400 (0:00:00.071) 0:00:19.735 *********** ok: [managed_node1] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.030775", "end": "2024-07-22 12:18:11.586023", "rc": 0, "start": "2024-07-22 12:18:11.555248" } STDOUT: bond0.1 /etc/sysconfig/network-scripts/ifcfg-bond0.1 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:18:11 -0400 (0:00:00.364) 0:00:20.100 *********** ok: [managed_node1] => { "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] ************************ Monday 22 July 2024 12:18:11 -0400 (0:00:00.073) 0:00:20.173 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Monday 22 July 2024 12:18:11 -0400 (0:00:00.128) 0:00:20.301 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-bond0.1] **************************** Monday 22 July 2024 12:18:11 -0400 (0:00:00.076) 0:00:20.378 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-bond0.1] ************************* Monday 22 July 2024 12:18:12 -0400 (0:00:00.071) 0:00:20.450 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'bond0.1'] ************************** Monday 22 July 2024 12:18:12 -0400 (0:00:00.074) 0:00:20.524 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'bond0.1'] ********* Monday 22 July 2024 12:18:12 -0400 (0:00:00.073) 0:00:20.597 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in bond0.1] *************** Monday 22 July 2024 12:18:12 -0400 (0:00:00.078) 0:00:20.675 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [** TEST check bond settings] ********************************************* Monday 22 July 2024 12:18:12 -0400 (0:00:00.071) 0:00:20.747 *********** [WARNING]: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ item.value }}' in result.stdout ok: [managed_node1] => (item={u'value': u'802.3ad', u'key': u'mode'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/mode" ], "delta": "0:00:00.004524", "end": "2024-07-22 12:18:12.580793", "item": { "key": "mode", "value": "802.3ad" }, "rc": 0, "start": "2024-07-22 12:18:12.576269" } STDOUT: 802.3ad 4 ok: [managed_node1] => (item={u'value': u'65535', u'key': u'ad_actor_sys_prio'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_actor_sys_prio" ], "delta": "0:00:00.002946", "end": "2024-07-22 12:18:12.878305", "item": { "key": "ad_actor_sys_prio", "value": "65535" }, "rc": 0, "start": "2024-07-22 12:18:12.875359" } STDOUT: 65535 ok: [managed_node1] => (item={u'value': u'00:00:5e:00:53:5d', u'key': u'ad_actor_system'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_actor_system" ], "delta": "0:00:00.003118", "end": "2024-07-22 12:18:13.161045", "item": { "key": "ad_actor_system", "value": "00:00:5e:00:53:5d" }, "rc": 0, "start": "2024-07-22 12:18:13.157927" } STDOUT: 00:00:5e:00:53:5d ok: [managed_node1] => (item={u'value': u'stable', u'key': u'ad_select'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_select" ], "delta": "0:00:00.002960", "end": "2024-07-22 12:18:13.445272", "item": { "key": "ad_select", "value": "stable" }, "rc": 0, "start": "2024-07-22 12:18:13.442312" } STDOUT: stable 0 ok: [managed_node1] => (item={u'value': u'1023', u'key': u'ad_user_port_key'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_user_port_key" ], "delta": "0:00:00.002911", "end": "2024-07-22 12:18:13.729030", "item": { "key": "ad_user_port_key", "value": "1023" }, "rc": 0, "start": "2024-07-22 12:18:13.726119" } STDOUT: 1023 ok: [managed_node1] => (item={u'value': u'1', u'key': u'all_slaves_active'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/all_slaves_active" ], "delta": "0:00:00.002924", "end": "2024-07-22 12:18:14.011797", "item": { "key": "all_slaves_active", "value": "1" }, "rc": 0, "start": "2024-07-22 12:18:14.008873" } STDOUT: 1 ok: [managed_node1] => (item={u'value': u'0', u'key': u'downdelay'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/downdelay" ], "delta": "0:00:00.005378", "end": "2024-07-22 12:18:14.291113", "item": { "key": "downdelay", "value": "0" }, "rc": 0, "start": "2024-07-22 12:18:14.285735" } STDOUT: 0 ok: [managed_node1] => (item={u'value': u'slow', u'key': u'lacp_rate'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/lacp_rate" ], "delta": "0:00:00.002916", "end": "2024-07-22 12:18:14.581201", "item": { "key": "lacp_rate", "value": "slow" }, "rc": 0, "start": "2024-07-22 12:18:14.578285" } STDOUT: slow 0 ok: [managed_node1] => (item={u'value': u'128', u'key': u'lp_interval'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/lp_interval" ], "delta": "0:00:00.002990", "end": "2024-07-22 12:18:14.859808", "item": { "key": "lp_interval", "value": "128" }, "rc": 0, "start": "2024-07-22 12:18:14.856818" } STDOUT: 128 ok: [managed_node1] => (item={u'value': u'110', u'key': u'miimon'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/miimon" ], "delta": "0:00:00.003010", "end": "2024-07-22 12:18:15.157031", "item": { "key": "miimon", "value": "110" }, "rc": 0, "start": "2024-07-22 12:18:15.154021" } STDOUT: 110 ok: [managed_node1] => (item={u'value': u'64', u'key': u'num_grat_arp'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/num_grat_arp" ], "delta": "0:00:00.002907", "end": "2024-07-22 12:18:15.436768", "item": { "key": "num_grat_arp", "value": "64" }, "rc": 0, "start": "2024-07-22 12:18:15.433861" } STDOUT: 64 ok: [managed_node1] => (item={u'value': u'225', u'key': u'resend_igmp'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/resend_igmp" ], "delta": "0:00:00.002856", "end": "2024-07-22 12:18:15.725291", "item": { "key": "resend_igmp", "value": "225" }, "rc": 0, "start": "2024-07-22 12:18:15.722435" } STDOUT: 225 ok: [managed_node1] => (item={u'value': u'0', u'key': u'updelay'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/updelay" ], "delta": "0:00:00.002909", "end": "2024-07-22 12:18:16.011828", "item": { "key": "updelay", "value": "0" }, "rc": 0, "start": "2024-07-22 12:18:16.008919" } STDOUT: 0 ok: [managed_node1] => (item={u'value': u'1', u'key': u'use_carrier'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/use_carrier" ], "delta": "0:00:00.002892", "end": "2024-07-22 12:18:16.292619", "item": { "key": "use_carrier", "value": "1" }, "rc": 0, "start": "2024-07-22 12:18:16.289727" } STDOUT: 1 ok: [managed_node1] => (item={u'value': u'encap2+3', u'key': u'xmit_hash_policy'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/xmit_hash_policy" ], "delta": "0:00:00.002878", "end": "2024-07-22 12:18:16.600235", "item": { "key": "xmit_hash_policy", "value": "encap2+3" }, "rc": 0, "start": "2024-07-22 12:18:16.597357" } STDOUT: encap2+3 3 TASK [Include the task 'assert_IPv4_present.yml'] ****************************** Monday 22 July 2024 12:18:16 -0400 (0:00:04.383) 0:00:25.130 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv4_present.yml for managed_node1 TASK [** TEST check IPv4] ****************************************************** Monday 22 July 2024 12:18:16 -0400 (0:00:00.118) 0:00:25.249 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ address }}' in result.stdout ok: [managed_node1] => { "attempts": 1, "changed": false, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.003661", "end": "2024-07-22 12:18:17.083537", "rc": 0, "start": "2024-07-22 12:18:17.079876" } STDOUT: 98: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.130/24 brd 192.0.2.255 scope global noprefixroute dynamic nm-bond valid_lft 232sec preferred_lft 232sec TASK [Include the task 'assert_IPv6_present.yml'] ****************************** Monday 22 July 2024 12:18:17 -0400 (0:00:00.352) 0:00:25.601 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv6_present.yml for managed_node1 TASK [** TEST check IPv6] ****************************************************** Monday 22 July 2024 12:18:17 -0400 (0:00:00.118) 0:00:25.720 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ address }}' in result.stdout ok: [managed_node1] => { "attempts": 1, "changed": false, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.003228", "end": "2024-07-22 12:18:17.557926", "rc": 0, "start": "2024-07-22 12:18:17.554698" } STDOUT: 98: nm-bond: mtu 1500 state UP qlen 1000 inet6 2001:db8::14f/128 scope global noprefixroute dynamic valid_lft 232sec preferred_lft 232sec inet6 2001:db8::52e7:c84e:4e23:c1c4/64 scope global noprefixroute dynamic valid_lft 1792sec preferred_lft 1792sec inet6 fe80::7102:73c5:a1c2:b5dd/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:18:17 -0400 (0:00:00.356) 0:00:26.077 *********** 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.'] *** Monday 22 July 2024 12:18:17 -0400 (0:00:00.063) 0:00:26.140 *********** ok: [managed_node1] => {} 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] ***************************************************************** Monday 22 July 2024 12:18:17 -0400 (0:00:00.074) 0:00:26.215 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_bond_profile+device.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:18:17 -0400 (0:00:00.178) 0:00:26.393 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:18:18 -0400 (0:00:00.186) 0:00:26.579 *********** skipping: [managed_node1] => { "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] *********** Monday 22 July 2024 12:18:18 -0400 (0:00:00.089) 0:00:26.669 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:18:18 -0400 (0:00:00.068) 0:00:26.737 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:18:18 -0400 (0:00:00.071) 0:00:26.809 *********** ok: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:19 -0400 (0:00:00.908) 0:00:27.717 *********** ok: [managed_node1] => { "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] ************** Monday 22 July 2024 12:18:20 -0400 (0:00:01.182) 0:00:28.900 *********** ok: [managed_node1] => {} 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] *** Monday 22 July 2024 12:18:20 -0400 (0:00:00.070) 0:00:28.971 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:20 -0400 (0:00:00.122) 0:00:29.094 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:20 -0400 (0:00:00.071) 0:00:29.165 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } 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] *** Monday 22 July 2024 12:18:20 -0400 (0:00:00.071) 0:00:29.237 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:20 -0400 (0:00:00.081) 0:00:29.318 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:18:20 -0400 (0:00:00.073) 0:00:29.392 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:18:21 -0400 (0:00:00.124) 0:00:29.517 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:18:21 -0400 (0:00:00.068) 0:00:29.585 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:18:21 -0400 (0:00:00.070) 0:00:29.656 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:18:21 -0400 (0:00:00.077) 0:00:29.733 *********** ok: [managed_node1] => { "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] ***** Monday 22 July 2024 12:18:21 -0400 (0:00:00.470) 0:00:30.204 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:18:21 -0400 (0:00:00.078) 0:00:30.283 *********** skipping: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:21 -0400 (0:00:00.068) 0:00:30.352 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:18:21 -0400 (0:00:00.070) 0:00:30.423 *********** changed: [managed_node1] => { "_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] ********** Monday 22 July 2024 12:18:23 -0400 (0:00:01.307) 0:00:31.730 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:18:23 -0400 (0:00:00.069) 0:00:31.799 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:18:23 -0400 (0:00:00.077) 0:00:31.877 *********** ok: [managed_node1] => { "__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] *** Monday 22 July 2024 12:18:23 -0400 (0:00:00.075) 0:00:31.953 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:18:23 -0400 (0:00:00.067) 0:00:32.020 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Delete the device 'nm-bond'] ********************************************* Monday 22 July 2024 12:18:23 -0400 (0:00:00.337) 0:00:32.358 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.011891", "end": "2024-07-22 12:18:24.195931", "failed_when_result": false, "rc": 1, "start": "2024-07-22 12:18:24.184040" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code TASK [Remove test interfaces] ************************************************** Monday 22 July 2024 12:18:24 -0400 (0:00:00.356) 0:00:32.714 *********** ok: [managed_node1] => { "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.041854", "end": "2024-07-22 12:18:24.584141", "rc": 0, "start": "2024-07-22 12:18:24.542287" } 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] ********************************************* Monday 22 July 2024 12:18:24 -0400 (0:00:00.384) 0:00:33.099 *********** ok: [managed_node1] => { "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\n", "delta": "0:00:00.021995", "end": "2024-07-22 12:18:24.943369", "rc": 0, "start": "2024-07-22 12:18:24.921374" } 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 TASK [Reset bond options to assert] ******************************************** Monday 22 July 2024 12:18:25 -0400 (0:00:00.358) 0:00:33.457 *********** ok: [managed_node1] => { "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'] ***************************************** Monday 22 July 2024 12:18:25 -0400 (0:00:00.070) 0:00:33.528 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 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.] *** Monday 22 July 2024 12:18:25 -0400 (0:00:00.124) 0:00:33.653 *********** ok: [managed_node1] => {} 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] *************************************************************** Monday 22 July 2024 12:18:25 -0400 (0:00:00.071) 0:00:33.724 *********** ok: [managed_node1] => (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_node1] => (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_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bond_profile_reconfigure.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_bond_options.yml" ] } ok: [managed_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_bond_profile+device.yml", "tasks/remove_test_interfaces_with_dhcp.yml", "tasks/check_network_dns.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:18:25 -0400 (0:00:00.128) 0:00:33.852 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:18:25 -0400 (0:00:00.177) 0:00:34.029 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:18:25 -0400 (0:00:00.115) 0:00:34.145 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003353", "end": "2024-07-22 12:18:25.983281", "rc": 0, "start": "2024-07-22 12:18:25.979928" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:18:26 -0400 (0:00:00.355) 0:00:34.500 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:18:26 -0400 (0:00:00.070) 0:00:34.571 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:18:26 -0400 (0:00:00.072) 0:00:34.643 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_dhcp_device_present.yml for managed_node1 TASK [Install dnsmasq] ********************************************************* Monday 22 July 2024 12:18:26 -0400 (0:00:00.152) 0:00:34.795 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [ "dnsmasq-2.76-17.el7_9.3.x86_64 providing dnsmasq is already installed" ] } TASK [Install pgrep, sysctl] *************************************************** Monday 22 July 2024 12:18:26 -0400 (0:00:00.559) 0:00:35.355 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Monday 22 July 2024 12:18:26 -0400 (0:00:00.068) 0:00:35.423 *********** ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "procps-ng-3.3.10-28.el7.x86_64 providing procps-ng is already installed" ] } TASK [Create test interfaces] ************************************************** Monday 22 July 2024 12:18:27 -0400 (0:00:00.557) 0:00:35.981 *********** ok: [managed_node1] => { "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 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.192633", "end": "2024-07-22 12:18:29.005862", "rc": 0, "start": "2024-07-22 12:18:27.813229" } STDERR: + exec + ip link add test1 type veth peer name test1p + ip link add test2 type veth peer name test2p ++ pgrep NetworkManager + '[' -n 24289 ']' + 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 24289 ']' + 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 + 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'] ******************************* Monday 22 July 2024 12:18:29 -0400 (0:00:01.537) 0:00:37.518 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface test1] ******************************************** Monday 22 July 2024 12:18:29 -0400 (0:00:00.119) 0:00:37.638 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665107.8222163, "block_size": 4096, "blocks": 0, "ctime": 1721665107.8222163, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 18664, "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": 1721665107.8222163, "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'] ************************** Monday 22 July 2024 12:18:29 -0400 (0:00:00.354) 0:00:37.993 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:18:29 -0400 (0:00:00.072) 0:00:38.066 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface test2] ******************************************** Monday 22 July 2024 12:18:29 -0400 (0:00:00.122) 0:00:38.188 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665107.8342164, "block_size": 4096, "blocks": 0, "ctime": 1721665107.8342164, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 19090, "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": 1721665107.8342164, "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'] ************************** Monday 22 July 2024 12:18:30 -0400 (0:00:00.345) 0:00:38.534 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** Monday 22 July 2024 12:18:30 -0400 (0:00:00.076) 0:00:38.610 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile_reconfigure.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:18:30 -0400 (0:00:00.156) 0:00:38.767 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:18:30 -0400 (0:00:00.135) 0:00:38.902 *********** skipping: [managed_node1] => { "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] *********** Monday 22 July 2024 12:18:30 -0400 (0:00:00.139) 0:00:39.042 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:18:30 -0400 (0:00:00.069) 0:00:39.111 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:18:30 -0400 (0:00:00.070) 0:00:39.182 *********** ok: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:31 -0400 (0:00:00.906) 0:00:40.089 *********** ok: [managed_node1] => { "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] ************** Monday 22 July 2024 12:18:32 -0400 (0:00:01.189) 0:00:41.279 *********** ok: [managed_node1] => {} 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] *** Monday 22 July 2024 12:18:32 -0400 (0:00:00.072) 0:00:41.351 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:32 -0400 (0:00:00.070) 0:00:41.422 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:33 -0400 (0:00:00.125) 0:00:41.547 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } 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] *** Monday 22 July 2024 12:18:33 -0400 (0:00:00.072) 0:00:41.620 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:33 -0400 (0:00:00.083) 0:00:41.703 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:18:33 -0400 (0:00:00.078) 0:00:41.782 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:18:33 -0400 (0:00:00.127) 0:00:41.909 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:18:33 -0400 (0:00:00.070) 0:00:41.980 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:18:33 -0400 (0:00:00.068) 0:00:42.048 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:18:33 -0400 (0:00:00.079) 0:00:42.128 *********** ok: [managed_node1] => { "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] ***** Monday 22 July 2024 12:18:34 -0400 (0:00:00.475) 0:00:42.604 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:18:34 -0400 (0:00:00.080) 0:00:42.685 *********** skipping: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:34 -0400 (0:00:00.067) 0:00:42.752 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:18:34 -0400 (0:00:00.071) 0:00:42.823 *********** changed: [managed_node1] => { "_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, 80c247e4-0054-4a8b-bf87-e57bfee93cc6 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:18:35 -0400 (0:00:00.879) 0:00:43.703 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:18:35 -0400 (0:00:00.069) 0:00:43.773 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:18:35 -0400 (0:00:00.071) 0:00:43.844 *********** ok: [managed_node1] => { "__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, 80c247e4-0054-4a8b-bf87-e57bfee93cc6\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:18:35 -0400 (0:00:00.135) 0:00:43.980 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:18:35 -0400 (0:00:00.071) 0:00:44.052 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:18:35 -0400 (0:00:00.342) 0:00:44.395 *********** ok: [managed_node1] => { "__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, 80c247e4-0054-4a8b-bf87-e57bfee93cc6\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 80c247e4-0054-4a8b-bf87-e57bfee93cc6 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, df09ba0a-fe0a-45e7-881c-dac2176c8533 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, b2cf221f-8b93-4548-8921-077735615d90 (not-active)" ] } } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:18:36 -0400 (0:00:00.075) 0:00:44.471 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_bond_options.yml for managed_node1 TASK [** TEST check bond settings] ********************************************* Monday 22 July 2024 12:18:36 -0400 (0:00:00.152) 0:00:44.623 *********** [WARNING]: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ item.value }}' in result.stdout ok: [managed_node1] => (item={u'key': u'mode', u'value': u'active-backup'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/mode" ], "delta": "0:00:00.003212", "end": "2024-07-22 12:18:36.459520", "item": { "key": "mode", "value": "active-backup" }, "rc": 0, "start": "2024-07-22 12:18:36.456308" } STDOUT: active-backup 1 ok: [managed_node1] => (item={u'key': u'arp_interval', u'value': u'60'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_interval" ], "delta": "0:00:00.003188", "end": "2024-07-22 12:18:36.779107", "item": { "key": "arp_interval", "value": "60" }, "rc": 0, "start": "2024-07-22 12:18:36.775919" } STDOUT: 60 ok: [managed_node1] => (item={u'key': u'arp_ip_target', u'value': u'192.0.2.128'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_ip_target" ], "delta": "0:00:00.002920", "end": "2024-07-22 12:18:37.077098", "item": { "key": "arp_ip_target", "value": "192.0.2.128" }, "rc": 0, "start": "2024-07-22 12:18:37.074178" } STDOUT: 192.0.2.128 ok: [managed_node1] => (item={u'key': u'arp_validate', u'value': u'none'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_validate" ], "delta": "0:00:00.005114", "end": "2024-07-22 12:18:37.361596", "item": { "key": "arp_validate", "value": "none" }, "rc": 0, "start": "2024-07-22 12:18:37.356482" } STDOUT: none 0 ok: [managed_node1] => (item={u'key': u'primary', u'value': u'test1'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": false, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/primary" ], "delta": "0:00:00.003033", "end": "2024-07-22 12:18:37.644029", "item": { "key": "primary", "value": "test1" }, "rc": 0, "start": "2024-07-22 12:18:37.640996" } STDOUT: test1 TASK [Include the task 'assert_IPv4_present.yml'] ****************************** Monday 22 July 2024 12:18:37 -0400 (0:00:01.548) 0:00:46.172 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv4_present.yml for managed_node1 TASK [** TEST check IPv4] ****************************************************** Monday 22 July 2024 12:18:37 -0400 (0:00:00.119) 0:00:46.292 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ address }}' in result.stdout FAILED - RETRYING: ** TEST check IPv4 (20 retries left). ok: [managed_node1] => { "attempts": 2, "changed": false, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.003544", "end": "2024-07-22 12:18:40.436952", "rc": 0, "start": "2024-07-22 12:18:40.433408" } STDOUT: 104: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.142/24 brd 192.0.2.255 scope global noprefixroute dynamic nm-bond valid_lft 238sec preferred_lft 238sec TASK [Include the task 'assert_IPv6_present.yml'] ****************************** Monday 22 July 2024 12:18:40 -0400 (0:00:02.661) 0:00:48.953 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_IPv6_present.yml for managed_node1 TASK [** TEST check IPv6] ****************************************************** Monday 22 July 2024 12:18:40 -0400 (0:00:00.121) 0:00:49.075 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ address }}' in result.stdout ok: [managed_node1] => { "attempts": 1, "changed": false, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.003360", "end": "2024-07-22 12:18:40.907414", "rc": 0, "start": "2024-07-22 12:18:40.904054" } STDOUT: 104: nm-bond: mtu 1500 state UP qlen 1000 inet6 2001:db8::108/128 scope global noprefixroute dynamic valid_lft 238sec preferred_lft 238sec inet6 2001:db8::82f3:7bb0:126a:19b5/64 scope global noprefixroute dynamic valid_lft 1797sec preferred_lft 1797sec inet6 fe80::41c7:b66f:974:93a/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:18:41 -0400 (0:00:00.353) 0:00:49.428 *********** 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.'] *** Monday 22 July 2024 12:18:41 -0400 (0:00:00.068) 0:00:49.497 *********** ok: [managed_node1] => {} 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] ***************************************************************** Monday 22 July 2024 12:18:41 -0400 (0:00:00.069) 0:00:49.566 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_bond_profile+device.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:18:41 -0400 (0:00:00.191) 0:00:49.758 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:18:41 -0400 (0:00:00.135) 0:00:49.893 *********** skipping: [managed_node1] => { "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] *********** Monday 22 July 2024 12:18:41 -0400 (0:00:00.144) 0:00:50.037 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:18:41 -0400 (0:00:00.071) 0:00:50.109 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:18:41 -0400 (0:00:00.071) 0:00:50.181 *********** ok: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:42 -0400 (0:00:00.924) 0:00:51.107 *********** ok: [managed_node1] => { "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] ************** Monday 22 July 2024 12:18:43 -0400 (0:00:01.212) 0:00:52.319 *********** ok: [managed_node1] => {} 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] *** Monday 22 July 2024 12:18:43 -0400 (0:00:00.072) 0:00:52.392 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:44 -0400 (0:00:00.071) 0:00:52.463 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:44 -0400 (0:00:00.130) 0:00:52.593 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } 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] *** Monday 22 July 2024 12:18:44 -0400 (0:00:00.071) 0:00:52.665 *********** skipping: [managed_node1] => { "changed": false, "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] *** Monday 22 July 2024 12:18:44 -0400 (0:00:00.081) 0:00:52.747 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:18:44 -0400 (0:00:00.078) 0:00:52.825 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:18:44 -0400 (0:00:00.124) 0:00:52.949 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:18:44 -0400 (0:00:00.072) 0:00:53.022 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:18:44 -0400 (0:00:00.068) 0:00:53.090 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:18:44 -0400 (0:00:00.078) 0:00:53.169 *********** ok: [managed_node1] => { "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] ***** Monday 22 July 2024 12:18:45 -0400 (0:00:00.478) 0:00:53.647 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:18:45 -0400 (0:00:00.077) 0:00:53.725 *********** skipping: [managed_node1] => { "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] *** Monday 22 July 2024 12:18:45 -0400 (0:00:00.069) 0:00:53.794 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:18:45 -0400 (0:00:00.070) 0:00:53.864 *********** changed: [managed_node1] => { "_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] ********** Monday 22 July 2024 12:18:46 -0400 (0:00:01.278) 0:00:55.143 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:18:46 -0400 (0:00:00.134) 0:00:55.277 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:18:46 -0400 (0:00:00.074) 0:00:55.352 *********** ok: [managed_node1] => { "__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] *** Monday 22 July 2024 12:18:47 -0400 (0:00:00.081) 0:00:55.434 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:18:47 -0400 (0:00:00.068) 0:00:55.502 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Delete the device 'nm-bond'] ********************************************* Monday 22 July 2024 12:18:47 -0400 (0:00:00.344) 0:00:55.847 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.011334", "end": "2024-07-22 12:18:47.681039", "failed_when_result": false, "rc": 1, "start": "2024-07-22 12:18:47.669705" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code TASK [Remove test interfaces] ************************************************** Monday 22 July 2024 12:18:47 -0400 (0:00:00.354) 0:00:56.202 *********** ok: [managed_node1] => { "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.042707", "end": "2024-07-22 12:18:48.075775", "rc": 0, "start": "2024-07-22 12:18:48.033068" } 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] ********************************************* Monday 22 July 2024 12:18:48 -0400 (0:00:00.392) 0:00:56.594 *********** ok: [managed_node1] => { "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\n", "delta": "0:00:00.021259", "end": "2024-07-22 12:18:48.442281", "rc": 0, "start": "2024-07-22 12:18:48.421022" } 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 TASK [Check routes and DNS] **************************************************** Monday 22 July 2024 12:18:48 -0400 (0:00:00.372) 0:00:56.967 *********** ok: [managed_node1] => { "changed": false, "cmd": "set -euo pipefail\necho IP\nip a\necho IP ROUTE\nip route\necho IP -6 ROUTE\nip -6 route\necho RESOLV\nif [ -f /etc/resolv.conf ]; then\n cat /etc/resolv.conf\nelse\n echo NO /etc/resolv.conf\n ls -alrtF /etc/resolv.* || :\nfi\n", "delta": "0:00:00.008945", "end": "2024-07-22 12:18:48.804872", "rc": 0, "start": "2024-07-22 12:18:48.795927" } 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 valid_lft forever preferred_lft forever 2: eth0: mtu 9001 qdisc mq state UP group default qlen 1000 link/ether 0e:d1:5c:a8:50:8d brd ff:ff:ff:ff:ff:ff inet 10.31.42.215/22 brd 10.31.43.255 scope global noprefixroute dynamic eth0 valid_lft 3235sec preferred_lft 3235sec inet6 fe80::cd1:5cff:fea8:508d/64 scope link valid_lft forever preferred_lft forever 10: bond0: mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether fe:be:f5:64:d7:d4 brd ff:ff:ff:ff:ff:ff 18: team0: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 0e:7c:c5:5d:56:de brd ff:ff:ff:ff:ff:ff 60: rpltstbr: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 32:33:7b:4b:58:3e brd ff:ff:ff:ff:ff:ff inet 192.0.2.72/31 brd 192.0.2.73 scope global noprefixroute rpltstbr valid_lft forever preferred_lft forever inet6 fe80::3033:7bff:fe4b:583e/64 scope link valid_lft forever preferred_lft forever IP ROUTE default via 10.31.40.1 dev eth0 proto dhcp metric 100 10.31.40.0/22 dev eth0 proto kernel scope link src 10.31.42.215 metric 100 192.0.2.72/31 dev rpltstbr proto kernel scope link src 192.0.2.72 metric 425 IP -6 ROUTE unreachable ::/96 dev lo metric 1024 error -113 pref medium unreachable ::ffff:0.0.0.0/96 dev lo metric 1024 error -113 pref medium unreachable 2002:a00::/24 dev lo metric 1024 error -113 pref medium unreachable 2002:7f00::/24 dev lo metric 1024 error -113 pref medium unreachable 2002:a9fe::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:ac10::/28 dev lo metric 1024 error -113 pref medium unreachable 2002:c0a8::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:e000::/19 dev lo metric 1024 error -113 pref medium unreachable 3ffe:ffff::/32 dev lo metric 1024 error -113 pref medium fe80::/64 dev eth0 proto kernel metric 256 mtu 9001 pref medium fe80::/64 dev rpltstbr proto kernel metric 256 pref medium RESOLV # Generated by NetworkManager search us-east-1.aws.redhat.com nameserver 10.29.169.13 nameserver 10.29.170.12 nameserver 10.2.32.1 TASK [Verify DNS and network connectivity] ************************************* Monday 22 July 2024 12:18:48 -0400 (0:00:00.354) 0:00:57.321 *********** ok: [managed_node1] => { "changed": false, "cmd": "set -euo pipefail\necho CHECK DNS AND CONNECTIVITY\nfor host in mirrors.fedoraproject.org mirrors.centos.org; do\n if ! getent hosts \"$host\"; then\n echo FAILED to lookup host \"$host\"\n exit 1\n fi\n if ! curl -o /dev/null https://\"$host\"; then\n echo FAILED to contact host \"$host\"\n exit 1\n fi\ndone\n", "delta": "0:00:00.611815", "end": "2024-07-22 12:18:49.781954", "rc": 0, "start": "2024-07-22 12:18:49.170139" } STDOUT: CHECK DNS AND CONNECTIVITY 2605:bc80:3010:600:dead:beef:cafe:fed9 wildcard.fedoraproject.org mirrors.fedoraproject.org 2620:52:3:1:dead:beef:cafe:fed6 wildcard.fedoraproject.org mirrors.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 wildcard.fedoraproject.org mirrors.fedoraproject.org 2600:1f14:fad:5c02:7c8a:72d0:1c58:c189 wildcard.fedoraproject.org mirrors.fedoraproject.org 2600:2701:4000:5211:dead:beef:fe:fed3 wildcard.fedoraproject.org mirrors.fedoraproject.org 2600:2701:4000:5211:dead:beef:fe:fed3 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2605:bc80:3010:600:dead:beef:cafe:fed9 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2620:52:3:1:dead:beef:cafe:fed6 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2600:1f14:fad:5c02:7c8a:72d0:1c58:c189 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org STDERR: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 305 100 305 0 0 731 0 --:--:-- --:--:-- --:--:-- 733 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 291 100 291 0 0 1765 0 --:--:-- --:--:-- --:--:-- 1763 PLAY RECAP ********************************************************************* managed_node1 : ok=153 changed=4 unreachable=0 failed=0 skipped=87 rescued=0 ignored=0 Monday 22 July 2024 12:18:49 -0400 (0:00:00.932) 0:00:58.254 *********** =============================================================================== ** TEST check bond settings --------------------------------------------- 4.38s ** TEST check IPv4 ------------------------------------------------------ 2.66s ** TEST check bond settings --------------------------------------------- 1.55s Create test interfaces -------------------------------------------------- 1.54s Create test interfaces -------------------------------------------------- 1.50s fedora.linux_system_roles.network : Check which packages are installed --- 1.44s fedora.linux_system_roles.network : Configure networking connection profiles --- 1.28s fedora.linux_system_roles.network : Check which packages are installed --- 1.21s fedora.linux_system_roles.network : Check which packages are installed --- 1.19s fedora.linux_system_roles.network : Check which packages are installed --- 1.18s fedora.linux_system_roles.network : Configure networking connection profiles --- 1.06s fedora.linux_system_roles.network : Check which services are running ---- 0.97s Gathering Facts --------------------------------------------------------- 0.94s Verify DNS and network connectivity ------------------------------------- 0.93s fedora.linux_system_roles.network : Check which services are running ---- 0.93s fedora.linux_system_roles.network : Check which services are running ---- 0.91s fedora.linux_system_roles.network : Check which services are running ---- 0.91s fedora.linux_system_roles.network : Configure networking connection profiles --- 0.88s fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.75s Install yum-utils package ----------------------------------------------- 0.74s