# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond_removal.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 15:59:49 +0000 (0:00:00.032) 0:00:00.032 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 15:59:50 +0000 (0:00:00.881) 0:00:00.913 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 27 May 2022 15:59:50 +0000 (0:00:00.031) 0:00:00.945 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 15:59:50 +0000 (0:00:00.051) 0:00:00.996 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 15:59:50 +0000 (0:00:00.052) 0:00:01.049 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.505693", "end": "2022-05-27 15:59:52.578706", "rc": 0, "start": "2022-05-27 15:59:50.073013" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Last metadata expiration check: 0:00:13 ago on Fri May 27 15:59:37 2022. epel-release-latest-8.noarch.rpm 593 kB/s | 23 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-15.el8 @commandline 23 k Transaction Summary ================================================================================ Install 1 Package Total size: 23 k Installed size: 32 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-15.el8.noarch 1/1 Running scriptlet: epel-release-8-15.el8.noarch 1/1 Verifying : epel-release-8-15.el8.noarch 1/1 Installed products updated. Installed: epel-release-8-15.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 27 May 2022 15:59:53 +0000 (0:00:02.854) 0:00:03.903 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 15:59:53 +0000 (0:00:00.034) 0:00:03.938 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.566045", "end": "2022-05-27 15:59:53.440296", "rc": 0, "start": "2022-05-27 15:59:52.874251" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. TASK [Enable EPEL 6] *********************************************************** Friday 27 May 2022 15:59:53 +0000 (0:00:00.825) 0:00:04.763 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 27 May 2022 15:59:54 +0000 (0:00:00.031) 0:00:04.795 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 15:59:54 +0000 (0:00:00.038) 0:00:04.833 ************ ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 27 May 2022 15:59:54 +0000 (0:00:00.602) 0:00:05.436 ************ ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 27 May 2022 15:59:54 +0000 (0:00:00.032) 0:00:05.469 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-19.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 16:00:06 +0000 (0:00:11.591) 0:00:17.061 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 16:00:06 +0000 (0:00:00.038) 0:00:17.099 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 27 May 2022 16:00:08 +0000 (0:00:02.156) 0:00:19.255 ************ 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.665622", "end": "2022-05-27 16:00:09.867733", "rc": 0, "start": "2022-05-27 16:00:08.202111" } TASK [Get stat for interface test1] ******************************************** Friday 27 May 2022 16:00:10 +0000 (0:00:01.941) 0:00:21.197 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667208.3097856, "block_size": 4096, "blocks": 0, "ctime": 1653667208.3097856, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21346, "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": 1653667208.3097856, "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 27 May 2022 16:00:10 +0000 (0:00:00.424) 0:00:21.622 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** Friday 27 May 2022 16:00:10 +0000 (0:00:00.045) 0:00:21.668 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667208.3223279, "block_size": 4096, "blocks": 0, "ctime": 1653667208.3223279, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21932, "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": 1653667208.3223279, "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 27 May 2022 16:00:11 +0000 (0:00:00.275) 0:00:21.943 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** Friday 27 May 2022 16:00:11 +0000 (0:00:00.037) 0:00:21.981 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST Add Bond with 2 ports] ********************************************** Friday 27 May 2022 16:00:11 +0000 (0:00:00.030) 0:00:22.012 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:00:11 +0000 (0:00:00.033) 0:00:22.045 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 16:00:11 +0000 (0:00:00.150) 0:00:22.195 ************ 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 27 May 2022 16:00:11 +0000 (0:00:00.422) 0:00:22.618 ************ 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 27 May 2022 16:00:13 +0000 (0:00:02.152) 0:00:24.771 ************ 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 27 May 2022 16:00:15 +0000 (0:00:01.860) 0:00:26.631 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:00:15 +0000 (0:00:00.086) 0:00:26.717 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 16:00:16 +0000 (0:00:00.146) 0:00:26.864 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:00:16 +0000 (0:00:00.094) 0:00:26.958 ************ 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 27 May 2022 16:00:16 +0000 (0:00:00.786) 0:00:27.745 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:00:17 +0000 (0:00:00.092) 0:00:27.837 ************ 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 27 May 2022 16:00:17 +0000 (0:00:00.080) 0:00:27.917 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:00:17 +0000 (0:00:00.082) 0:00:28.000 ************ 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, 976d265a-e9bc-4fb2-940d-f6af629fac44 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 976d265a-e9bc-4fb2-940d-f6af629fac44 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 16:00:18 +0000 (0:00:01.041) 0:00:29.041 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 976d265a-e9bc-4fb2-940d-f6af629fac44", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 976d265a-e9bc-4fb2-940d-f6af629fac44 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 16:00:18 +0000 (0:00:00.102) 0:00:29.144 ************ 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, 976d265a-e9bc-4fb2-940d-f6af629fac44\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 976d265a-e9bc-4fb2-940d-f6af629fac44 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 976d265a-e9bc-4fb2-940d-f6af629fac44", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 976d265a-e9bc-4fb2-940d-f6af629fac44 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 16:00:18 +0000 (0:00:00.096) 0:00:29.240 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface nm-bond] ****************************************** Friday 27 May 2022 16:00:18 +0000 (0:00:00.449) 0:00:29.690 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667217.4187071, "block_size": 4096, "blocks": 0, "ctime": 1653667217.4187071, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22659, "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": 1653667217.4187071, "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 27 May 2022 16:00:19 +0000 (0:00:00.317) 0:00:30.007 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:00:19 +0000 (0:00:00.095) 0:00:30.102 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 16:00:19 +0000 (0:00:00.192) 0:00:30.295 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 16:00:19 +0000 (0:00:00.157) 0:00:30.452 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 16:00:19 +0000 (0:00:00.082) 0:00:30.534 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667217.3906648, "block_size": 4096, "blocks": 8, "ctime": 1653667217.3906648, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566165, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653667217.3906648, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 342, "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 27 May 2022 16:00:20 +0000 (0:00:00.316) 0:00:30.851 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 16:00:20 +0000 (0:00:00.087) 0:00:30.939 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.033212", "end": "2022-05-27 16:00:19.914284", "rc": 0, "start": "2022-05-27 16:00:19.881072" } 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 27 May 2022 16:00:20 +0000 (0:00:00.346) 0:00:31.285 ************ 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 27 May 2022 16:00:20 +0000 (0:00:00.088) 0:00:31.373 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 27 May 2022 16:00:20 +0000 (0:00:00.138) 0:00:31.512 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 27 May 2022 16:00:20 +0000 (0:00:00.086) 0:00:31.598 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 27 May 2022 16:00:20 +0000 (0:00:00.089) 0:00:31.688 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Friday 27 May 2022 16:00:20 +0000 (0:00:00.090) 0:00:31.778 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 16:00:21 +0000 (0:00:00.144) 0:00:31.922 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 16:00:21 +0000 (0:00:00.082) 0:00:32.005 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667217.487667, "block_size": 4096, "blocks": 8, "ctime": 1653667217.487667, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566173, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653667217.487667, "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 27 May 2022 16:00:21 +0000 (0:00:00.326) 0:00:32.332 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 16:00:21 +0000 (0:00:00.092) 0:00:32.424 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.033349", "end": "2022-05-27 16:00:21.399694", "rc": 0, "start": "2022-05-27 16:00:21.366345" } 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 27 May 2022 16:00:21 +0000 (0:00:00.347) 0:00:32.771 ************ 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 27 May 2022 16:00:22 +0000 (0:00:00.087) 0:00:32.859 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 27 May 2022 16:00:22 +0000 (0:00:00.110) 0:00:32.970 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 27 May 2022 16:00:22 +0000 (0:00:00.100) 0:00:33.070 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 27 May 2022 16:00:22 +0000 (0:00:00.088) 0:00:33.159 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Friday 27 May 2022 16:00:22 +0000 (0:00:00.085) 0:00:33.244 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 16:00:22 +0000 (0:00:00.202) 0:00:33.446 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 16:00:22 +0000 (0:00:00.082) 0:00:33.529 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667217.5056674, "block_size": 4096, "blocks": 8, "ctime": 1653667217.5056674, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566174, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653667217.5056674, "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 27 May 2022 16:00:23 +0000 (0:00:00.330) 0:00:33.859 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 16:00:23 +0000 (0:00:00.086) 0:00:33.946 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.032066", "end": "2022-05-27 16:00:22.922852", "rc": 0, "start": "2022-05-27 16:00:22.890786" } 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 27 May 2022 16:00:23 +0000 (0:00:00.363) 0:00:34.309 ************ 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 27 May 2022 16:00:23 +0000 (0:00:00.104) 0:00:34.414 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 27 May 2022 16:00:23 +0000 (0:00:00.087) 0:00:34.501 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 27 May 2022 16:00:23 +0000 (0:00:00.100) 0:00:34.601 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 27 May 2022 16:00:23 +0000 (0:00:00.100) 0:00:34.702 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Friday 27 May 2022 16:00:24 +0000 (0:00:00.088) 0:00:34.790 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:01.005217", "end": "2022-05-27 16:00:24.744362", "rc": 0, "start": "2022-05-27 16:00:23.739145" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Friday 27 May 2022 16:00:25 +0000 (0:00:01.395) 0:00:36.186 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004595", "end": "2022-05-27 16:00:25.129523", "rc": 0, "start": "2022-05-27 16:00:25.124928" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.50/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 235sec preferred_lft 235sec TASK [** TEST check IPv6] ****************************************************** Friday 27 May 2022 16:00:25 +0000 (0:00:00.322) 0:00:36.508 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004524", "end": "2022-05-27 16:00:25.454705", "rc": 0, "start": "2022-05-27 16:00:25.450181" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::131/128 scope global dynamic noprefixroute valid_lft 236sec preferred_lft 236sec inet6 2001:db8::9ba3:c6cf:a5ca:7398/64 scope global dynamic noprefixroute valid_lft 1800sec preferred_lft 1800sec inet6 fe80::8b55:368b:ec0:527/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:00:26 +0000 (0:00:00.321) 0:00:36.830 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 16:00:26 +0000 (0:00:00.142) 0:00:36.972 ************ 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 27 May 2022 16:00:26 +0000 (0:00:00.506) 0:00:37.479 ************ 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 27 May 2022 16:00:28 +0000 (0:00:02.043) 0:00:39.523 ************ 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 27 May 2022 16:00:30 +0000 (0:00:01.565) 0:00:41.089 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:00:30 +0000 (0:00:00.081) 0:00:41.171 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 16:00:30 +0000 (0:00:00.145) 0:00:41.317 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:00:30 +0000 (0:00:00.091) 0:00:41.408 ************ 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 27 May 2022 16:00:31 +0000 (0:00:00.529) 0:00:41.938 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:00:31 +0000 (0:00:00.089) 0:00:42.027 ************ 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 27 May 2022 16:00:31 +0000 (0:00:00.088) 0:00:42.115 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:00:31 +0000 (0:00:00.083) 0:00:42.199 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 16:00:32 +0000 (0:00:00.852) 0:00:43.051 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 16:00:32 +0000 (0:00:00.100) 0:00:43.152 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "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 : Re-test connectivity] *********************** Friday 27 May 2022 16:00:32 +0000 (0:00:00.095) 0:00:43.248 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the port1 profile "bond0.0" from the active connection] ************** Friday 27 May 2022 16:00:32 +0000 (0:00:00.325) 0:00:43.574 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "c", "show", "--active", "bond0.0" ], "delta": "0:00:00.025859", "end": "2022-05-27 16:00:32.540453", "rc": 0, "start": "2022-05-27 16:00:32.514594" } TASK [Get the port2 profile "bond0.1" from the active connection] ************** Friday 27 May 2022 16:00:33 +0000 (0:00:00.343) 0:00:43.918 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "c", "show", "--active", "bond0.1" ], "delta": "0:00:00.030031", "end": "2022-05-27 16:00:32.890648", "rc": 0, "start": "2022-05-27 16:00:32.860617" } TASK [Assert that the port1 profile is not activated] ************************** Friday 27 May 2022 16:00:33 +0000 (0:00:00.346) 0:00:44.264 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the port2 profile is not activated] ************************** Friday 27 May 2022 16:00:33 +0000 (0:00:00.091) 0:00:44.356 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get the port1 device state] ********************************************** Friday 27 May 2022 16:00:33 +0000 (0:00:00.093) 0:00:44.449 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the port2 device state] ********************************************** Friday 27 May 2022 16:00:33 +0000 (0:00:00.083) 0:00:44.533 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port1 device is in DOWN state] *************************** Friday 27 May 2022 16:00:33 +0000 (0:00:00.084) 0:00:44.617 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port2 device is in DOWN state] *************************** Friday 27 May 2022 16:00:33 +0000 (0:00:00.082) 0:00:44.700 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:00:33 +0000 (0:00:00.080) 0:00:44.781 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 16:00:34 +0000 (0:00:00.194) 0:00:44.975 ************ 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 27 May 2022 16:00:34 +0000 (0:00:00.495) 0:00:45.471 ************ 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 27 May 2022 16:00:36 +0000 (0:00:02.216) 0:00:47.687 ************ 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 27 May 2022 16:00:38 +0000 (0:00:01.565) 0:00:49.253 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:00:38 +0000 (0:00:00.082) 0:00:49.335 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 16:00:38 +0000 (0:00:00.144) 0:00:49.480 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:00:38 +0000 (0:00:00.097) 0:00:49.577 ************ 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 27 May 2022 16:00:39 +0000 (0:00:00.535) 0:00:50.112 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:00:39 +0000 (0:00:00.099) 0:00:50.212 ************ 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 27 May 2022 16:00:39 +0000 (0:00:00.081) 0:00:50.294 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:00:39 +0000 (0:00:00.081) 0:00:50.375 ************ 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, 006b639b-1552-4818-b4d5-49d52cba739c [008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 [009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 006b639b-1552-4818-b4d5-49d52cba739c (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 16:00:40 +0000 (0:00:00.860) 0:00:51.236 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 006b639b-1552-4818-b4d5-49d52cba739c", "[008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814", "[009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 006b639b-1552-4818-b4d5-49d52cba739c (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 16:00:40 +0000 (0:00:00.085) 0:00:51.321 ************ 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, 006b639b-1552-4818-b4d5-49d52cba739c\n[008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814\n[009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 006b639b-1552-4818-b4d5-49d52cba739c (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 006b639b-1552-4818-b4d5-49d52cba739c", "[008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814", "[009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 006b639b-1552-4818-b4d5-49d52cba739c (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 21f7e557-98bd-41e5-ad07-71cf681ba814 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 0b463763-32c8-4b38-adec-8c5c27b30d90 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 16:00:40 +0000 (0:00:00.087) 0:00:51.409 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:00:40 +0000 (0:00:00.301) 0:00:51.710 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 16:00:41 +0000 (0:00:00.192) 0:00:51.903 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 16:00:41 +0000 (0:00:00.478) 0:00:52.381 ************ 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 27 May 2022 16:00:43 +0000 (0:00:02.108) 0:00:54.490 ************ 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 27 May 2022 16:00:45 +0000 (0:00:01.526) 0:00:56.017 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:00:45 +0000 (0:00:00.138) 0:00:56.155 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 16:00:45 +0000 (0:00:00.137) 0:00:56.293 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:00:45 +0000 (0:00:00.097) 0:00:56.390 ************ 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 27 May 2022 16:00:46 +0000 (0:00:00.550) 0:00:56.941 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:00:46 +0000 (0:00:00.103) 0:00:57.044 ************ 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 27 May 2022 16:00:46 +0000 (0:00:00.091) 0:00:57.136 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:00:46 +0000 (0:00:00.094) 0:00:57.231 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0.1", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 16:00:47 +0000 (0:00:00.910) 0:00:58.141 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 16:00:47 +0000 (0:00:00.092) 0:00:58.234 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0.1", "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 : Re-test connectivity] *********************** Friday 27 May 2022 16:00:47 +0000 (0:00:00.090) 0:00:58.325 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the controller profile "bond0" from the active connection] *********** Friday 27 May 2022 16:00:47 +0000 (0:00:00.312) 0:00:58.637 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "c", "show", "--active", "bond0" ], "delta": "0:00:00.029959", "end": "2022-05-27 16:00:47.608214", "rc": 0, "start": "2022-05-27 16:00:47.578255" } STDOUT: connection.id: bond0 connection.uuid: 006b639b-1552-4818-b4d5-49d52cba739c connection.stable-id: -- connection.type: bond connection.interface-name: nm-bond connection.autoconnect: yes connection.autoconnect-priority: 0 connection.autoconnect-retries: -1 (default) connection.multi-connect: 0 (default) connection.auth-retries: -1 connection.timestamp: 1653667242 connection.read-only: no connection.permissions: -- connection.zone: -- connection.master: -- connection.slave-type: -- connection.autoconnect-slaves: -1 (default) connection.secondaries: -- connection.gateway-ping-timeout: 0 connection.metered: unknown connection.lldp: default connection.mdns: -1 (default) connection.llmnr: -1 (default) connection.wait-device-timeout: -1 ipv4.method: auto ipv4.dns: -- ipv4.dns-search: -- ipv4.dns-options: -- ipv4.dns-priority: 0 ipv4.addresses: -- ipv4.gateway: -- ipv4.routes: -- ipv4.route-metric: -1 ipv4.route-table: 0 (unspec) ipv4.routing-rules: -- ipv4.ignore-auto-routes: no ipv4.ignore-auto-dns: no ipv4.dhcp-client-id: -- ipv4.dhcp-iaid: -- ipv4.dhcp-timeout: 0 (default) ipv4.dhcp-send-hostname: yes ipv4.dhcp-hostname: -- ipv4.dhcp-fqdn: -- ipv4.dhcp-hostname-flags: 0x0 (none) ipv4.never-default: no ipv4.may-fail: yes ipv4.required-timeout: -1 (default) ipv4.dad-timeout: -1 (default) ipv4.dhcp-vendor-class-identifier: -- ipv4.dhcp-reject-servers: -- ipv6.method: auto ipv6.dns: -- ipv6.dns-search: -- ipv6.dns-options: -- ipv6.dns-priority: 0 ipv6.addresses: -- ipv6.gateway: -- ipv6.routes: -- ipv6.route-metric: -1 ipv6.route-table: 0 (unspec) ipv6.routing-rules: -- ipv6.ignore-auto-routes: no ipv6.ignore-auto-dns: no ipv6.never-default: no ipv6.may-fail: yes ipv6.required-timeout: -1 (default) ipv6.ip6-privacy: -1 (unknown) ipv6.addr-gen-mode: stable-privacy ipv6.ra-timeout: 0 (default) ipv6.dhcp-duid: -- ipv6.dhcp-iaid: -- ipv6.dhcp-timeout: 0 (default) ipv6.dhcp-send-hostname: yes ipv6.dhcp-hostname: -- ipv6.dhcp-hostname-flags: 0x0 (none) ipv6.token: -- bond.options: mode=active-backup,miimon=110 proxy.method: none proxy.browser-only: no proxy.pac-url: -- proxy.pac-script: -- GENERAL.NAME: bond0 GENERAL.UUID: 006b639b-1552-4818-b4d5-49d52cba739c GENERAL.DEVICES: nm-bond GENERAL.IP-IFACE: nm-bond GENERAL.STATE: activated GENERAL.DEFAULT: no GENERAL.DEFAULT6: yes GENERAL.SPEC-OBJECT: -- GENERAL.VPN: no GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/9 GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/7 GENERAL.ZONE: -- GENERAL.MASTER-PATH: -- IP4.ADDRESS[1]: 192.0.2.50/24 IP4.GATEWAY: 192.0.2.1 IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.0.2.1, mt = 300 IP4.ROUTE[2]: dst = 192.0.2.0/24, nh = 0.0.0.0, mt = 300 IP4.DNS[1]: 192.0.2.1 DHCP4.OPTION[1]: broadcast_address = 192.0.2.255 DHCP4.OPTION[2]: dhcp_lease_time = 240 DHCP4.OPTION[3]: dhcp_server_identifier = 192.0.2.1 DHCP4.OPTION[4]: domain_name_servers = 192.0.2.1 DHCP4.OPTION[5]: expiry = 1653667482 DHCP4.OPTION[6]: host_name = ip-10-29-163-177 DHCP4.OPTION[7]: ip_address = 192.0.2.50 DHCP4.OPTION[8]: next_server = 192.0.2.1 DHCP4.OPTION[9]: requested_broadcast_address = 1 DHCP4.OPTION[10]: requested_domain_name = 1 DHCP4.OPTION[11]: requested_domain_name_servers = 1 DHCP4.OPTION[12]: requested_domain_search = 1 DHCP4.OPTION[13]: requested_host_name = 1 DHCP4.OPTION[14]: requested_interface_mtu = 1 DHCP4.OPTION[15]: requested_ms_classless_static_routes = 1 DHCP4.OPTION[16]: requested_nis_domain = 1 DHCP4.OPTION[17]: requested_nis_servers = 1 DHCP4.OPTION[18]: requested_ntp_servers = 1 DHCP4.OPTION[19]: requested_rfc3442_classless_static_routes = 1 DHCP4.OPTION[20]: requested_root_path = 1 DHCP4.OPTION[21]: requested_routers = 1 DHCP4.OPTION[22]: requested_static_routes = 1 DHCP4.OPTION[23]: requested_subnet_mask = 1 DHCP4.OPTION[24]: requested_time_offset = 1 DHCP4.OPTION[25]: requested_wpad = 1 DHCP4.OPTION[26]: routers = 192.0.2.1 DHCP4.OPTION[27]: subnet_mask = 255.255.255.0 IP6.ADDRESS[1]: 2001:db8::f08d:3c1f:1acd:bcc6/64 IP6.ADDRESS[2]: 2001:db8::131/128 IP6.ADDRESS[3]: fe80::a0e8:8814:c1a9:d10d/64 IP6.GATEWAY: fe80::d089:8dff:fe1a:8f2d IP6.ROUTE[1]: dst = 2001:db8::/64, nh = ::, mt = 300 IP6.ROUTE[2]: dst = ::/0, nh = fe80::d089:8dff:fe1a:8f2d, mt = 300 IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 300 IP6.ROUTE[4]: dst = 2001:db8::131/128, nh = ::, mt = 300 IP6.DNS[1]: fe80::d089:8dff:fe1a:8f2d IP6.DNS[2]: 2001:db8::bc3d:b9ff:fef7:cbb5 DHCP6.OPTION[1]: dhcp6_name_servers = 2001:db8::bc3d:b9ff:fef7:cbb5 DHCP6.OPTION[2]: ip6_address = 2001:db8::131 TASK [Assert that the controller profile is activated] ************************* Friday 27 May 2022 16:00:48 +0000 (0:00:00.350) 0:00:58.988 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get the controller device details] *************************************** Friday 27 May 2022 16:00:48 +0000 (0:00:00.150) 0:00:59.138 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the controller profile is activated] ************************* Friday 27 May 2022 16:00:48 +0000 (0:00:00.090) 0:00:59.229 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:00:48 +0000 (0:00:00.090) 0:00:59.320 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 16:00:48 +0000 (0:00:00.182) 0:00:59.502 ************ 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 27 May 2022 16:00:49 +0000 (0:00:00.540) 0:01:00.042 ************ 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 27 May 2022 16:00:51 +0000 (0:00:02.048) 0:01:02.090 ************ 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 27 May 2022 16:00:52 +0000 (0:00:01.553) 0:01:03.644 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:00:52 +0000 (0:00:00.088) 0:01:03.732 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 16:00:53 +0000 (0:00:00.136) 0:01:03.869 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:00:53 +0000 (0:00:00.086) 0:01:03.956 ************ 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 27 May 2022 16:00:53 +0000 (0:00:00.518) 0:01:04.474 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:00:53 +0000 (0:00:00.089) 0:01:04.563 ************ 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 27 May 2022 16:00:53 +0000 (0:00:00.080) 0:01:04.644 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:00:53 +0000 (0:00:00.081) 0:01:04.725 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 16:00:54 +0000 (0:00:00.831) 0:01:05.557 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 16:00:54 +0000 (0:00:00.086) 0:01:05.644 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "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 : Re-test connectivity] *********************** Friday 27 May 2022 16:00:54 +0000 (0:00:00.085) 0:01:05.729 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 27 May 2022 16:00:55 +0000 (0:00:00.308) 0:01:06.037 ************ fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.009043", "end": "2022-05-27 16:00:54.988773", "rc": 1, "start": "2022-05-27 16:00:54.979730" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 27 May 2022 16:00:55 +0000 (0:00:00.322) 0:01:06.359 ************ ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.071436", "end": "2022-05-27 16:00:55.373609", "rc": 0, "start": "2022-05-27 16:00:55.302173" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 27 May 2022 16:00:55 +0000 (0:00:00.395) 0:01:06.755 ************ 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.020673", "end": "2022-05-27 16:00:55.715360", "rc": 0, "start": "2022-05-27 16:00:55.694687" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** Friday 27 May 2022 16:00:56 +0000 (0:00:00.337) 0:01:07.093 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=107 changed=12 unreachable=0 failed=0 skipped=43 rescued=0 ignored=1 Friday 27 May 2022 16:00:56 +0000 (0:00:00.025) 0:01:07.119 ************ =============================================================================== Install dnsmasq -------------------------------------------------------- 11.59s Create EPEL 8 ----------------------------------------------------------- 2.85s linux-system-roles.network : Check which services are running ----------- 2.22s Install pgrep, sysctl --------------------------------------------------- 2.16s linux-system-roles.network : Check which services are running ----------- 2.15s linux-system-roles.network : Check which services are running ----------- 2.11s linux-system-roles.network : Check which services are running ----------- 2.05s linux-system-roles.network : Check which services are running ----------- 2.04s Create test interfaces -------------------------------------------------- 1.94s linux-system-roles.network : Check which packages are installed --------- 1.86s linux-system-roles.network : Check which packages are installed --------- 1.57s linux-system-roles.network : Check which packages are installed --------- 1.57s linux-system-roles.network : Check which packages are installed --------- 1.55s linux-system-roles.network : Check which packages are installed --------- 1.53s ** TEST check polling interval ------------------------------------------ 1.40s linux-system-roles.network : Configure networking connection profiles --- 0.91s Gathering Facts --------------------------------------------------------- 0.88s linux-system-roles.network : Configure networking connection profiles --- 0.86s linux-system-roles.network : Configure networking connection profiles --- 0.83s Enable EPEL 8 ----------------------------------------------------------- 0.83s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature ---^---^---^---^---^---