# 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 13:40:08 +0000 (0:00:00.020) 0:00:00.020 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:09 +0000 (0:00:01.434) 0:00:01.454 ********* 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 13:40:10 +0000 (0:00:00.067) 0:00:01.522 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:10 +0000 (0:00:00.054) 0:00:01.576 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 13:40:10 +0000 (0:00:00.045) 0:00:01.621 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.350060", "end": "2022-08-05 13:40:12.916816", "rc": 0, "start": "2022-08-05 13:40:10.566756" } STDOUT: Last metadata expiration check: 0:00:41 ago on Fri Aug 5 13:39:30 2022. epel-release-latest-8.noarch.rpm 476 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 13:40:12 +0000 (0:00:02.800) 0:00:04.422 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 13:40:13 +0000 (0:00:00.091) 0:00:04.514 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.553752", "end": "2022-08-05 13:40:13.916024", "rc": 0, "start": "2022-08-05 13:40:13.362272" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 13:40:13 +0000 (0:00:00.897) 0:00:05.411 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 13:40:13 +0000 (0:00:00.043) 0:00:05.455 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 13:40:14 +0000 (0:00:00.091) 0:00:05.546 ********* ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 05 August 2022 13:40:14 +0000 (0:00:00.763) 0:00:06.309 ********* ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 05 August 2022 13:40:14 +0000 (0:00:00.070) 0:00:06.380 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-23.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 13:40:26 +0000 (0:00:11.623) 0:00:18.004 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 13:40:26 +0000 (0:00:00.039) 0:00:18.044 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 05 August 2022 13:40:28 +0000 (0:00:02.018) 0:00:20.062 ********* 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.500523", "end": "2022-08-05 13:40:30.318921", "rc": 0, "start": "2022-08-05 13:40:28.818398" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:30 +0000 (0:00:01.753) 0:00:21.816 ********* 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 13:40:30 +0000 (0:00:00.045) 0:00:21.862 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659706828.8333943, "block_size": 4096, "blocks": 0, "ctime": 1659706828.8333943, "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": 1659706828.8333943, "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 13:40:30 +0000 (0:00:00.412) 0:00:22.274 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:30 +0000 (0:00:00.055) 0:00:22.329 ********* 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 13:40:30 +0000 (0:00:00.046) 0:00:22.376 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659706828.848187, "block_size": 4096, "blocks": 0, "ctime": 1659706828.848187, "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": 1659706828.848187, "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 13:40:31 +0000 (0:00:00.260) 0:00:22.637 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST Add Bond with 2 ports using deprecated 'master' argument] *********** Friday 05 August 2022 13:40:31 +0000 (0:00:00.051) 0:00:22.688 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 13:40:31 +0000 (0:00:00.048) 0:00:22.736 ********* 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 13:40:31 +0000 (0:00:00.047) 0:00:22.784 ********* 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 13:40:31 +0000 (0:00:00.442) 0:00:23.227 ********* 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 13:40:33 +0000 (0:00:02.084) 0:00:25.311 ********* 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 13:40:35 +0000 (0:00:01.907) 0:00:27.219 ********* 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 13:40:35 +0000 (0:00:00.074) 0:00:27.293 ********* 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 13:40:35 +0000 (0:00:00.061) 0:00:27.355 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:40:35 +0000 (0:00:00.058) 0:00:27.413 ********* 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 13:40:36 +0000 (0:00:00.116) 0:00:27.530 ********* 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 13:40:36 +0000 (0:00:00.061) 0:00:27.592 ********* 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 13:40:36 +0000 (0:00:00.059) 0:00:27.651 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:40:36 +0000 (0:00:00.089) 0:00:27.741 ********* 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 13:40:37 +0000 (0:00:00.870) 0:00:28.611 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:40:37 +0000 (0:00:00.094) 0:00:28.706 ********* 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 13:40:37 +0000 (0:00:00.061) 0:00:28.767 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:40:37 +0000 (0:00:00.062) 0:00:28.830 ********* 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, 478cbbad-fe26-4749-8061-6357e83a5d73 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 478cbbad-fe26-4749-8061-6357e83a5d73 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 13:40:38 +0000 (0:00:01.185) 0:00:30.016 ********* 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 13:40:38 +0000 (0:00:00.060) 0:00:30.077 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 478cbbad-fe26-4749-8061-6357e83a5d73", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 478cbbad-fe26-4749-8061-6357e83a5d73 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 13:40:38 +0000 (0:00:00.080) 0:00:30.157 ********* 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, 478cbbad-fe26-4749-8061-6357e83a5d73\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 478cbbad-fe26-4749-8061-6357e83a5d73 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 478cbbad-fe26-4749-8061-6357e83a5d73", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 478cbbad-fe26-4749-8061-6357e83a5d73 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4981c495-7501-458e-9912-9f2f4581c39d (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 47c16fff-157f-46c1-826f-b72ce5977ada (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 13:40:38 +0000 (0:00:00.088) 0:00:30.245 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 13:40:38 +0000 (0:00:00.071) 0:00:30.317 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:39 +0000 (0:00:00.525) 0:00:30.842 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface deprecated-bond] ********************************** Friday 05 August 2022 13:40:39 +0000 (0:00:00.095) 0:00:30.938 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659706838.2025087, "block_size": 4096, "blocks": 0, "ctime": 1659706838.2025087, "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/deprecated-bond", "lnk_target": "../../devices/virtual/net/deprecated-bond", "mode": "0777", "mtime": 1659706838.2025087, "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 13:40:39 +0000 (0:00:00.289) 0:00:31.227 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:39 +0000 (0:00:00.083) 0:00:31.311 ********* 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 13:40:40 +0000 (0:00:00.172) 0:00:31.483 ********* 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 13:40:40 +0000 (0:00:00.102) 0:00:31.585 ********* 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 13:40:40 +0000 (0:00:00.078) 0:00:31.664 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659706838.1681056, "block_size": 4096, "blocks": 8, "ctime": 1659706838.1681056, "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": 1659706838.1681056, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 343, "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 13:40:40 +0000 (0:00:00.281) 0:00:31.946 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 13:40:40 +0000 (0:00:00.098) 0:00:32.044 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.031049", "end": "2022-08-05 13:40:40.846517", "rc": 0, "start": "2022-08-05 13:40:40.815468" } 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 13:40:40 +0000 (0:00:00.324) 0:00:32.369 ********* 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 13:40:40 +0000 (0:00:00.091) 0:00:32.461 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 05 August 2022 13:40:41 +0000 (0:00:00.059) 0:00:32.520 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 05 August 2022 13:40:41 +0000 (0:00:00.067) 0:00:32.588 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 05 August 2022 13:40:41 +0000 (0:00:00.103) 0:00:32.691 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:41 +0000 (0:00:00.083) 0:00:32.774 ********* 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 13:40:41 +0000 (0:00:00.103) 0:00:32.879 ********* 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 13:40:41 +0000 (0:00:00.081) 0:00:32.960 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659706838.276107, "block_size": 4096, "blocks": 8, "ctime": 1659706838.276107, "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": 1659706838.276107, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 175, "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 13:40:41 +0000 (0:00:00.396) 0:00:33.356 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 13:40:42 +0000 (0:00:00.150) 0:00:33.506 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.031520", "end": "2022-08-05 13:40:42.339908", "rc": 0, "start": "2022-08-05 13:40:42.308388" } 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 13:40:42 +0000 (0:00:00.399) 0:00:33.905 ********* 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 13:40:42 +0000 (0:00:00.171) 0:00:34.077 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 05 August 2022 13:40:42 +0000 (0:00:00.152) 0:00:34.229 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 05 August 2022 13:40:42 +0000 (0:00:00.127) 0:00:34.357 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 05 August 2022 13:40:43 +0000 (0:00:00.171) 0:00:34.529 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:40:43 +0000 (0:00:00.191) 0:00:34.720 ********* 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 13:40:43 +0000 (0:00:00.210) 0:00:34.930 ********* 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 13:40:43 +0000 (0:00:00.177) 0:00:35.108 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659706838.2901073, "block_size": 4096, "blocks": 8, "ctime": 1659706838.2901073, "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": 1659706838.2901073, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.1", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 175, "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 13:40:44 +0000 (0:00:00.372) 0:00:35.480 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 13:40:44 +0000 (0:00:00.194) 0:00:35.675 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.030664", "end": "2022-08-05 13:40:44.517776", "rc": 0, "start": "2022-08-05 13:40:44.487112" } 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 13:40:44 +0000 (0:00:00.403) 0:00:36.079 ********* 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 13:40:44 +0000 (0:00:00.178) 0:00:36.257 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 05 August 2022 13:40:45 +0000 (0:00:00.268) 0:00:36.526 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 05 August 2022 13:40:45 +0000 (0:00:00.130) 0:00:36.657 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 05 August 2022 13:40:45 +0000 (0:00:00.158) 0:00:36.815 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Friday 05 August 2022 13:40:45 +0000 (0:00:00.162) 0:00:36.978 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/deprecated-bond" ], "delta": "0:00:00.003717", "end": "2022-08-05 13:40:45.803129", "rc": 0, "start": "2022-08-05 13:40:45.799412" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Friday 05 August 2022 13:40:45 +0000 (0:00:00.377) 0:00:37.355 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "deprecated-bond" ], "delta": "0:00:00.004358", "end": "2022-08-05 13:40:46.181379", "rc": 0, "start": "2022-08-05 13:40:46.177021" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.31/24 brd 192.0.2.255 scope global dynamic noprefixroute deprecated-bond valid_lft 235sec preferred_lft 235sec TASK [** TEST check IPv6] ****************************************************** Friday 05 August 2022 13:40:46 +0000 (0:00:00.386) 0:00:37.742 ********* changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "deprecated-bond" ], "delta": "0:00:00.004276", "end": "2022-08-05 13:40:46.563598", "rc": 0, "start": "2022-08-05 13:40:46.559322" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::cd/128 scope global dynamic noprefixroute valid_lft 236sec preferred_lft 236sec inet6 2001:db8::6150:46cd:70fb:755c/64 scope global dynamic noprefixroute valid_lft 1800sec preferred_lft 1800sec inet6 fe80::9074:be31:1424:ddbc/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 13:40:46 +0000 (0:00:00.373) 0:00:38.116 ********* 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 13:40:47 +0000 (0:00:00.584) 0:00:38.700 ********* 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 13:40:48 +0000 (0:00:01.259) 0:00:39.959 ********* 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 13:40:51 +0000 (0:00:02.547) 0:00:42.506 ********* 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 13:40:53 +0000 (0:00:02.854) 0:00:45.361 ********* 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 13:40:54 +0000 (0:00:00.483) 0:00:45.845 ********* 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 13:40:54 +0000 (0:00:00.414) 0:00:46.259 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:40:55 +0000 (0:00:00.406) 0:00:46.666 ********* 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 13:40:55 +0000 (0:00:00.773) 0:00:47.439 ********* 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 13:40:56 +0000 (0:00:00.367) 0:00:47.807 ********* 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 13:40:56 +0000 (0:00:00.404) 0:00:48.212 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:40:57 +0000 (0:00:00.528) 0:00:48.740 ********* 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 13:40:58 +0000 (0:00:01.487) 0:00:50.228 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:40:59 +0000 (0:00:00.502) 0:00:50.731 ********* 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 13:40:59 +0000 (0:00:00.377) 0:00:51.109 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:41:00 +0000 (0:00:00.648) 0:00:51.757 ********* 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 13:41:02 +0000 (0:00:02.041) 0:00:53.798 ********* 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 13:41:02 +0000 (0:00:00.441) 0:00:54.240 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 13:41:03 +0000 (0:00:00.493) 0:00:54.733 ********* 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 13:41:03 +0000 (0:00:00.445) 0:00:55.178 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 13:41:04 +0000 (0:00:00.456) 0:00:55.635 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 05 August 2022 13:41:05 +0000 (0:00:01.076) 0:00:56.711 ********* fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "deprecated-bond" ], "delta": "0:00:00.007416", "end": "2022-08-05 13:41:05.741180", "rc": 1, "start": "2022-08-05 13:41:05.733764" } STDERR: Cannot find device "deprecated-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 05 August 2022 13:41:06 +0000 (0:00:00.754) 0:00:57.465 ********* ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.106039", "end": "2022-08-05 13:41:06.628361", "rc": 0, "start": "2022-08-05 13:41:06.522322" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 05 August 2022 13:41:06 +0000 (0:00:00.923) 0:00:58.389 ********* 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.018580", "end": "2022-08-05 13:41:07.505890", "rc": 0, "start": "2022-08-05 13:41:07.487310" } PLAY RECAP ********************************************************************* sut : ok=74 changed=9 unreachable=0 failed=0 skipped=32 rescued=0 ignored=1 Friday 05 August 2022 13:41:08 +0000 (0:00:01.119) 0:00:59.508 ********* =============================================================================== Install dnsmasq -------------------------------------------------------- 11.62s linux-system-roles.network : Check which packages are installed --------- 2.85s Create EPEL 8 ----------------------------------------------------------- 2.80s linux-system-roles.network : Check which services are running ----------- 2.55s linux-system-roles.network : Check which services are running ----------- 2.08s linux-system-roles.network : Configure networking connection profiles --- 2.04s Install pgrep, sysctl --------------------------------------------------- 2.02s linux-system-roles.network : Check which packages are installed --------- 1.91s Create test interfaces -------------------------------------------------- 1.75s linux-system-roles.network : Enable and start NetworkManager ------------ 1.49s Gathering Facts --------------------------------------------------------- 1.43s linux-system-roles.network : Ensure ansible_facts used by role are present --- 1.26s linux-system-roles.network : Configure networking connection profiles --- 1.19s Stop dnsmasq/radvd services --------------------------------------------- 1.12s linux-system-roles.network : Re-test connectivity ----------------------- 1.08s Remove test interfaces -------------------------------------------------- 0.92s Enable EPEL 8 ----------------------------------------------------------- 0.90s linux-system-roles.network : Enable and start NetworkManager ------------ 0.87s linux-system-roles.network : Install packages --------------------------- 0.77s Gathering Facts --------------------------------------------------------- 0.76s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---