# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond_options.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 14:51:39 +0000 (0:00:00.031) 0:00:00.031 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 14:51:39 +0000 (0:00:00.871) 0:00:00.902 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 27 May 2022 14:51:39 +0000 (0:00:00.038) 0:00:00.941 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 14:51:39 +0000 (0:00:00.045) 0:00:00.987 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 14:51:40 +0000 (0:00:00.053) 0:00:01.041 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.612386", "end": "2022-05-27 14:51:42.460944", "rc": 0, "start": "2022-05-27 14:51:39.848558" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Last metadata expiration check: 0:00:13 ago on Fri May 27 14:51:27 2022. epel-release-latest-8.noarch.rpm 125 kB/s | 23 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-15.el8 @commandline 23 k Transaction Summary ================================================================================ Install 1 Package Total size: 23 k Installed size: 32 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-15.el8.noarch 1/1 Running scriptlet: epel-release-8-15.el8.noarch 1/1 Verifying : epel-release-8-15.el8.noarch 1/1 Installed products updated. Installed: epel-release-8-15.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 27 May 2022 14:51:42 +0000 (0:00:02.961) 0:00:04.002 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 14:51:43 +0000 (0:00:00.033) 0:00:04.035 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.561005", "end": "2022-05-27 14:51:43.314206", "rc": 0, "start": "2022-05-27 14:51:42.753201" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. TASK [Enable EPEL 6] *********************************************************** Friday 27 May 2022 14:51:43 +0000 (0:00:00.820) 0:00:04.855 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 27 May 2022 14:51:43 +0000 (0:00:00.028) 0:00:04.883 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 14:51:43 +0000 (0:00:00.034) 0:00:04.917 ************ ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 27 May 2022 14:51:44 +0000 (0:00:00.630) 0:00:05.548 ************ ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 27 May 2022 14:51:44 +0000 (0:00:00.032) 0:00:05.580 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-19.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 14:51:55 +0000 (0:00:11.397) 0:00:16.978 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 14:51:56 +0000 (0:00:00.035) 0:00:17.013 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 27 May 2022 14:51:57 +0000 (0:00:01.870) 0:00:18.884 ************ ok: [sut] => { "changed": false, "cmd": "set -euo pipefail\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 break; fi\n sleep 1\n ip addr add 192.0.2.1/24 dev testbr\n ip -6 addr add 2001:DB8::1/32 dev testbr\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.600712", "end": "2022-05-27 14:51:59.203055", "rc": 0, "start": "2022-05-27 14:51:57.602343" } TASK [Get stat for interface test1] ******************************************** Friday 27 May 2022 14:51:59 +0000 (0:00:01.875) 0:00:20.759 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663117.6834836, "block_size": 4096, "blocks": 0, "ctime": 1653663117.6834836, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21397, "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": 1653663117.6834836, "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 interface test1 is present] ********************************** Friday 27 May 2022 14:52:00 +0000 (0:00:00.400) 0:00:21.160 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** Friday 27 May 2022 14:52:00 +0000 (0:00:00.043) 0:00:21.203 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663117.69384, "block_size": 4096, "blocks": 0, "ctime": 1653663117.69384, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21983, "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": 1653663117.69384, "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 interface test2 is present] ********************************** Friday 27 May 2022 14:52:00 +0000 (0:00:00.277) 0:00:21.481 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST Add Bond with 2 ports] ********************************************** Friday 27 May 2022 14:52:00 +0000 (0:00:00.036) 0:00:21.518 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 14:52:00 +0000 (0:00:00.033) 0:00:21.551 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 27 May 2022 14:52:00 +0000 (0:00:00.147) 0:00:21.698 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 14:52:01 +0000 (0:00:00.433) 0:00:22.132 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 27 May 2022 14:52:03 +0000 (0:00:02.187) 0:00:24.319 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 27 May 2022 14:52:05 +0000 (0:00:01.837) 0:00:26.157 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 14:52:05 +0000 (0:00:00.077) 0:00:26.234 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 14:52:05 +0000 (0:00:00.136) 0:00:26.371 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 14:52:05 +0000 (0:00:00.091) 0:00:26.462 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 14:52:06 +0000 (0:00:00.786) 0:00:27.249 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 14:52:06 +0000 (0:00:00.096) 0:00:27.346 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 14:52:06 +0000 (0:00:00.076) 0:00:27.422 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 14:52:06 +0000 (0:00:00.076) 0:00:27.498 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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, "arp_all_targets": "all", "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", "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, 6467f3d0-0138-4a0e-b9d0-4823f65d167f [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 14:52:07 +0000 (0:00:01.009) 0:00:28.508 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 14:52:07 +0000 (0:00:00.086) 0:00:28.594 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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, "arp_all_targets": "all", "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", "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, 6467f3d0-0138-4a0e-b9d0-4823f65d167f\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 1f1ff2ff-64e1-4164-87ed-9cb328194d24 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 670b2259-c6a9-4327-b1aa-8bb32876ea32 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 14:52:07 +0000 (0:00:00.097) 0:00:28.691 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface nm-bond] ****************************************** Friday 27 May 2022 14:52:08 +0000 (0:00:00.457) 0:00:29.149 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663126.6944876, "block_size": 4096, "blocks": 0, "ctime": 1653663126.6944876, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22710, "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": 1653663126.6944876, "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 interface nm-bond is present] ******************************** Friday 27 May 2022 14:52:08 +0000 (0:00:00.330) 0:00:29.480 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 14:52:08 +0000 (0:00:00.082) 0:00:29.562 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 14:52:08 +0000 (0:00:00.168) 0:00:29.730 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 14:52:08 +0000 (0:00:00.133) 0:00:29.864 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 14:52:08 +0000 (0:00:00.080) 0:00:29.945 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663126.6657596, "block_size": 4096, "blocks": 8, "ctime": 1653663126.6657596, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566165, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653663126.6657596, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 634, "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] ******************** Friday 27 May 2022 14:52:09 +0000 (0:00:00.301) 0:00:30.246 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 14:52:09 +0000 (0:00:00.082) 0:00:30.329 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.033443", "end": "2022-05-27 14:52:09.079859", "rc": 0, "start": "2022-05-27 14:52:09.046416" } 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] *** Friday 27 May 2022 14:52:09 +0000 (0:00:00.344) 0:00:30.674 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-bond0] ************************** Friday 27 May 2022 14:52:09 +0000 (0:00:00.105) 0:00:30.779 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 27 May 2022 14:52:09 +0000 (0:00:00.081) 0:00:30.861 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 27 May 2022 14:52:09 +0000 (0:00:00.125) 0:00:30.986 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 27 May 2022 14:52:10 +0000 (0:00:00.079) 0:00:31.066 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Friday 27 May 2022 14:52:10 +0000 (0:00:00.076) 0:00:31.143 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 14:52:10 +0000 (0:00:00.134) 0:00:31.278 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 14:52:10 +0000 (0:00:00.073) 0:00:31.351 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663126.7377589, "block_size": 4096, "blocks": 8, "ctime": 1653663126.7377589, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566173, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653663126.7377589, "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] ******************** Friday 27 May 2022 14:52:10 +0000 (0:00:00.396) 0:00:31.747 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 14:52:10 +0000 (0:00:00.083) 0:00:31.831 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.033250", "end": "2022-05-27 14:52:10.800343", "rc": 0, "start": "2022-05-27 14:52:10.767093" } 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] *** Friday 27 May 2022 14:52:11 +0000 (0:00:00.556) 0:00:32.387 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-bond0.0] ************************ Friday 27 May 2022 14:52:11 +0000 (0:00:00.086) 0:00:32.473 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 27 May 2022 14:52:11 +0000 (0:00:00.083) 0:00:32.556 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 27 May 2022 14:52:11 +0000 (0:00:00.086) 0:00:32.643 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 27 May 2022 14:52:11 +0000 (0:00:00.085) 0:00:32.728 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Friday 27 May 2022 14:52:11 +0000 (0:00:00.083) 0:00:32.812 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 14:52:11 +0000 (0:00:00.188) 0:00:33.000 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 14:52:12 +0000 (0:00:00.081) 0:00:33.082 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663126.7667584, "block_size": 4096, "blocks": 8, "ctime": 1653663126.7667584, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566174, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653663126.7667584, "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] ******************** Friday 27 May 2022 14:52:12 +0000 (0:00:00.309) 0:00:33.391 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 14:52:12 +0000 (0:00:00.080) 0:00:33.471 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.033718", "end": "2022-05-27 14:52:12.222501", "rc": 0, "start": "2022-05-27 14:52:12.188783" } 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] *** Friday 27 May 2022 14:52:12 +0000 (0:00:00.335) 0:00:33.807 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-bond0.1] ************************ Friday 27 May 2022 14:52:12 +0000 (0:00:00.086) 0:00:33.893 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 27 May 2022 14:52:12 +0000 (0:00:00.088) 0:00:33.982 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 27 May 2022 14:52:13 +0000 (0:00:00.087) 0:00:34.069 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 27 May 2022 14:52:13 +0000 (0:00:00.085) 0:00:34.155 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check bond settings] ********************************************* Friday 27 May 2022 14:52:13 +0000 (0:00:00.092) 0:00:34.247 ************ changed: [sut] => (item={'key': 'mode', 'value': '802.3ad'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/mode" ], "delta": "0:00:01.004727", "end": "2022-05-27 14:52:13.978153", "item": { "key": "mode", "value": "802.3ad" }, "rc": 0, "start": "2022-05-27 14:52:12.973426" } STDOUT: 802.3ad 4 changed: [sut] => (item={'key': 'ad_actor_sys_prio', 'value': '65535'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_actor_sys_prio" ], "delta": "0:00:00.003483", "end": "2022-05-27 14:52:14.220572", "item": { "key": "ad_actor_sys_prio", "value": "65535" }, "rc": 0, "start": "2022-05-27 14:52:14.217089" } STDOUT: 65535 changed: [sut] => (item={'key': 'ad_actor_system', 'value': '00:00:5e:00:53:5d'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_actor_system" ], "delta": "0:00:00.003624", "end": "2022-05-27 14:52:14.471095", "item": { "key": "ad_actor_system", "value": "00:00:5e:00:53:5d" }, "rc": 0, "start": "2022-05-27 14:52:14.467471" } STDOUT: 00:00:5e:00:53:5d changed: [sut] => (item={'key': 'ad_select', 'value': 'stable'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_select" ], "delta": "0:00:01.004589", "end": "2022-05-27 14:52:15.711970", "item": { "key": "ad_select", "value": "stable" }, "rc": 0, "start": "2022-05-27 14:52:14.707381" } STDOUT: stable 0 changed: [sut] => (item={'key': 'ad_user_port_key', 'value': '1023'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/ad_user_port_key" ], "delta": "0:00:00.003416", "end": "2022-05-27 14:52:15.952097", "item": { "key": "ad_user_port_key", "value": "1023" }, "rc": 0, "start": "2022-05-27 14:52:15.948681" } STDOUT: 1023 changed: [sut] => (item={'key': 'all_slaves_active', 'value': '1'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/all_slaves_active" ], "delta": "0:00:00.003330", "end": "2022-05-27 14:52:16.188824", "item": { "key": "all_slaves_active", "value": "1" }, "rc": 0, "start": "2022-05-27 14:52:16.185494" } STDOUT: 1 changed: [sut] => (item={'key': 'arp_all_targets', 'value': 'all'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_all_targets" ], "delta": "0:00:00.003293", "end": "2022-05-27 14:52:16.431188", "item": { "key": "arp_all_targets", "value": "all" }, "rc": 0, "start": "2022-05-27 14:52:16.427895" } STDOUT: all 1 changed: [sut] => (item={'key': 'downdelay', 'value': '0'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/downdelay" ], "delta": "0:00:00.003377", "end": "2022-05-27 14:52:16.678427", "item": { "key": "downdelay", "value": "0" }, "rc": 0, "start": "2022-05-27 14:52:16.675050" } STDOUT: 0 changed: [sut] => (item={'key': 'lacp_rate', 'value': 'slow'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/lacp_rate" ], "delta": "0:00:00.003504", "end": "2022-05-27 14:52:16.920404", "item": { "key": "lacp_rate", "value": "slow" }, "rc": 0, "start": "2022-05-27 14:52:16.916900" } STDOUT: slow 0 changed: [sut] => (item={'key': 'lp_interval', 'value': '128'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/lp_interval" ], "delta": "0:00:00.003477", "end": "2022-05-27 14:52:17.159069", "item": { "key": "lp_interval", "value": "128" }, "rc": 0, "start": "2022-05-27 14:52:17.155592" } STDOUT: 128 changed: [sut] => (item={'key': 'miimon', 'value': '110'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/miimon" ], "delta": "0:00:00.003324", "end": "2022-05-27 14:52:17.397366", "item": { "key": "miimon", "value": "110" }, "rc": 0, "start": "2022-05-27 14:52:17.394042" } STDOUT: 110 changed: [sut] => (item={'key': 'num_grat_arp', 'value': '64'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/num_grat_arp" ], "delta": "0:00:01.004614", "end": "2022-05-27 14:52:18.635209", "item": { "key": "num_grat_arp", "value": "64" }, "rc": 0, "start": "2022-05-27 14:52:17.630595" } STDOUT: 64 changed: [sut] => (item={'key': 'resend_igmp', 'value': '225'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/resend_igmp" ], "delta": "0:00:00.003420", "end": "2022-05-27 14:52:18.879300", "item": { "key": "resend_igmp", "value": "225" }, "rc": 0, "start": "2022-05-27 14:52:18.875880" } STDOUT: 225 changed: [sut] => (item={'key': 'updelay', 'value': '0'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/updelay" ], "delta": "0:00:00.003478", "end": "2022-05-27 14:52:19.119688", "item": { "key": "updelay", "value": "0" }, "rc": 0, "start": "2022-05-27 14:52:19.116210" } STDOUT: 0 changed: [sut] => (item={'key': 'use_carrier', 'value': '1'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/use_carrier" ], "delta": "0:00:00.003537", "end": "2022-05-27 14:52:19.365321", "item": { "key": "use_carrier", "value": "1" }, "rc": 0, "start": "2022-05-27 14:52:19.361784" } STDOUT: 1 changed: [sut] => (item={'key': 'xmit_hash_policy', 'value': 'encap2+3'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/xmit_hash_policy" ], "delta": "0:00:00.003440", "end": "2022-05-27 14:52:19.606405", "item": { "key": "xmit_hash_policy", "value": "encap2+3" }, "rc": 0, "start": "2022-05-27 14:52:19.602965" } STDOUT: encap2+3 3 TASK [** TEST check IPv4] ****************************************************** Friday 27 May 2022 14:52:20 +0000 (0:00:06.963) 0:00:41.211 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004287", "end": "2022-05-27 14:52:19.936195", "rc": 0, "start": "2022-05-27 14:52:19.931908" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.41/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 231sec preferred_lft 231sec TASK [** TEST check IPv6] ****************************************************** Friday 27 May 2022 14:52:20 +0000 (0:00:00.320) 0:00:41.532 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004377", "end": "2022-05-27 14:52:20.255356", "rc": 0, "start": "2022-05-27 14:52:20.250979" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::177/128 scope global dynamic noprefixroute valid_lft 230sec preferred_lft 230sec inet6 2001:db8::341b:4e6b:6e5d:d86c/64 scope global dynamic noprefixroute valid_lft 1789sec preferred_lft 1789sec inet6 fe80::e9ef:1a10:fe9e:2d4b/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 14:52:20 +0000 (0:00:00.319) 0:00:41.851 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 27 May 2022 14:52:20 +0000 (0:00:00.140) 0:00:41.991 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 14:52:21 +0000 (0:00:00.499) 0:00:42.490 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 27 May 2022 14:52:23 +0000 (0:00:02.080) 0:00:44.571 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 27 May 2022 14:52:25 +0000 (0:00:01.486) 0:00:46.057 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 14:52:25 +0000 (0:00:00.083) 0:00:46.141 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 14:52:25 +0000 (0:00:00.187) 0:00:46.329 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 14:52:25 +0000 (0:00:00.092) 0:00:46.421 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 14:52:25 +0000 (0:00:00.508) 0:00:46.930 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 14:52:26 +0000 (0:00:00.092) 0:00:47.022 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 14:52:26 +0000 (0:00:00.072) 0:00:47.094 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 14:52:26 +0000 (0:00:00.074) 0:00:47.169 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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", "name": "bond0", "state": "up", "type": "bond" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'bond0': update connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f [004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified) [005] #0, state:up persistent_state:present, 'bond0': connection reapply failed: failure to reapply checkpoint: nm-device-error-quark: Can't reapply 'mode' bond option (3): {'error': "nm-device-error-quark: Can't reapply 'mode' bond option (3)", 'success': None} TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 14:52:26 +0000 (0:00:00.703) 0:00:47.873 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'bond0': update connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f", "[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified)", "[005] #0, state:up persistent_state:present, 'bond0': connection reapply failed: failure to reapply checkpoint: nm-device-error-quark: Can't reapply 'mode' bond option (3): {'error': \"nm-device-error-quark: Can't reapply 'mode' bond option (3)\", 'success': None}" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 14:52:26 +0000 (0:00:00.081) 0:00:47.954 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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", "name": "bond0", "state": "up", "type": "bond" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'bond0': update connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f\n[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified)\n[005] #0, state:up persistent_state:present, 'bond0': connection reapply failed: failure to reapply checkpoint: nm-device-error-quark: Can't reapply 'mode' bond option (3): {'error': \"nm-device-error-quark: Can't reapply 'mode' bond option (3)\", 'success': None}\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'bond0': update connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f", "[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6467f3d0-0138-4a0e-b9d0-4823f65d167f (is-modified)", "[005] #0, state:up persistent_state:present, 'bond0': connection reapply failed: failure to reapply checkpoint: nm-device-error-quark: Can't reapply 'mode' bond option (3): {'error': \"nm-device-error-quark: Can't reapply 'mode' bond option (3)\", 'success': None}" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 14:52:27 +0000 (0:00:00.082) 0:00:48.036 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [** TEST check bond settings] ********************************************* Friday 27 May 2022 14:52:27 +0000 (0:00:00.296) 0:00:48.333 ************ changed: [sut] => (item={'key': 'mode', 'value': 'active-backup'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/mode" ], "delta": "0:00:01.004965", "end": "2022-05-27 14:52:28.059080", "item": { "key": "mode", "value": "active-backup" }, "rc": 0, "start": "2022-05-27 14:52:27.054115" } STDOUT: active-backup 1 changed: [sut] => (item={'key': 'arp_interval', 'value': '60'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_interval" ], "delta": "0:00:00.004720", "end": "2022-05-27 14:52:28.337856", "item": { "key": "arp_interval", "value": "60" }, "rc": 0, "start": "2022-05-27 14:52:28.333136" } STDOUT: 60 changed: [sut] => (item={'key': 'arp_ip_target', 'value': '192.0.2.128'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_ip_target" ], "delta": "0:00:01.004443", "end": "2022-05-27 14:52:29.583224", "item": { "key": "arp_ip_target", "value": "192.0.2.128" }, "rc": 0, "start": "2022-05-27 14:52:28.578781" } STDOUT: 192.0.2.128 changed: [sut] => (item={'key': 'arp_validate', 'value': 'none'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/arp_validate" ], "delta": "0:00:00.003308", "end": "2022-05-27 14:52:29.824272", "item": { "key": "arp_validate", "value": "none" }, "rc": 0, "start": "2022-05-27 14:52:29.820964" } STDOUT: none 0 changed: [sut] => (item={'key': 'primary', 'value': 'test1'}) => { "ansible_loop_var": "item", "attempts": 1, "changed": true, "cmd": [ "cat", "/sys/class/net/nm-bond/bonding/primary" ], "delta": "0:00:00.003349", "end": "2022-05-27 14:52:30.061864", "item": { "key": "primary", "value": "test1" }, "rc": 0, "start": "2022-05-27 14:52:30.058515" } STDOUT: test1 TASK [** TEST check IPv4] ****************************************************** Friday 27 May 2022 14:52:30 +0000 (0:00:03.323) 0:00:51.656 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004366", "end": "2022-05-27 14:52:30.378234", "rc": 0, "start": "2022-05-27 14:52:30.373868" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.41/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 238sec preferred_lft 238sec TASK [** TEST check IPv6] ****************************************************** Friday 27 May 2022 14:52:30 +0000 (0:00:00.309) 0:00:51.965 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004057", "end": "2022-05-27 14:52:30.690118", "rc": 0, "start": "2022-05-27 14:52:30.686061" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::177/128 scope global dynamic noprefixroute valid_lft 238sec preferred_lft 238sec inet6 2001:db8::341b:4e6b:6e5d:d86c/64 scope global dynamic noprefixroute valid_lft 1799sec preferred_lft 1799sec inet6 fe80::e9ef:1a10:fe9e:2d4b/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 14:52:31 +0000 (0:00:00.316) 0:00:52.282 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 27 May 2022 14:52:31 +0000 (0:00:00.145) 0:00:52.427 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 14:52:31 +0000 (0:00:00.487) 0:00:52.915 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 27 May 2022 14:52:33 +0000 (0:00:02.031) 0:00:54.946 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 27 May 2022 14:52:35 +0000 (0:00:01.562) 0:00:56.508 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 14:52:35 +0000 (0:00:00.089) 0:00:56.597 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 14:52:35 +0000 (0:00:00.143) 0:00:56.741 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 14:52:35 +0000 (0:00:00.134) 0:00:56.875 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 14:52:36 +0000 (0:00:00.522) 0:00:57.398 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 14:52:36 +0000 (0:00:00.090) 0:00:57.489 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 14:52:36 +0000 (0:00:00.081) 0:00:57.570 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 14:52:36 +0000 (0:00:00.077) 0:00:57.647 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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 [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 14:52:37 +0000 (0:00:00.940) 0:00:58.588 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 14:52:37 +0000 (0:00:00.085) 0:00:58.673 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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 [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 14:52:37 +0000 (0:00:00.082) 0:00:58.756 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 27 May 2022 14:52:38 +0000 (0:00:00.300) 0:00:59.056 ************ fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.008743", "end": "2022-05-27 14:52:37.785601", "rc": 1, "start": "2022-05-27 14:52:37.776858" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 27 May 2022 14:52:38 +0000 (0:00:00.315) 0:00:59.371 ************ ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.061088", "end": "2022-05-27 14:52:38.165100", "rc": 0, "start": "2022-05-27 14:52:38.104012" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 27 May 2022 14:52:38 +0000 (0:00:00.432) 0:00:59.804 ************ ok: [sut] => { "changed": false, "cmd": "pkill -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\n\nfi\n", "delta": "0:00:00.020638", "end": "2022-05-27 14:52:38.544541", "rc": 0, "start": "2022-05-27 14:52:38.523903" } PLAY RECAP ********************************************************************* sut : ok=84 changed=13 unreachable=0 failed=0 skipped=25 rescued=0 ignored=1 Friday 27 May 2022 14:52:39 +0000 (0:00:00.274) 0:01:00.078 ************ =============================================================================== Install dnsmasq -------------------------------------------------------- 11.40s ** TEST check bond settings --------------------------------------------- 6.96s ** TEST check bond settings --------------------------------------------- 3.32s Create EPEL 8 ----------------------------------------------------------- 2.96s linux-system-roles.network : Check which services are running ----------- 2.19s linux-system-roles.network : Check which services are running ----------- 2.08s linux-system-roles.network : Check which services are running ----------- 2.03s Create test interfaces -------------------------------------------------- 1.88s Install pgrep, sysctl --------------------------------------------------- 1.87s linux-system-roles.network : Check which packages are installed --------- 1.84s linux-system-roles.network : Check which packages are installed --------- 1.56s linux-system-roles.network : Check which packages are installed --------- 1.49s linux-system-roles.network : Configure networking connection profiles --- 1.01s linux-system-roles.network : Configure networking connection profiles --- 0.94s Gathering Facts --------------------------------------------------------- 0.87s Enable EPEL 8 ----------------------------------------------------------- 0.82s linux-system-roles.network : Enable and start NetworkManager ------------ 0.79s linux-system-roles.network : Configure networking connection profiles --- 0.70s Gathering Facts --------------------------------------------------------- 0.63s Get NM profile info ----------------------------------------------------- 0.56s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ item.value }}' in result.stdout [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: '{{ item.value }}' in result.stdout ---^---^---^---^---^---