# 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 05 August 2022 17:02:33 +0000 (0:00:00.742) 0:00:00.742 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:02:44 +0000 (0:00:10.988) 0:00:11.731 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 17:02:45 +0000 (0:00:01.201) 0:00:12.933 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:02:46 +0000 (0:00:00.902) 0:00:13.836 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 17:02:47 +0000 (0:00:01.012) 0:00:14.849 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 17:02:48 +0000 (0:00:00.601) 0:00:15.450 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 17:02:49 +0000 (0:00:00.644) 0:00:16.095 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 17:02:50 +0000 (0:00:01.264) 0:00:17.359 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 17:02:51 +0000 (0:00:00.712) 0:00:18.072 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:02:53 +0000 (0:00:02.615) 0:00:20.687 ********* ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 05 August 2022 17:02:58 +0000 (0:00:04.556) 0:00:25.244 ********* ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 05 August 2022 17:02:59 +0000 (0:00:01.256) 0:00:26.501 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.85-4.el9.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 17:03:07 +0000 (0:00:08.429) 0:00:34.930 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 17:03:09 +0000 (0:00:01.353) 0:00:36.353 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 05 August 2022 17:03:14 +0000 (0:00:04.773) 0:00:41.127 ********* 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.518603", "end": "2022-08-05 17:03:21.957553", "rc": 0, "start": "2022-08-05 17:03:20.438950" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:03:22 +0000 (0:00:08.157) 0:00:49.284 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test1] ******************************************** Friday 05 August 2022 17:03:23 +0000 (0:00:01.650) 0:00:50.934 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659719000.5027719, "block_size": 4096, "blocks": 0, "ctime": 1659719000.5027719, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22436, "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": 1659719000.5027719, "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 05 August 2022 17:03:30 +0000 (0:00:06.446) 0:00:57.381 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:03:32 +0000 (0:00:02.015) 0:00:59.602 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test2] ******************************************** Friday 05 August 2022 17:03:34 +0000 (0:00:01.883) 0:01:01.486 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659719000.5144484, "block_size": 4096, "blocks": 0, "ctime": 1659719000.5144484, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23022, "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": 1659719000.5144484, "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 05 August 2022 17:03:37 +0000 (0:00:02.649) 0:01:04.135 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST Add Bond with 2 ports] ********************************************** Friday 05 August 2022 17:03:38 +0000 (0:00:01.270) 0:01:05.406 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:03:39 +0000 (0:00:01.393) 0:01:06.800 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 17:03:41 +0000 (0:00:01.226) 0:01:08.027 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 17:03:46 +0000 (0:00:05.065) 0:01:13.092 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 17:03:53 +0000 (0:00:07.111) 0:01:20.203 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 17:04:06 +0000 (0:00:13.560) 0:01:33.764 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 17:04:08 +0000 (0:00:02.093) 0:01:35.857 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 17:04:10 +0000 (0:00:01.194) 0:01:37.051 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:04:10 +0000 (0:00:00.882) 0:01:37.934 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 17:04:14 +0000 (0:00:03.831) 0:01:41.766 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 17:04:17 +0000 (0:00:02.394) 0:01:44.160 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 17:04:19 +0000 (0:00:02.358) 0:01:46.518 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:04:22 +0000 (0:00:02.868) 0:01:49.387 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 17:04:31 +0000 (0:00:09.407) 0:01:58.795 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:04:33 +0000 (0:00:01.846) 0:02:00.641 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 17:04:34 +0000 (0:00:00.575) 0:02:01.216 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:04:34 +0000 (0:00:00.689) 0:02:01.906 ********* 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, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 17:04:47 +0000 (0:00:13.019) 0:02:14.926 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 17:04:49 +0000 (0:00:01.432) 0:02:16.358 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 17:04:50 +0000 (0:00:01.055) 0:02:17.414 ********* 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, 6b6cedc6-4697-4a88-8ed4-8340b31d2603\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8eb5a1cb-cd12-477b-8e3b-54c7236be073 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, ffb3b8e8-a87e-4b8b-adf9-7412c47ee197 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 17:04:52 +0000 (0:00:01.904) 0:02:19.319 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:04:53 +0000 (0:00:01.264) 0:02:20.583 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:00 +0000 (0:00:07.347) 0:02:27.930 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface nm-bond] ****************************************** Friday 05 August 2022 17:05:03 +0000 (0:00:02.062) 0:02:29.993 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659719086.7321432, "block_size": 4096, "blocks": 0, "ctime": 1659719086.7321432, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23711, "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": 1659719086.7321432, "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 05 August 2022 17:05:04 +0000 (0:00:01.931) 0:02:31.925 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:06 +0000 (0:00:01.383) 0:02:33.308 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0) included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0.0) included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0.1) TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:07 +0000 (0:00:01.040) 0:02:34.349 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:05:07 +0000 (0:00:00.288) 0:02:34.637 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 17:05:07 +0000 (0:00:00.303) 0:02:34.941 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:05:08 +0000 (0:00:00.516) 0:02:35.458 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:05:08 +0000 (0:00:00.129) 0:02:35.588 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.032449", "end": "2022-08-05 17:05:09.015002", "rc": 0, "start": "2022-08-05 17:05:08.982553" } STDOUT: bond0 /etc/NetworkManager/system-connections/bond0.nmconnection bond0.0 /etc/NetworkManager/system-connections/bond0.0.nmconnection bond0.1 /etc/NetworkManager/system-connections/bond0.1.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 17:05:09 +0000 (0:00:00.535) 0:02:36.123 ********* 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 05 August 2022 17:05:09 +0000 (0:00:00.304) 0:02:36.428 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 05 August 2022 17:05:09 +0000 (0:00:00.342) 0:02:36.771 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 05 August 2022 17:05:09 +0000 (0:00:00.187) 0:02:36.958 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 05 August 2022 17:05:10 +0000 (0:00:00.197) 0:02:37.156 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:10 +0000 (0:00:00.210) 0:02:37.366 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:05:10 +0000 (0:00:00.140) 0:02:37.507 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 17:05:10 +0000 (0:00:00.144) 0:02:37.651 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:05:11 +0000 (0:00:00.495) 0:02:38.147 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:05:11 +0000 (0:00:00.194) 0:02:38.342 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.029846", "end": "2022-08-05 17:05:11.843836", "rc": 0, "start": "2022-08-05 17:05:11.813990" } STDOUT: bond0.0 /etc/NetworkManager/system-connections/bond0.0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 17:05:11 +0000 (0:00:00.559) 0:02:38.901 ********* 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 05 August 2022 17:05:12 +0000 (0:00:00.277) 0:02:39.179 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 05 August 2022 17:05:12 +0000 (0:00:00.186) 0:02:39.365 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 05 August 2022 17:05:12 +0000 (0:00:00.160) 0:02:39.525 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 05 August 2022 17:05:12 +0000 (0:00:00.244) 0:02:39.770 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:05:13 +0000 (0:00:00.309) 0:02:40.080 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:05:13 +0000 (0:00:00.273) 0:02:40.353 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 17:05:13 +0000 (0:00:00.258) 0:02:40.612 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:05:14 +0000 (0:00:00.470) 0:02:41.082 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:05:14 +0000 (0:00:00.147) 0:02:41.229 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.029231", "end": "2022-08-05 17:05:14.637890", "rc": 0, "start": "2022-08-05 17:05:14.608659" } STDOUT: bond0.1 /etc/NetworkManager/system-connections/bond0.1.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 17:05:14 +0000 (0:00:00.470) 0:02:41.700 ********* 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 05 August 2022 17:05:14 +0000 (0:00:00.153) 0:02:41.853 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 05 August 2022 17:05:15 +0000 (0:00:00.136) 0:02:41.989 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 05 August 2022 17:05:15 +0000 (0:00:00.144) 0:02:42.133 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 05 August 2022 17:05:15 +0000 (0:00:00.204) 0:02:42.338 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check bond settings] ********************************************* Friday 05 August 2022 17:05:15 +0000 (0:00:00.287) 0:02:42.625 ********* 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:00.004095", "end": "2022-08-05 17:05:15.953127", "item": { "key": "mode", "value": "802.3ad" }, "rc": 0, "start": "2022-08-05 17:05:15.949032" } 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.004019", "end": "2022-08-05 17:05:16.294827", "item": { "key": "ad_actor_sys_prio", "value": "65535" }, "rc": 0, "start": "2022-08-05 17:05:16.290808" } 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.003979", "end": "2022-08-05 17:05:16.620175", "item": { "key": "ad_actor_system", "value": "00:00:5e:00:53:5d" }, "rc": 0, "start": "2022-08-05 17:05:16.616196" } 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:00.004132", "end": "2022-08-05 17:05:16.884476", "item": { "key": "ad_select", "value": "stable" }, "rc": 0, "start": "2022-08-05 17:05:16.880344" } 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.004021", "end": "2022-08-05 17:05:17.165313", "item": { "key": "ad_user_port_key", "value": "1023" }, "rc": 0, "start": "2022-08-05 17:05:17.161292" } 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.003939", "end": "2022-08-05 17:05:17.451459", "item": { "key": "all_slaves_active", "value": "1" }, "rc": 0, "start": "2022-08-05 17:05:17.447520" } 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.004067", "end": "2022-08-05 17:05:17.809564", "item": { "key": "arp_all_targets", "value": "all" }, "rc": 0, "start": "2022-08-05 17:05:17.805497" } 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.004125", "end": "2022-08-05 17:05:18.089375", "item": { "key": "downdelay", "value": "0" }, "rc": 0, "start": "2022-08-05 17:05:18.085250" } 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.003991", "end": "2022-08-05 17:05:18.365335", "item": { "key": "lacp_rate", "value": "slow" }, "rc": 0, "start": "2022-08-05 17:05:18.361344" } 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.003766", "end": "2022-08-05 17:05:18.654228", "item": { "key": "lp_interval", "value": "128" }, "rc": 0, "start": "2022-08-05 17:05:18.650462" } 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.003941", "end": "2022-08-05 17:05:18.951988", "item": { "key": "miimon", "value": "110" }, "rc": 0, "start": "2022-08-05 17:05:18.948047" } 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:00.004024", "end": "2022-08-05 17:05:19.210980", "item": { "key": "num_grat_arp", "value": "64" }, "rc": 0, "start": "2022-08-05 17:05:19.206956" } 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.004123", "end": "2022-08-05 17:05:19.520602", "item": { "key": "resend_igmp", "value": "225" }, "rc": 0, "start": "2022-08-05 17:05:19.516479" } 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.003972", "end": "2022-08-05 17:05:19.832761", "item": { "key": "updelay", "value": "0" }, "rc": 0, "start": "2022-08-05 17:05:19.828789" } 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.003962", "end": "2022-08-05 17:05:20.136520", "item": { "key": "use_carrier", "value": "1" }, "rc": 0, "start": "2022-08-05 17:05:20.132558" } 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.004093", "end": "2022-08-05 17:05:20.440522", "item": { "key": "xmit_hash_policy", "value": "encap2+3" }, "rc": 0, "start": "2022-08-05 17:05:20.436429" } STDOUT: encap2+3 3 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 17:05:20 +0000 (0:00:04.906) 0:02:47.541 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004584", "end": "2022-08-05 17:05:21.053747", "rc": 0, "start": "2022-08-05 17:05:21.049163" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.100/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 208sec preferred_lft 208sec TASK [** TEST check IPv6] ****************************************************** Friday 05 August 2022 17:05:21 +0000 (0:00:00.672) 0:02:48.214 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004480", "end": "2022-08-05 17:05:21.537218", "rc": 0, "start": "2022-08-05 17:05:21.532738" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::94/128 scope global dynamic noprefixroute valid_lft 209sec preferred_lft 209sec inet6 2001:db8::99ec:3b8b:f30f:dc07/64 scope global dynamic noprefixroute valid_lft 1768sec preferred_lft 1768sec inet6 fe80::e573:8cb:1fb5:3324/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:05:21 +0000 (0:00:00.355) 0:02:48.570 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 17:05:21 +0000 (0:00:00.161) 0:02:48.731 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 17:05:22 +0000 (0:00:00.564) 0:02:49.296 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 17:05:24 +0000 (0:00:02.073) 0:02:51.370 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 17:05:25 +0000 (0:00:00.978) 0:02:52.348 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 17:05:25 +0000 (0:00:00.138) 0:02:52.487 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 17:05:25 +0000 (0:00:00.105) 0:02:52.592 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:05:25 +0000 (0:00:00.134) 0:02:52.727 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 17:05:26 +0000 (0:00:00.247) 0:02:52.975 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 17:05:26 +0000 (0:00:00.126) 0:02:53.101 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 17:05:26 +0000 (0:00:00.078) 0:02:53.179 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:05:26 +0000 (0:00:00.117) 0:02:53.297 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 17:05:26 +0000 (0:00:00.622) 0:02:53.919 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:05:27 +0000 (0:00:00.116) 0:02:54.036 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 17:05:27 +0000 (0:00:00.111) 0:02:54.148 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:05:27 +0000 (0:00:00.114) 0:02:54.262 ********* 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, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 [004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (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 : Configure networking state] ***************** Friday 05 August 2022 17:05:28 +0000 (0:00:01.082) 0:02:55.345 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 17:05:28 +0000 (0:00:00.121) 0:02:55.467 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'bond0': update connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603", "[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (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 for the network_connections] *** Friday 05 August 2022 17:05:28 +0000 (0:00:00.110) 0:02:55.578 ********* 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, 6b6cedc6-4697-4a88-8ed4-8340b31d2603\n[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (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, 6b6cedc6-4697-4a88-8ed4-8340b31d2603", "[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, 6b6cedc6-4697-4a88-8ed4-8340b31d2603 (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 for the network_state] *** Friday 05 August 2022 17:05:28 +0000 (0:00:00.127) 0:02:55.705 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:05:28 +0000 (0:00:00.108) 0:02:55.813 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [** TEST check bond settings] ********************************************* Friday 05 August 2022 17:05:29 +0000 (0:00:00.399) 0:02:56.213 ********* 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:00.004039", "end": "2022-08-05 17:05:29.599891", "item": { "key": "mode", "value": "active-backup" }, "rc": 0, "start": "2022-08-05 17:05:29.595852" } 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.003964", "end": "2022-08-05 17:05:29.872832", "item": { "key": "arp_interval", "value": "60" }, "rc": 0, "start": "2022-08-05 17:05:29.868868" } 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:00.003901", "end": "2022-08-05 17:05:30.159340", "item": { "key": "arp_ip_target", "value": "192.0.2.128" }, "rc": 0, "start": "2022-08-05 17:05:30.155439" } 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.004005", "end": "2022-08-05 17:05:30.456019", "item": { "key": "arp_validate", "value": "none" }, "rc": 0, "start": "2022-08-05 17:05:30.452014" } 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.003908", "end": "2022-08-05 17:05:30.733565", "item": { "key": "primary", "value": "test1" }, "rc": 0, "start": "2022-08-05 17:05:30.729657" } STDOUT: test1 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 17:05:30 +0000 (0:00:01.555) 0:02:57.769 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004462", "end": "2022-08-05 17:05:31.063497", "rc": 0, "start": "2022-08-05 17:05:31.059035" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.100/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 238sec preferred_lft 238sec TASK [** TEST check IPv6] ****************************************************** Friday 05 August 2022 17:05:31 +0000 (0:00:00.337) 0:02:58.107 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004370", "end": "2022-08-05 17:05:31.425904", "rc": 0, "start": "2022-08-05 17:05:31.421534" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::94/128 scope global tentative dynamic noprefixroute valid_lft 239sec preferred_lft 239sec inet6 2001:db8::99ec:3b8b:f30f:dc07/64 scope global tentative dynamic noprefixroute valid_lft 1800sec preferred_lft 1800sec inet6 fe80::e573:8cb:1fb5:3324/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:05:31 +0000 (0:00:00.353) 0:02:58.460 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 17:05:31 +0000 (0:00:00.153) 0:02:58.614 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 17:05:32 +0000 (0:00:00.720) 0:02:59.335 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 17:05:34 +0000 (0:00:02.124) 0:03:01.459 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 17:05:35 +0000 (0:00:01.018) 0:03:02.477 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 17:05:35 +0000 (0:00:00.370) 0:03:02.848 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 17:05:36 +0000 (0:00:00.172) 0:03:03.021 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:05:36 +0000 (0:00:00.133) 0:03:03.154 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 17:05:36 +0000 (0:00:00.246) 0:03:03.401 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 17:05:36 +0000 (0:00:00.160) 0:03:03.561 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 17:05:36 +0000 (0:00:00.165) 0:03:03.727 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:05:36 +0000 (0:00:00.176) 0:03:03.903 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 17:05:38 +0000 (0:00:01.433) 0:03:05.336 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:05:38 +0000 (0:00:00.534) 0:03:05.871 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 17:05:39 +0000 (0:00:00.471) 0:03:06.343 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:05:39 +0000 (0:00:00.346) 0:03:06.689 ********* 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 : Configure networking state] ***************** Friday 05 August 2022 17:05:41 +0000 (0:00:02.021) 0:03:08.711 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 17:05:42 +0000 (0:00:00.547) 0:03:09.258 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 17:05:42 +0000 (0:00:00.622) 0:03:09.881 ********* 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 : Show debug messages for the network_state] *** Friday 05 August 2022 17:05:44 +0000 (0:00:01.450) 0:03:11.331 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:05:44 +0000 (0:00:00.436) 0:03:11.768 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 05 August 2022 17:05:45 +0000 (0:00:00.940) 0:03:12.709 ********* fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.008231", "end": "2022-08-05 17:05:46.598283", "rc": 1, "start": "2022-08-05 17:05:46.590052" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 05 August 2022 17:05:46 +0000 (0:00:01.149) 0:03:13.858 ********* ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.081521", "end": "2022-08-05 17:05:47.784167", "rc": 0, "start": "2022-08-05 17:05:47.702646" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 05 August 2022 17:05:48 +0000 (0:00:01.249) 0:03:15.108 ********* 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.047552", "end": "2022-08-05 17:05:48.857168", "rc": 0, "start": "2022-08-05 17:05:48.809616" } PLAY RECAP ********************************************************************* sut : ok=82 changed=11 unreachable=0 failed=0 skipped=48 rescued=0 ignored=1 Friday 05 August 2022 17:05:49 +0000 (0:00:01.205) 0:03:16.314 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 13.56s linux-system-roles.network : Configure networking connection profiles -- 13.02s Gathering Facts -------------------------------------------------------- 10.99s linux-system-roles.network : Enable and start NetworkManager ------------ 9.41s Install dnsmasq --------------------------------------------------------- 8.50s Create test interfaces -------------------------------------------------- 8.16s linux-system-roles.network : Re-test connectivity ----------------------- 7.35s linux-system-roles.network : Check which services are running ----------- 7.09s Get stat for interface test1 -------------------------------------------- 6.45s linux-system-roles.network : Ensure ansible_facts used by role are present --- 5.07s ** TEST check bond settings --------------------------------------------- 4.92s Install pgrep, sysctl --------------------------------------------------- 4.77s Gathering Facts --------------------------------------------------------- 4.56s linux-system-roles.network : Install packages --------------------------- 3.83s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 2.87s Get stat for interface test2 -------------------------------------------- 2.65s Set network provider to 'nm' -------------------------------------------- 2.62s linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable --- 2.49s linux-system-roles.network : Install python3-libnmstate when using network_state variable --- 2.27s assert that interface test1 is present ---------------------------------- 2.22s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [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 ---^---^---^---^---^---