# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 14:00:04 +0000 (0:00:00.226) 0:00:00.226 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:07 +0000 (0:00:03.630) 0:00:03.856 ********* 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:00:07 +0000 (0:00:00.043) 0:00:03.900 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:07 +0000 (0:00:00.054) 0:00:03.955 ********* 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:00:07 +0000 (0:00:00.076) 0:00:04.032 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.366067", "end": "2022-08-05 14:00:10.675720", "rc": 0, "start": "2022-08-05 14:00:08.309653" } STDOUT: Last metadata expiration check: 0:00:46 ago on Fri Aug 5 13:59:23 2022. epel-release-latest-8.noarch.rpm 698 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:00:10 +0000 (0:00:02.846) 0:00:06.878 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 14:00:10 +0000 (0:00:00.058) 0:00:06.937 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.567094", "end": "2022-08-05 14:00:11.584223", "rc": 0, "start": "2022-08-05 14:00:11.017129" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 14:00:11 +0000 (0:00:00.835) 0:00:07.773 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 14:00:11 +0000 (0:00:00.032) 0:00:07.805 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 14:00:11 +0000 (0:00:00.075) 0:00:07.881 ********* ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 05 August 2022 14:00:12 +0000 (0:00:00.737) 0:00:08.618 ********* ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 05 August 2022 14:00:12 +0000 (0:00:00.054) 0:00:08.673 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-23.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 14:00:23 +0000 (0:00:11.303) 0:00:19.976 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 14:00:23 +0000 (0:00:00.039) 0:00:20.016 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 05 August 2022 14:00:25 +0000 (0:00:01.987) 0:00:22.004 ********* 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.495701", "end": "2022-08-05 14:00:27.560484", "rc": 0, "start": "2022-08-05 14:00:26.064783" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:27 +0000 (0:00:01.749) 0:00:23.753 ********* 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:00:27 +0000 (0:00:00.044) 0:00:23.798 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708026.1171951, "block_size": 4096, "blocks": 0, "ctime": 1659708026.1171951, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22088, "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": 1659708026.1171951, "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:00:28 +0000 (0:00:00.404) 0:00:24.202 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:28 +0000 (0:00:00.051) 0:00:24.254 ********* 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:00:28 +0000 (0:00:00.046) 0:00:24.300 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708026.1207354, "block_size": 4096, "blocks": 0, "ctime": 1659708026.1207354, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22674, "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": 1659708026.1207354, "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:00:28 +0000 (0:00:00.258) 0:00:24.559 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** Friday 05 August 2022 14:00:28 +0000 (0:00:00.050) 0:00:24.609 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST Add Bond with 2 ports] ********************************************** Friday 05 August 2022 14:00:28 +0000 (0:00:00.030) 0:00:24.639 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 14:00:28 +0000 (0:00:00.046) 0:00:24.685 ********* 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:00:28 +0000 (0:00:00.047) 0:00:24.733 ********* 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:00:29 +0000 (0:00:00.455) 0:00:25.189 ********* 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:00:31 +0000 (0:00:02.064) 0:00:27.254 ********* 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:00:32 +0000 (0:00:01.902) 0:00:29.156 ********* 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:00:33 +0000 (0:00:00.071) 0:00:29.227 ********* 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:00:33 +0000 (0:00:00.059) 0:00:29.287 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 14:00:33 +0000 (0:00:00.057) 0:00:29.345 ********* 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:00:33 +0000 (0:00:00.116) 0:00:29.462 ********* 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:00:33 +0000 (0:00:00.060) 0:00:29.522 ********* 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:00:33 +0000 (0:00:00.059) 0:00:29.582 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 14:00:33 +0000 (0:00:00.084) 0:00:29.666 ********* 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:00:34 +0000 (0:00:00.862) 0:00:30.529 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 14:00:34 +0000 (0:00:00.086) 0:00:30.616 ********* 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:00:34 +0000 (0:00:00.053) 0:00:30.670 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 14:00:34 +0000 (0:00:00.053) 0:00:30.723 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "bond": { "miimon": 110, "mode": "active-backup" }, "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, eec77683-50d3-4267-b573-aa1a28d2072b [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, eec77683-50d3-4267-b573-aa1a28d2072b (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 14:00:35 +0000 (0:00:01.198) 0:00:31.922 ********* 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:00:35 +0000 (0:00:00.061) 0:00:31.983 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, eec77683-50d3-4267-b573-aa1a28d2072b", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, eec77683-50d3-4267-b573-aa1a28d2072b (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 14:00:35 +0000 (0:00:00.071) 0:00:32.054 ********* 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": "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, eec77683-50d3-4267-b573-aa1a28d2072b\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, eec77683-50d3-4267-b573-aa1a28d2072b (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, eec77683-50d3-4267-b573-aa1a28d2072b", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, eec77683-50d3-4267-b573-aa1a28d2072b (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 5509cb8d-2931-4348-85f0-2363cdf3f39e (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 6f5aaad1-4147-4543-908c-1d1ab6990455 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 14:00:35 +0000 (0:00:00.068) 0:00:32.123 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 14:00:36 +0000 (0:00:00.059) 0:00:32.183 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:36 +0000 (0:00:00.468) 0:00:32.651 ********* 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:00:36 +0000 (0:00:00.087) 0:00:32.738 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708035.390704, "block_size": 4096, "blocks": 0, "ctime": 1659708035.390704, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 23403, "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": 1659708035.390704, "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:00:36 +0000 (0:00:00.276) 0:00:33.015 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:36 +0000 (0:00:00.073) 0:00:33.089 ********* 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:00:37 +0000 (0:00:00.113) 0:00:33.203 ********* 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:00:37 +0000 (0:00:00.123) 0:00:33.326 ********* 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:00:37 +0000 (0:00:00.068) 0:00:33.395 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708035.3537803, "block_size": 4096, "blocks": 8, "ctime": 1659708035.3527803, "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": 1659708035.3527803, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 335, "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:00:37 +0000 (0:00:00.278) 0:00:33.674 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 14:00:37 +0000 (0:00:00.072) 0:00:33.746 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.029858", "end": "2022-08-05 14:00:37.838585", "rc": 0, "start": "2022-08-05 14:00:37.808727" } 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:00:37 +0000 (0:00:00.303) 0:00:34.050 ********* 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:00:37 +0000 (0:00:00.074) 0:00:34.125 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 05 August 2022 14:00:38 +0000 (0:00:00.056) 0:00:34.182 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 05 August 2022 14:00:38 +0000 (0:00:00.058) 0:00:34.240 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 05 August 2022 14:00:38 +0000 (0:00:00.076) 0:00:34.316 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:38 +0000 (0:00:00.072) 0:00:34.389 ********* 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:00:38 +0000 (0:00:00.087) 0:00:34.477 ********* 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:00:38 +0000 (0:00:00.069) 0:00:34.547 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708035.463779, "block_size": 4096, "blocks": 8, "ctime": 1659708035.463779, "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": 1659708035.463779, "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:00:38 +0000 (0:00:00.275) 0:00:34.822 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 14:00:38 +0000 (0:00:00.151) 0:00:34.973 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.044244", "end": "2022-08-05 14:00:39.165733", "rc": 0, "start": "2022-08-05 14:00:39.121489" } 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:00:39 +0000 (0:00:00.403) 0:00:35.377 ********* 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:00:39 +0000 (0:00:00.074) 0:00:35.451 ********* 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:00:39 +0000 (0:00:00.057) 0:00:35.508 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 05 August 2022 14:00:39 +0000 (0:00:00.057) 0:00:35.566 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 05 August 2022 14:00:39 +0000 (0:00:00.075) 0:00:35.641 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 14:00:39 +0000 (0:00:00.072) 0:00:35.713 ********* 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:00:39 +0000 (0:00:00.088) 0:00:35.802 ********* 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:00:39 +0000 (0:00:00.068) 0:00:35.871 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659708035.4767787, "block_size": 4096, "blocks": 8, "ctime": 1659708035.4767787, "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": 1659708035.4767787, "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:00:39 +0000 (0:00:00.274) 0:00:36.145 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 14:00:40 +0000 (0:00:00.070) 0:00:36.217 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.031352", "end": "2022-08-05 14:00:40.311430", "rc": 0, "start": "2022-08-05 14:00:40.280078" } 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:00:40 +0000 (0:00:00.305) 0:00:36.522 ********* 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:00:40 +0000 (0:00:00.074) 0:00:36.597 ********* 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:00:40 +0000 (0:00:00.058) 0:00:36.656 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 05 August 2022 14:00:40 +0000 (0:00:00.095) 0:00:36.752 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 05 August 2022 14:00:40 +0000 (0:00:00.076) 0:00:36.828 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Friday 05 August 2022 14:00:40 +0000 (0:00:00.075) 0:00:36.904 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:01.004845", "end": "2022-08-05 14:00:41.969369", "rc": 0, "start": "2022-08-05 14:00:40.964524" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 14:00:42 +0000 (0:00:01.279) 0:00:38.183 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004491", "end": "2022-08-05 14:00:42.253840", "rc": 0, "start": "2022-08-05 14:00:42.249349" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.62/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 236sec preferred_lft 236sec TASK [** TEST check IPv6] ****************************************************** Friday 05 August 2022 14:00:42 +0000 (0:00:00.284) 0:00:38.468 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004466", "end": "2022-08-05 14:00:42.538748", "rc": 0, "start": "2022-08-05 14:00:42.534282" } 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 237sec preferred_lft 237sec inet6 2001:db8::c6e2:e77f:37c6:8f79/64 scope global dynamic noprefixroute valid_lft 1798sec preferred_lft 1798sec inet6 fe80::5fc:15f3:e9a0:8b01/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:00:42 +0000 (0:00:00.287) 0:00:38.755 ********* 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:00:42 +0000 (0:00:00.097) 0:00:38.852 ********* 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:00:43 +0000 (0:00:00.538) 0:00:39.391 ********* 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:00:45 +0000 (0:00:01.882) 0:00:41.273 ********* 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:00:46 +0000 (0:00:01.549) 0:00:42.822 ********* 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:00:46 +0000 (0:00:00.070) 0:00:42.893 ********* 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:00:46 +0000 (0:00:00.068) 0:00:42.962 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 14:00:46 +0000 (0:00:00.061) 0:00:43.024 ********* 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:00:47 +0000 (0:00:00.140) 0:00:43.164 ********* 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:00:47 +0000 (0:00:00.074) 0:00:43.239 ********* 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:00:47 +0000 (0:00:00.063) 0:00:43.303 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 14:00:47 +0000 (0:00:00.091) 0:00:43.395 ********* 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:00:47 +0000 (0:00:00.589) 0:00:43.984 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 14:00:47 +0000 (0:00:00.086) 0:00:44.070 ********* 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:00:47 +0000 (0:00:00.062) 0:00:44.132 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 14:00:48 +0000 (0:00:00.063) 0:00:44.196 ********* 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:00:48 +0000 (0:00:00.923) 0:00:45.120 ********* 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:00:49 +0000 (0:00:00.077) 0:00:45.198 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 14:00:49 +0000 (0:00:00.079) 0:00:45.277 ********* 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:00:49 +0000 (0:00:00.085) 0:00:45.363 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 14:00:49 +0000 (0:00:00.073) 0:00:45.436 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 05 August 2022 14:00:49 +0000 (0:00:00.319) 0:00:45.756 ********* fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.008091", "end": "2022-08-05 14:00:49.846651", "rc": 1, "start": "2022-08-05 14:00:49.838560" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 05 August 2022 14:00:49 +0000 (0:00:00.306) 0:00:46.062 ********* ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.081035", "end": "2022-08-05 14:00:50.287109", "rc": 0, "start": "2022-08-05 14:00:50.206074" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 05 August 2022 14:00:50 +0000 (0:00:00.441) 0:00:46.504 ********* 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.017521", "end": "2022-08-05 14:00:50.593512", "rc": 0, "start": "2022-08-05 14:00:50.575991" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** Friday 05 August 2022 14:00:50 +0000 (0:00:00.299) 0:00:46.803 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=74 changed=9 unreachable=0 failed=0 skipped=34 rescued=0 ignored=1 Friday 05 August 2022 14:00:50 +0000 (0:00:00.094) 0:00:46.898 ********* =============================================================================== Install dnsmasq -------------------------------------------------------- 11.30s Gathering Facts --------------------------------------------------------- 3.63s Create EPEL 8 ----------------------------------------------------------- 2.85s linux-system-roles.network : Check which services are running ----------- 2.06s Install pgrep, sysctl --------------------------------------------------- 1.99s linux-system-roles.network : Check which packages are installed --------- 1.90s linux-system-roles.network : Check which services are running ----------- 1.88s Create test interfaces -------------------------------------------------- 1.75s linux-system-roles.network : Check which packages are installed --------- 1.55s ** TEST check polling interval ------------------------------------------ 1.28s linux-system-roles.network : Configure networking connection profiles --- 1.20s linux-system-roles.network : Configure networking connection profiles --- 0.92s linux-system-roles.network : Enable and start NetworkManager ------------ 0.86s Enable EPEL 8 ----------------------------------------------------------- 0.84s Gathering Facts --------------------------------------------------------- 0.74s linux-system-roles.network : Enable and start NetworkManager ------------ 0.59s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.54s linux-system-roles.network : Re-test connectivity ----------------------- 0.47s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.46s Remove test interfaces -------------------------------------------------- 0.44s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---