# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond_deprecated.yml' with nm as provider] *** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:41:57 +0000 (0:00:00.158) 0:00:00.158 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:03 +0000 (0:00:06.792) 0:00:06.951 ********* 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 16:42:04 +0000 (0:00:00.439) 0:00:07.391 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:04 +0000 (0:00:00.414) 0:00:07.805 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 16:42:05 +0000 (0:00:01.012) 0:00:08.818 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 16:42:06 +0000 (0:00:00.639) 0:00:09.458 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 16:42:06 +0000 (0:00:00.642) 0:00:10.100 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 16:42:07 +0000 (0:00:00.653) 0:00:10.754 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 16:42:08 +0000 (0:00:00.831) 0:00:11.585 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:42:10 +0000 (0:00:02.251) 0:00:13.837 ********* ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 05 August 2022 16:42:14 +0000 (0:00:04.035) 0:00:17.872 ********* ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 05 August 2022 16:42:16 +0000 (0:00:01.683) 0:00:19.556 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.85-4.el9.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 16:42:28 +0000 (0:00:11.753) 0:00:31.309 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 16:42:29 +0000 (0:00:00.876) 0:00:32.185 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 05 August 2022 16:42:33 +0000 (0:00:04.558) 0:00:36.744 ********* 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.604026", "end": "2022-08-05 16:42:42.183157", "rc": 0, "start": "2022-08-05 16:42:40.579131" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:42 +0000 (0:00:09.108) 0:00:45.852 ********* 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 16:42:43 +0000 (0:00:01.201) 0:00:47.053 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659717760.6471488, "block_size": 4096, "blocks": 0, "ctime": 1659717760.6471488, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22487, "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": 1659717760.6471488, "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 16:42:49 +0000 (0:00:06.031) 0:00:53.085 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:42:51 +0000 (0:00:01.285) 0:00:54.370 ********* 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 16:42:52 +0000 (0:00:01.189) 0:00:55.560 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659717760.6613617, "block_size": 4096, "blocks": 0, "ctime": 1659717760.6613617, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23073, "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": 1659717760.6613617, "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 16:42:54 +0000 (0:00:02.147) 0:00:57.707 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST Add Bond with 2 ports using deprecated 'master' argument] *********** Friday 05 August 2022 16:42:56 +0000 (0:00:01.819) 0:00:59.527 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:42:57 +0000 (0:00:01.201) 0:01:00.728 ********* 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 16:42:58 +0000 (0:00:01.325) 0:01:02.099 ********* 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 16:43:02 +0000 (0:00:03.824) 0:01:05.924 ********* 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 16:43:12 +0000 (0:00:10.041) 0:01:15.965 ********* 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 16:43:32 +0000 (0:00:19.609) 0:01:35.575 ********* 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 16:43:35 +0000 (0:00:02.835) 0:01:38.410 ********* 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 16:43:37 +0000 (0:00:02.045) 0:01:40.455 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:43:39 +0000 (0:00:01.912) 0:01:42.368 ********* 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 16:43:44 +0000 (0:00:04.778) 0:01:47.146 ********* 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 16:43:45 +0000 (0:00:01.790) 0:01:48.937 ********* 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 16:43:47 +0000 (0:00:01.367) 0:01:50.304 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:43:50 +0000 (0:00:03.165) 0:01:53.469 ********* 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 16:44:03 +0000 (0:00:13.623) 0:02:07.093 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:44:06 +0000 (0:00:02.245) 0:02:09.339 ********* 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 16:44:07 +0000 (0:00:01.134) 0:02:10.473 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:44:08 +0000 (0:00:00.939) 0:02:11.413 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "bond": { "miimon": 110, "mode": "active-backup" }, "interface_name": "deprecated-bond", "name": "bond0", "state": "up", "type": "bond" }, { "interface_name": "test1", "master": "bond0", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "interface_name": "test2", "master": "bond0", "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, c870f333-d866-4a0b-94e0-3a57dddd2de6 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c870f333-d866-4a0b-94e0-3a57dddd2de6 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:44:21 +0000 (0:00:12.750) 0:02:24.163 ********* 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 16:44:22 +0000 (0:00:01.096) 0:02:25.260 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, c870f333-d866-4a0b-94e0-3a57dddd2de6", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c870f333-d866-4a0b-94e0-3a57dddd2de6 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:44:24 +0000 (0:00:01.934) 0:02:27.195 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "bond": { "miimon": 110, "mode": "active-backup" }, "interface_name": "deprecated-bond", "name": "bond0", "state": "up", "type": "bond" }, { "interface_name": "test1", "master": "bond0", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "interface_name": "test2", "master": "bond0", "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, c870f333-d866-4a0b-94e0-3a57dddd2de6\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c870f333-d866-4a0b-94e0-3a57dddd2de6 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, c870f333-d866-4a0b-94e0-3a57dddd2de6", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, c870f333-d866-4a0b-94e0-3a57dddd2de6 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 8e9e6341-918c-4d77-b875-d1e8fb710e50 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 91fb5e39-d238-4cc3-b78e-ea99042bd739 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:44:26 +0000 (0:00:02.215) 0:02:29.411 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:44:27 +0000 (0:00:00.963) 0:02:30.374 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:44:34 +0000 (0:00:06.899) 0:02:37.274 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface deprecated-bond] ********************************** Friday 05 August 2022 16:44:35 +0000 (0:00:00.950) 0:02:38.225 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659717859.6998844, "block_size": 4096, "blocks": 0, "ctime": 1659717859.6998844, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23762, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/deprecated-bond", "lnk_target": "../../devices/virtual/net/deprecated-bond", "mode": "0777", "mtime": 1659717859.6998844, "nlink": 1, "path": "/sys/class/net/deprecated-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 deprecated-bond is present] ************************ Friday 05 August 2022 16:44:37 +0000 (0:00:02.239) 0:02:40.465 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:44:38 +0000 (0:00:01.481) 0:02:41.946 ********* 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 16:44:41 +0000 (0:00:02.277) 0:02:44.223 ********* 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 16:44:42 +0000 (0:00:01.887) 0:02:46.111 ********* 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 16:44:44 +0000 (0:00:01.548) 0:02:47.660 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:44:46 +0000 (0:00:02.409) 0:02:50.069 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:44:47 +0000 (0:00:00.963) 0:02:51.032 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.030438", "end": "2022-08-05 16:44:50.330373", "rc": 0, "start": "2022-08-05 16:44:50.299935" } 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 16:44:51 +0000 (0:00:03.418) 0:02:54.450 ********* 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 16:44:52 +0000 (0:00:00.981) 0:02:55.432 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 05 August 2022 16:44:54 +0000 (0:00:02.095) 0:02:57.528 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 05 August 2022 16:44:55 +0000 (0:00:01.260) 0:02:58.788 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 05 August 2022 16:44:57 +0000 (0:00:01.618) 0:03:00.407 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:44:58 +0000 (0:00:01.402) 0:03:01.809 ********* 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 16:45:00 +0000 (0:00:01.826) 0:03:03.636 ********* 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 16:45:01 +0000 (0:00:00.930) 0:03:04.566 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:45:03 +0000 (0:00:02.451) 0:03:07.017 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:45:05 +0000 (0:00:01.494) 0:03:08.512 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.027720", "end": "2022-08-05 16:45:06.463060", "rc": 0, "start": "2022-08-05 16:45:06.435340" } 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 16:45:07 +0000 (0:00:01.624) 0:03:10.136 ********* 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 16:45:07 +0000 (0:00:00.281) 0:03:10.418 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 05 August 2022 16:45:07 +0000 (0:00:00.184) 0:03:10.602 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 05 August 2022 16:45:07 +0000 (0:00:00.221) 0:03:10.824 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 05 August 2022 16:45:07 +0000 (0:00:00.243) 0:03:11.067 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:45:08 +0000 (0:00:00.188) 0:03:11.256 ********* 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 16:45:08 +0000 (0:00:00.188) 0:03:11.445 ********* 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 16:45:08 +0000 (0:00:00.396) 0:03:11.841 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:45:09 +0000 (0:00:00.406) 0:03:12.248 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:45:09 +0000 (0:00:00.070) 0:03:12.318 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.028205", "end": "2022-08-05 16:45:09.567395", "rc": 0, "start": "2022-08-05 16:45:09.539190" } 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 16:45:09 +0000 (0:00:00.444) 0:03:12.763 ********* 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 16:45:09 +0000 (0:00:00.297) 0:03:13.060 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 05 August 2022 16:45:10 +0000 (0:00:00.128) 0:03:13.188 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 05 August 2022 16:45:10 +0000 (0:00:00.207) 0:03:13.396 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 05 August 2022 16:45:10 +0000 (0:00:00.173) 0:03:13.570 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Friday 05 August 2022 16:45:10 +0000 (0:00:00.148) 0:03:13.719 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/deprecated-bond" ], "delta": "0:00:00.003732", "end": "2022-08-05 16:45:10.873828", "rc": 0, "start": "2022-08-05 16:45:10.870096" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 16:45:10 +0000 (0:00:00.380) 0:03:14.099 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "deprecated-bond" ], "delta": "0:00:00.003714", "end": "2022-08-05 16:45:11.275563", "rc": 0, "start": "2022-08-05 16:45:11.271849" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.2/24 brd 192.0.2.255 scope global dynamic noprefixroute deprecated-bond valid_lft 192sec preferred_lft 192sec TASK [** TEST check IPv6] ****************************************************** Friday 05 August 2022 16:45:11 +0000 (0:00:00.417) 0:03:14.517 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "deprecated-bond" ], "delta": "0:00:00.003768", "end": "2022-08-05 16:45:11.696878", "rc": 0, "start": "2022-08-05 16:45:11.693110" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::93/128 scope global dynamic noprefixroute valid_lft 192sec preferred_lft 192sec inet6 2001:db8::cfd:f06d:5a03:11db/64 scope global dynamic noprefixroute valid_lft 1751sec preferred_lft 1751sec inet6 fe80::348a:3929:4dd1:dc7b/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 16:45:11 +0000 (0:00:00.431) 0:03:14.948 ********* 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 16:45:12 +0000 (0:00:00.178) 0:03:15.126 ********* 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 16:45:12 +0000 (0:00:00.566) 0:03:15.693 ********* 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 16:45:14 +0000 (0:00:02.037) 0:03:17.730 ********* 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 16:45:15 +0000 (0:00:00.893) 0:03:18.624 ********* 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 16:45:15 +0000 (0:00:00.106) 0:03:18.731 ********* 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 16:45:15 +0000 (0:00:00.093) 0:03:18.825 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:45:15 +0000 (0:00:00.081) 0:03:18.906 ********* 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 16:45:15 +0000 (0:00:00.206) 0:03:19.112 ********* 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 16:45:16 +0000 (0:00:00.090) 0:03:19.203 ********* 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 16:45:16 +0000 (0:00:00.162) 0:03:19.365 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:45:16 +0000 (0:00:00.104) 0:03:19.469 ********* 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 16:45:16 +0000 (0:00:00.622) 0:03:20.092 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:45:17 +0000 (0:00:00.288) 0:03:20.380 ********* 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 16:45:17 +0000 (0:00:00.081) 0:03:20.462 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:45:17 +0000 (0:00:00.079) 0:03:20.542 ********* 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 16:45:18 +0000 (0:00:01.055) 0:03:21.598 ********* 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 16:45:18 +0000 (0:00:00.065) 0:03:21.663 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:45:18 +0000 (0:00:00.132) 0:03:21.796 ********* 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 16:45:18 +0000 (0:00:00.118) 0:03:21.914 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:45:18 +0000 (0:00:00.163) 0:03:22.077 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 05 August 2022 16:45:19 +0000 (0:00:00.448) 0:03:22.526 ********* fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "deprecated-bond" ], "delta": "0:00:00.007530", "end": "2022-08-05 16:45:19.700371", "rc": 1, "start": "2022-08-05 16:45:19.692841" } STDERR: Cannot find device "deprecated-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 05 August 2022 16:45:19 +0000 (0:00:00.386) 0:03:22.913 ********* ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.083802", "end": "2022-08-05 16:45:20.137556", "rc": 0, "start": "2022-08-05 16:45:20.053754" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 05 August 2022 16:45:20 +0000 (0:00:00.388) 0:03:23.302 ********* 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.041127", "end": "2022-08-05 16:45:20.455355", "rc": 0, "start": "2022-08-05 16:45:20.414228" } PLAY RECAP ********************************************************************* sut : ok=69 changed=7 unreachable=0 failed=0 skipped=37 rescued=0 ignored=1 Friday 05 August 2022 16:45:20 +0000 (0:00:00.360) 0:03:23.662 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 19.61s linux-system-roles.network : Enable and start NetworkManager ----------- 13.62s linux-system-roles.network : Configure networking connection profiles -- 12.75s Install dnsmasq -------------------------------------------------------- 11.75s linux-system-roles.network : Check which services are running ---------- 10.04s Create test interfaces -------------------------------------------------- 9.11s linux-system-roles.network : Re-test connectivity ----------------------- 6.90s Gathering Facts --------------------------------------------------------- 6.79s Get stat for interface test1 -------------------------------------------- 6.03s linux-system-roles.network : Install packages --------------------------- 4.78s Install pgrep, sysctl --------------------------------------------------- 4.56s Gathering Facts --------------------------------------------------------- 4.04s linux-system-roles.network : Ensure ansible_facts used by role are present --- 3.82s Get NM profile info ----------------------------------------------------- 3.42s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 3.17s linux-system-roles.network : Print network provider --------------------- 2.84s stat profile file ------------------------------------------------------- 2.45s stat profile file ------------------------------------------------------- 2.41s include_tasks ----------------------------------------------------------- 2.28s Set network provider to 'nm' -------------------------------------------- 2.25s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---