# 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 14:13:55 +0000 (0:00:00.154) 0:00:00.154 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:14:00 +0000 (0:00:04.783) 0:00:04.937 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 14:14:00 +0000 (0:00:00.562) 0:00:05.500 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:14:01 +0000 (0:00:00.405) 0:00:05.906 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 14:14:02 +0000 (0:00:00.903) 0:00:06.809 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.378409", "end": "2022-08-05 14:14:07.234894", "rc": 0, "start": "2022-08-05 14:14:04.856485" } STDOUT: Last metadata expiration check: 0:01:00 ago on Fri Aug 5 14:13:05 2022. epel-release-latest-8.noarch.rpm 572 kB/s | 24 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-16.el8 @commandline 24 k Transaction Summary ================================================================================ Install 1 Package Total size: 24 k Installed size: 34 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-16.el8.noarch 1/1 Running scriptlet: epel-release-8-16.el8.noarch 1/1 Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository. Verifying : epel-release-8-16.el8.noarch 1/1 Installed: epel-release-8-16.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 14:14:07 +0000 (0:00:05.196) 0:00:12.006 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 14:14:07 +0000 (0:00:00.541) 0:00:12.548 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.563766", "end": "2022-08-05 14:14:09.264879", "rc": 0, "start": "2022-08-05 14:14:08.701113" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 14:14:09 +0000 (0:00:01.427) 0:00:13.975 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 14:14:09 +0000 (0:00:00.522) 0:00:14.497 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 14:14:10 +0000 (0:00:00.895) 0:00:15.393 ********* ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 05 August 2022 14:14:13 +0000 (0:00:02.226) 0:00:17.620 ********* ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 05 August 2022 14:14:14 +0000 (0:00:01.297) 0:00:18.917 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-23.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 14:14:30 +0000 (0:00:15.962) 0:00:34.880 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 14:14:31 +0000 (0:00:00.685) 0:00:35.565 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 05 August 2022 14:14:34 +0000 (0:00:03.345) 0:00:38.911 ********* 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.604544", "end": "2022-08-05 14:14:36.767706", "rc": 0, "start": "2022-08-05 14:14:35.163162" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:14:36 +0000 (0:00:02.566) 0:00:41.477 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test1] ******************************************** Friday 05 August 2022 14:14:37 +0000 (0:00:00.556) 0:00:42.034 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708875.243962, "block_size": 4096, "blocks": 0, "ctime": 1659708875.243962, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22037, "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": 1659708875.243962, "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 14:14:40 +0000 (0:00:03.095) 0:00:45.129 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:14:41 +0000 (0:00:00.641) 0:00:45.770 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test2] ******************************************** Friday 05 August 2022 14:14:42 +0000 (0:00:01.696) 0:00:47.467 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708875.2489142, "block_size": 4096, "blocks": 0, "ctime": 1659708875.2489142, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22623, "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": 1659708875.2489142, "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 14:14:44 +0000 (0:00:01.195) 0:00:48.662 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST Add Bond with 2 ports] ********************************************** Friday 05 August 2022 14:14:45 +0000 (0:00:00.966) 0:00:49.628 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 14:14:45 +0000 (0:00:00.822) 0:00:50.451 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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 14:14:46 +0000 (0:00:00.773) 0:00:51.225 ********* 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 14:14:48 +0000 (0:00:01.554) 0:00:52.779 ********* 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 14:14:53 +0000 (0:00:05.331) 0:00:58.111 ********* 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 14:15:03 +0000 (0:00:10.284) 0:01:08.395 ********* 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 14:15:04 +0000 (0:00:01.075) 0:01:09.471 ********* 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 14:15:05 +0000 (0:00:00.853) 0:01:10.324 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 14:15:06 +0000 (0:00:00.945) 0:01:11.270 ********* 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 14:15:06 +0000 (0:00:00.143) 0:01:11.413 ********* 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 14:15:06 +0000 (0:00:00.095) 0:01:11.508 ********* 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 14:15:07 +0000 (0:00:00.075) 0:01:11.584 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 14:15:07 +0000 (0:00:00.114) 0:01:11.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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 14:15:08 +0000 (0:00:01.014) 0:01:12.712 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 14:15:08 +0000 (0:00:00.102) 0:01:12.815 ********* 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 14:15:08 +0000 (0:00:00.058) 0:01:12.873 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 14:15:08 +0000 (0:00:00.064) 0:01:12.938 ********* 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, cb5dd4f0-747c-4cfd-921b-0207a50a7263 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 14:15:09 +0000 (0:00:01.233) 0:01:14.171 ********* 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 14:15:09 +0000 (0:00:00.063) 0:01:14.235 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 14:15:09 +0000 (0:00:00.200) 0:01:14.435 ********* 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, cb5dd4f0-747c-4cfd-921b-0207a50a7263\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, d6effbe5-5ccf-4be0-bdb8-5f87b28971cc (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 88f84deb-d71a-4b36-83aa-3c5b5d2fce6e (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 14:15:09 +0000 (0:00:00.092) 0:01:14.528 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 14:15:10 +0000 (0:00:00.081) 0:01:14.609 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:15:10 +0000 (0:00:00.462) 0:01:15.072 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface nm-bond] ****************************************** Friday 05 August 2022 14:15:10 +0000 (0:00:00.088) 0:01:15.161 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708909.3015711, "block_size": 4096, "blocks": 0, "ctime": 1659708909.3015711, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23352, "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": 1659708909.3015711, "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 14:15:10 +0000 (0:00:00.293) 0:01:15.454 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:15:10 +0000 (0:00:00.076) 0:01:15.530 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0.0) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=bond0.1) TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:15:11 +0000 (0:00:00.144) 0:01:15.675 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 14:15:11 +0000 (0:00:00.118) 0:01:15.793 ********* 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 14:15:11 +0000 (0:00:00.082) 0:01:15.876 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708909.2686374, "block_size": 4096, "blocks": 8, "ctime": 1659708909.2686374, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798013, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659708909.2686374, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 627, "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 05 August 2022 14:15:11 +0000 (0:00:00.296) 0:01:16.172 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 14:15:11 +0000 (0:00:00.175) 0:01:16.348 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.030124", "end": "2022-08-05 14:15:12.060297", "rc": 0, "start": "2022-08-05 14:15:12.030173" } 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 05 August 2022 14:15:12 +0000 (0:00:00.320) 0:01:16.668 ********* 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 14:15:12 +0000 (0:00:00.076) 0:01:16.745 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 05 August 2022 14:15:12 +0000 (0:00:00.074) 0:01:16.820 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 05 August 2022 14:15:12 +0000 (0:00:00.059) 0:01:16.879 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 05 August 2022 14:15:12 +0000 (0:00:00.079) 0:01:16.959 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:15:12 +0000 (0:00:00.076) 0:01:17.036 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 14:15:12 +0000 (0:00:00.090) 0:01:17.126 ********* 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 14:15:12 +0000 (0:00:00.075) 0:01:17.202 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708909.3696394, "block_size": 4096, "blocks": 8, "ctime": 1659708909.3696394, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798103, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659708909.3696394, "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 05 August 2022 14:15:12 +0000 (0:00:00.278) 0:01:17.481 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 14:15:13 +0000 (0:00:00.076) 0:01:17.557 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.030869", "end": "2022-08-05 14:15:13.274155", "rc": 0, "start": "2022-08-05 14:15:13.243286" } 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 05 August 2022 14:15:13 +0000 (0:00:00.317) 0:01:17.874 ********* 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 14:15:13 +0000 (0:00:00.076) 0:01:17.951 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 05 August 2022 14:15:13 +0000 (0:00:00.060) 0:01:18.011 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 05 August 2022 14:15:13 +0000 (0:00:00.110) 0:01:18.122 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 05 August 2022 14:15:13 +0000 (0:00:00.090) 0:01:18.212 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:15:13 +0000 (0:00:00.075) 0:01:18.287 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 14:15:13 +0000 (0:00:00.092) 0:01:18.380 ********* 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 14:15:13 +0000 (0:00:00.072) 0:01:18.452 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708909.3826396, "block_size": 4096, "blocks": 8, "ctime": 1659708909.3826396, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659708909.3826396, "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 05 August 2022 14:15:14 +0000 (0:00:00.284) 0:01:18.737 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 14:15:14 +0000 (0:00:00.072) 0:01:18.810 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.030304", "end": "2022-08-05 14:15:14.519740", "rc": 0, "start": "2022-08-05 14:15:14.489436" } 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 05 August 2022 14:15:14 +0000 (0:00:00.310) 0:01:19.120 ********* 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 14:15:14 +0000 (0:00:00.074) 0:01:19.195 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 05 August 2022 14:15:14 +0000 (0:00:00.057) 0:01:19.252 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 05 August 2022 14:15:14 +0000 (0:00:00.057) 0:01:19.310 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 05 August 2022 14:15:14 +0000 (0:00:00.078) 0:01:19.388 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check bond settings] ********************************************* Friday 05 August 2022 14:15:14 +0000 (0:00:00.074) 0:01:19.462 ********* 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.003581", "end": "2022-08-05 14:15:15.147507", "item": { "key": "mode", "value": "802.3ad" }, "rc": 0, "start": "2022-08-05 14:15:15.143926" } 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.003685", "end": "2022-08-05 14:15:15.439377", "item": { "key": "ad_actor_sys_prio", "value": "65535" }, "rc": 0, "start": "2022-08-05 14:15:15.435692" } 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.003547", "end": "2022-08-05 14:15:15.671932", "item": { "key": "ad_actor_system", "value": "00:00:5e:00:53:5d" }, "rc": 0, "start": "2022-08-05 14:15:15.668385" } 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.003667", "end": "2022-08-05 14:15:15.902274", "item": { "key": "ad_select", "value": "stable" }, "rc": 0, "start": "2022-08-05 14:15:15.898607" } 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.003526", "end": "2022-08-05 14:15:16.135032", "item": { "key": "ad_user_port_key", "value": "1023" }, "rc": 0, "start": "2022-08-05 14:15:16.131506" } 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.003461", "end": "2022-08-05 14:15:16.368566", "item": { "key": "all_slaves_active", "value": "1" }, "rc": 0, "start": "2022-08-05 14:15:16.365105" } 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.003395", "end": "2022-08-05 14:15:16.602064", "item": { "key": "arp_all_targets", "value": "all" }, "rc": 0, "start": "2022-08-05 14:15:16.598669" } 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.003413", "end": "2022-08-05 14:15:16.832475", "item": { "key": "downdelay", "value": "0" }, "rc": 0, "start": "2022-08-05 14:15:16.829062" } 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.003423", "end": "2022-08-05 14:15:17.060280", "item": { "key": "lacp_rate", "value": "slow" }, "rc": 0, "start": "2022-08-05 14:15:17.056857" } 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.003608", "end": "2022-08-05 14:15:17.289304", "item": { "key": "lp_interval", "value": "128" }, "rc": 0, "start": "2022-08-05 14:15:17.285696" } 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.003452", "end": "2022-08-05 14:15:17.524451", "item": { "key": "miimon", "value": "110" }, "rc": 0, "start": "2022-08-05 14:15:17.520999" } 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.003446", "end": "2022-08-05 14:15:17.757466", "item": { "key": "num_grat_arp", "value": "64" }, "rc": 0, "start": "2022-08-05 14:15:17.754020" } 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.003562", "end": "2022-08-05 14:15:18.003274", "item": { "key": "resend_igmp", "value": "225" }, "rc": 0, "start": "2022-08-05 14:15:17.999712" } 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.003477", "end": "2022-08-05 14:15:18.238697", "item": { "key": "updelay", "value": "0" }, "rc": 0, "start": "2022-08-05 14:15:18.235220" } 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.003557", "end": "2022-08-05 14:15:18.470052", "item": { "key": "use_carrier", "value": "1" }, "rc": 0, "start": "2022-08-05 14:15:18.466495" } 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.003656", "end": "2022-08-05 14:15:18.703872", "item": { "key": "xmit_hash_policy", "value": "encap2+3" }, "rc": 0, "start": "2022-08-05 14:15:18.700216" } STDOUT: encap2+3 3 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 14:15:18 +0000 (0:00:03.848) 0:01:23.310 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004476", "end": "2022-08-05 14:15:18.995471", "rc": 0, "start": "2022-08-05 14:15:18.990995" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.12/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 233sec preferred_lft 233sec TASK [** TEST check IPv6] ****************************************************** Friday 05 August 2022 14:15:19 +0000 (0:00:00.286) 0:01:23.597 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004438", "end": "2022-08-05 14:15:19.280386", "rc": 0, "start": "2022-08-05 14:15:19.275948" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::de/128 scope global dynamic noprefixroute valid_lft 234sec preferred_lft 234sec inet6 2001:db8::5a93:59ed:fbb:3e8d/64 scope global dynamic noprefixroute valid_lft 1800sec preferred_lft 1800sec inet6 fe80::7117:994f:9981:8836/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 14:15:19 +0000 (0:00:00.285) 0:01:23.882 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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 14:15:19 +0000 (0:00:00.091) 0:01:23.974 ********* 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 14:15:19 +0000 (0:00:00.489) 0:01:24.464 ********* 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 14:15:21 +0000 (0:00:02.011) 0:01:26.476 ********* 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 14:15:23 +0000 (0:00:01.561) 0:01:28.037 ********* 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 14:15:23 +0000 (0:00:00.069) 0:01:28.107 ********* 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 14:15:23 +0000 (0:00:00.059) 0:01:28.167 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 14:15:23 +0000 (0:00:00.060) 0:01:28.228 ********* 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 14:15:23 +0000 (0:00:00.113) 0:01:28.341 ********* 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 14:15:23 +0000 (0:00:00.064) 0:01:28.406 ********* 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 14:15:23 +0000 (0:00:00.095) 0:01:28.501 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 14:15:24 +0000 (0:00:00.084) 0:01:28.586 ********* 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 14:15:24 +0000 (0:00:00.537) 0:01:29.123 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 14:15:24 +0000 (0:00:00.086) 0:01:29.210 ********* 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 14:15:24 +0000 (0:00:00.053) 0:01:29.263 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 14:15:24 +0000 (0:00:00.055) 0:01:29.319 ********* 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, cb5dd4f0-747c-4cfd-921b-0207a50a7263 [004] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (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 14:15:25 +0000 (0:00:00.688) 0:01:30.008 ********* 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 14:15:25 +0000 (0:00:00.060) 0:01:30.069 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'bond0': update connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263", "[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (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 14:15:25 +0000 (0:00:00.074) 0:01:30.143 ********* 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, cb5dd4f0-747c-4cfd-921b-0207a50a7263\n[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (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, cb5dd4f0-747c-4cfd-921b-0207a50a7263", "[004] #0, state:up persistent_state:present, 'bond0': up connection bond0, cb5dd4f0-747c-4cfd-921b-0207a50a7263 (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 14:15:25 +0000 (0:00:00.077) 0:01:30.220 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 14:15:25 +0000 (0:00:00.060) 0:01:30.280 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [** TEST check bond settings] ********************************************* Friday 05 August 2022 14:15:26 +0000 (0:00:00.318) 0:01:30.599 ********* 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.004463", "end": "2022-08-05 14:15:26.342934", "item": { "key": "mode", "value": "active-backup" }, "rc": 0, "start": "2022-08-05 14:15:26.338471" } 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.003550", "end": "2022-08-05 14:15:26.587924", "item": { "key": "arp_interval", "value": "60" }, "rc": 0, "start": "2022-08-05 14:15:26.584374" } 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.003471", "end": "2022-08-05 14:15:26.829642", "item": { "key": "arp_ip_target", "value": "192.0.2.128" }, "rc": 0, "start": "2022-08-05 14:15:26.826171" } 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.003573", "end": "2022-08-05 14:15:27.063710", "item": { "key": "arp_validate", "value": "none" }, "rc": 0, "start": "2022-08-05 14:15:27.060137" } 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.003450", "end": "2022-08-05 14:15:27.300911", "item": { "key": "primary", "value": "test1" }, "rc": 0, "start": "2022-08-05 14:15:27.297461" } STDOUT: test1 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 14:15:27 +0000 (0:00:01.303) 0:01:31.902 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004456", "end": "2022-08-05 14:15:27.590196", "rc": 0, "start": "2022-08-05 14:15:27.585740" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.12/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 14:15:27 +0000 (0:00:00.289) 0:01:32.192 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004358", "end": "2022-08-05 14:15:27.891664", "rc": 0, "start": "2022-08-05 14:15:27.887306" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::de/128 scope global dynamic noprefixroute valid_lft 239sec preferred_lft 239sec inet6 2001:db8::5a93:59ed:fbb:3e8d/64 scope global dynamic noprefixroute valid_lft 1800sec preferred_lft 1800sec inet6 fe80::7117:994f:9981:8836/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 14:15:27 +0000 (0:00:00.301) 0:01:32.493 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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 14:15:28 +0000 (0:00:00.092) 0:01:32.586 ********* 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 14:15:28 +0000 (0:00:00.490) 0:01:33.077 ********* 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 14:15:30 +0000 (0:00:02.002) 0:01:35.080 ********* 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 14:15:32 +0000 (0:00:01.651) 0:01:36.731 ********* 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 14:15:32 +0000 (0:00:00.075) 0:01:36.806 ********* 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 14:15:32 +0000 (0:00:00.065) 0:01:36.872 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 14:15:32 +0000 (0:00:00.060) 0:01:36.933 ********* 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 14:15:32 +0000 (0:00:00.114) 0:01:37.048 ********* 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 14:15:32 +0000 (0:00:00.061) 0:01:37.109 ********* 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 14:15:32 +0000 (0:00:00.061) 0:01:37.171 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 14:15:32 +0000 (0:00:00.084) 0:01:37.255 ********* 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 14:15:33 +0000 (0:00:00.521) 0:01:37.777 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 14:15:33 +0000 (0:00:00.120) 0:01:37.897 ********* 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 14:15:33 +0000 (0:00:00.054) 0:01:37.951 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 14:15:33 +0000 (0:00:00.054) 0:01:38.006 ********* 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 14:15:34 +0000 (0:00:00.904) 0:01:38.911 ********* 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 14:15:34 +0000 (0:00:00.060) 0:01:38.971 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 14:15:34 +0000 (0:00:00.075) 0:01:39.047 ********* 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 14:15:34 +0000 (0:00:00.074) 0:01:39.122 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 14:15:34 +0000 (0:00:00.061) 0:01:39.183 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 05 August 2022 14:15:34 +0000 (0:00:00.309) 0:01:39.493 ********* fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.007787", "end": "2022-08-05 14:15:35.176956", "rc": 1, "start": "2022-08-05 14:15:35.169169" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 05 August 2022 14:15:35 +0000 (0:00:00.283) 0:01:39.776 ********* ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.066946", "end": "2022-08-05 14:15:35.520259", "rc": 0, "start": "2022-08-05 14:15:35.453313" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 05 August 2022 14:15:35 +0000 (0:00:00.343) 0:01:40.119 ********* 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.018392", "end": "2022-08-05 14:15:35.815376", "rc": 0, "start": "2022-08-05 14:15:35.796984" } PLAY RECAP ********************************************************************* sut : ok=87 changed=13 unreachable=0 failed=0 skipped=43 rescued=0 ignored=1 Friday 05 August 2022 14:15:35 +0000 (0:00:00.363) 0:01:40.483 ********* =============================================================================== Install dnsmasq -------------------------------------------------------- 16.07s linux-system-roles.network : Check which packages are installed -------- 10.28s linux-system-roles.network : Check which services are running ----------- 5.33s Create EPEL 8 ----------------------------------------------------------- 5.20s Gathering Facts --------------------------------------------------------- 4.78s ** TEST check bond settings --------------------------------------------- 3.85s Install pgrep, sysctl --------------------------------------------------- 3.35s Get stat for interface test1 -------------------------------------------- 3.10s Create test interfaces -------------------------------------------------- 2.57s Gathering Facts --------------------------------------------------------- 2.23s linux-system-roles.network : Check which services are running ----------- 2.01s linux-system-roles.network : Check which services are running ----------- 2.00s include_tasks ----------------------------------------------------------- 1.70s linux-system-roles.network : Check which packages are installed --------- 1.65s linux-system-roles.network : Check which packages are installed --------- 1.56s linux-system-roles.network : Ensure ansible_facts used by role are present --- 1.55s Enable EPEL 8 ----------------------------------------------------------- 1.43s ** TEST check bond settings --------------------------------------------- 1.30s INIT Prepare setup ------------------------------------------------------ 1.30s linux-system-roles.network : Configure networking connection profiles --- 1.23s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---