# 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] ********************************************************* Monday 30 May 2022 23:44:02 +0000 (0:00:00.030) 0:00:00.030 ************ ok: [sut] TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:44:02 +0000 (0:00:00.859) 0:00:00.889 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Monday 30 May 2022 23:44:02 +0000 (0:00:00.032) 0:00:00.921 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:44:02 +0000 (0:00:00.041) 0:00:00.963 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 34] ********************************************************** Monday 30 May 2022 23:44:03 +0000 (0:00:00.047) 0:00:01.011 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Monday 30 May 2022 23:44:03 +0000 (0:00:00.025) 0:00:01.036 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Monday 30 May 2022 23:44:03 +0000 (0:00:00.026) 0:00:01.063 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Monday 30 May 2022 23:44:03 +0000 (0:00:00.025) 0:00:01.089 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Monday 30 May 2022 23:44:03 +0000 (0:00:00.024) 0:00:01.113 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Monday 30 May 2022 23:44:03 +0000 (0:00:00.030) 0:00:01.144 ************ ok: [sut] TASK [INIT Prepare setup] ****************************************************** Monday 30 May 2022 23:44:03 +0000 (0:00:00.550) 0:00:01.694 ************ ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Monday 30 May 2022 23:44:03 +0000 (0:00:00.031) 0:00:01.726 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.86-5.fc34.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Monday 30 May 2022 23:44:09 +0000 (0:00:06.224) 0:00:07.951 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Monday 30 May 2022 23:44:09 +0000 (0:00:00.047) 0:00:07.998 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Monday 30 May 2022 23:44:14 +0000 (0:00:04.303) 0:00:12.302 ************ 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.615232", "end": "2022-05-30 23:44:15.656383", "rc": 0, "start": "2022-05-30 23:44:14.041151" } TASK [Get stat for interface test1] ******************************************** Monday 30 May 2022 23:44:16 +0000 (0:00:01.991) 0:00:14.294 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653954254.119077, "block_size": 4096, "blocks": 0, "ctime": 1653954254.119077, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 24614, "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": 1653954254.119077, "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] ********************************** Monday 30 May 2022 23:44:16 +0000 (0:00:00.379) 0:00:14.673 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** Monday 30 May 2022 23:44:16 +0000 (0:00:00.041) 0:00:14.715 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653954254.1278176, "block_size": 4096, "blocks": 0, "ctime": 1653954254.1278176, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 25200, "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": 1653954254.1278176, "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] ********************************** Monday 30 May 2022 23:44:16 +0000 (0:00:00.254) 0:00:14.970 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** Monday 30 May 2022 23:44:16 +0000 (0:00:00.036) 0:00:15.006 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST Add Bond with 2 ports] ********************************************** Monday 30 May 2022 23:44:17 +0000 (0:00:00.028) 0:00:15.035 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:44:17 +0000 (0:00:00.029) 0:00:15.065 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:44:17 +0000 (0:00:00.151) 0:00:15.217 ************ 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] *********** Monday 30 May 2022 23:44:17 +0000 (0:00:00.417) 0:00:15.635 ************ 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] ********* Monday 30 May 2022 23:44:19 +0000 (0:00:02.104) 0:00:17.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 : Print network provider] ********************* Monday 30 May 2022 23:44:20 +0000 (0:00:01.158) 0:00:18.898 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:44:20 +0000 (0:00:00.081) 0:00:18.979 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:44:21 +0000 (0:00:00.148) 0:00:19.127 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:44:21 +0000 (0:00:00.103) 0:00:19.231 ************ 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] ************ Monday 30 May 2022 23:44:22 +0000 (0:00:00.789) 0:00:20.020 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:44:22 +0000 (0:00:00.091) 0:00:20.111 ************ 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] *** Monday 30 May 2022 23:44:22 +0000 (0:00:00.075) 0:00:20.187 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:44:22 +0000 (0:00:00.077) 0:00:20.264 ************ 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, 87a23954-16a5-4adc-a379-8a4c3579c809 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 87a23954-16a5-4adc-a379-8a4c3579c809 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Monday 30 May 2022 23:44:23 +0000 (0:00:01.370) 0:00:21.635 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 87a23954-16a5-4adc-a379-8a4c3579c809", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 87a23954-16a5-4adc-a379-8a4c3579c809 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:44:23 +0000 (0:00:00.083) 0:00:21.718 ************ 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, 87a23954-16a5-4adc-a379-8a4c3579c809\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 87a23954-16a5-4adc-a379-8a4c3579c809 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 87a23954-16a5-4adc-a379-8a4c3579c809", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 87a23954-16a5-4adc-a379-8a4c3579c809 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Monday 30 May 2022 23:44:23 +0000 (0:00:00.119) 0:00:21.838 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface nm-bond] ****************************************** Monday 30 May 2022 23:44:24 +0000 (0:00:00.387) 0:00:22.225 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653954262.677293, "block_size": 4096, "blocks": 0, "ctime": 1653954262.677293, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 25936, "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": 1653954262.677293, "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] ******************************** Monday 30 May 2022 23:44:24 +0000 (0:00:00.302) 0:00:22.528 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:44:24 +0000 (0:00:00.086) 0:00:22.615 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Monday 30 May 2022 23:44:24 +0000 (0:00:00.193) 0:00:22.808 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 30 May 2022 23:44:24 +0000 (0:00:00.151) 0:00:22.959 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Monday 30 May 2022 23:44:25 +0000 (0:00:00.077) 0:00:23.037 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653954262.4839442, "block_size": 4096, "blocks": 8, "ctime": 1653954262.4839442, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 138643, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653954262.4839442, "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] ******************** Monday 30 May 2022 23:44:25 +0000 (0:00:00.301) 0:00:23.338 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:44:25 +0000 (0:00:00.088) 0:00:23.426 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.183514", "end": "2022-05-30 23:44:25.229797", "rc": 0, "start": "2022-05-30 23:44:25.046283" } 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] *** Monday 30 May 2022 23:44:25 +0000 (0:00:00.485) 0:00:23.912 ************ 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] ************************** Monday 30 May 2022 23:44:26 +0000 (0:00:00.100) 0:00:24.013 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Monday 30 May 2022 23:44:26 +0000 (0:00:00.135) 0:00:24.148 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Monday 30 May 2022 23:44:26 +0000 (0:00:00.083) 0:00:24.231 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Monday 30 May 2022 23:44:26 +0000 (0:00:00.086) 0:00:24.317 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Monday 30 May 2022 23:44:26 +0000 (0:00:00.081) 0:00:24.399 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 30 May 2022 23:44:26 +0000 (0:00:00.138) 0:00:24.537 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Monday 30 May 2022 23:44:26 +0000 (0:00:00.084) 0:00:24.622 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653954262.7139494, "block_size": 4096, "blocks": 8, "ctime": 1653954262.7139494, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 138714, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653954262.7139494, "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] ******************** Monday 30 May 2022 23:44:26 +0000 (0:00:00.373) 0:00:24.995 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:44:27 +0000 (0:00:00.082) 0:00:25.078 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.028895", "end": "2022-05-30 23:44:26.722261", "rc": 0, "start": "2022-05-30 23:44:26.693366" } 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] *** Monday 30 May 2022 23:44:27 +0000 (0:00:00.323) 0:00:25.401 ************ 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] ************************ Monday 30 May 2022 23:44:27 +0000 (0:00:00.083) 0:00:25.485 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Monday 30 May 2022 23:44:27 +0000 (0:00:00.081) 0:00:25.566 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Monday 30 May 2022 23:44:27 +0000 (0:00:00.080) 0:00:25.647 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Monday 30 May 2022 23:44:27 +0000 (0:00:00.082) 0:00:25.730 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Monday 30 May 2022 23:44:27 +0000 (0:00:00.079) 0:00:25.809 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 30 May 2022 23:44:27 +0000 (0:00:00.176) 0:00:25.985 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Monday 30 May 2022 23:44:28 +0000 (0:00:00.084) 0:00:26.069 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653954262.73995, "block_size": 4096, "blocks": 8, "ctime": 1653954262.73995, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 138715, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653954262.73995, "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] ******************** Monday 30 May 2022 23:44:28 +0000 (0:00:00.305) 0:00:26.375 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:44:28 +0000 (0:00:00.079) 0:00:26.454 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.028941", "end": "2022-05-30 23:44:28.101212", "rc": 0, "start": "2022-05-30 23:44:28.072271" } 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] *** Monday 30 May 2022 23:44:28 +0000 (0:00:00.325) 0:00:26.780 ************ 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] ************************ Monday 30 May 2022 23:44:28 +0000 (0:00:00.081) 0:00:26.862 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Monday 30 May 2022 23:44:28 +0000 (0:00:00.078) 0:00:26.940 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Monday 30 May 2022 23:44:29 +0000 (0:00:00.079) 0:00:27.020 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Monday 30 May 2022 23:44:29 +0000 (0:00:00.079) 0:00:27.100 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Monday 30 May 2022 23:44:29 +0000 (0:00:00.080) 0:00:27.181 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:00.003609", "end": "2022-05-30 23:44:28.808782", "rc": 0, "start": "2022-05-30 23:44:28.805173" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Monday 30 May 2022 23:44:29 +0000 (0:00:00.311) 0:00:27.493 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.003929", "end": "2022-05-30 23:44:29.115708", "rc": 0, "start": "2022-05-30 23:44:29.111779" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.245/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 237sec preferred_lft 237sec TASK [** TEST check IPv6] ****************************************************** Monday 30 May 2022 23:44:29 +0000 (0:00:00.311) 0:00:27.804 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.003853", "end": "2022-05-30 23:44:29.432116", "rc": 0, "start": "2022-05-30 23:44:29.428263" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::76/128 scope global dynamic noprefixroute valid_lft 237sec preferred_lft 237sec inet6 2001:db8::9485:6434:fa01:2b7c/64 scope global dynamic noprefixroute valid_lft 1796sec preferred_lft 1796sec inet6 fe80::8408:6567:e8e4:a65c/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:44:30 +0000 (0:00:00.320) 0:00:28.124 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:44:30 +0000 (0:00:00.219) 0:00:28.344 ************ 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] *********** Monday 30 May 2022 23:44:30 +0000 (0:00:00.475) 0:00:28.819 ************ 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] ********* Monday 30 May 2022 23:44:33 +0000 (0:00:03.006) 0:00:31.825 ************ 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] ********************* Monday 30 May 2022 23:44:34 +0000 (0:00:00.932) 0:00:32.758 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:44:34 +0000 (0:00:00.168) 0:00:32.926 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:44:35 +0000 (0:00:00.130) 0:00:33.057 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:44:35 +0000 (0:00:00.081) 0:00:33.138 ************ 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] ************ Monday 30 May 2022 23:44:35 +0000 (0:00:00.515) 0:00:33.654 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:44:35 +0000 (0:00:00.091) 0:00:33.746 ************ 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] *** Monday 30 May 2022 23:44:35 +0000 (0:00:00.074) 0:00:33.820 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:44:35 +0000 (0:00:00.077) 0:00:33.897 ************ 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] *********************** Monday 30 May 2022 23:44:36 +0000 (0:00:00.761) 0:00:34.659 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:44:36 +0000 (0:00:00.075) 0:00:34.734 ************ 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] *********************** Monday 30 May 2022 23:44:36 +0000 (0:00:00.079) 0:00:34.814 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the port1 profile "bond0.0" from the active connection] ************** Monday 30 May 2022 23:44:37 +0000 (0:00:00.285) 0:00:35.100 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "c", "show", "--active", "bond0.0" ], "delta": "0:00:00.023688", "end": "2022-05-30 23:44:36.737410", "rc": 0, "start": "2022-05-30 23:44:36.713722" } TASK [Get the port2 profile "bond0.1" from the active connection] ************** Monday 30 May 2022 23:44:37 +0000 (0:00:00.320) 0:00:35.421 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "c", "show", "--active", "bond0.1" ], "delta": "0:00:00.023885", "end": "2022-05-30 23:44:37.061626", "rc": 0, "start": "2022-05-30 23:44:37.037741" } TASK [Assert that the port1 profile is not activated] ************************** Monday 30 May 2022 23:44:37 +0000 (0:00:00.315) 0:00:35.736 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the port2 profile is not activated] ************************** Monday 30 May 2022 23:44:37 +0000 (0:00:00.078) 0:00:35.815 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get the port1 device state] ********************************************** Monday 30 May 2022 23:44:37 +0000 (0:00:00.077) 0:00:35.893 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the port2 device state] ********************************************** Monday 30 May 2022 23:44:37 +0000 (0:00:00.069) 0:00:35.963 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port1 device is in DOWN state] *************************** Monday 30 May 2022 23:44:38 +0000 (0:00:00.071) 0:00:36.034 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port2 device is in DOWN state] *************************** Monday 30 May 2022 23:44:38 +0000 (0:00:00.068) 0:00:36.103 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:44:38 +0000 (0:00:00.069) 0:00:36.172 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:44:38 +0000 (0:00:00.128) 0:00:36.300 ************ 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] *********** Monday 30 May 2022 23:44:38 +0000 (0:00:00.480) 0:00:36.781 ************ 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] ********* Monday 30 May 2022 23:44:40 +0000 (0:00:02.048) 0:00:38.830 ************ 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] ********************* Monday 30 May 2022 23:44:41 +0000 (0:00:00.832) 0:00:39.663 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:44:41 +0000 (0:00:00.079) 0:00:39.742 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:44:41 +0000 (0:00:00.143) 0:00:39.886 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:44:41 +0000 (0:00:00.093) 0:00:39.980 ************ 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] ************ Monday 30 May 2022 23:44:42 +0000 (0:00:00.525) 0:00:40.506 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:44:42 +0000 (0:00:00.089) 0:00:40.595 ************ 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] *** Monday 30 May 2022 23:44:42 +0000 (0:00:00.068) 0:00:40.664 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:44:42 +0000 (0:00:00.071) 0:00:40.735 ************ 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, 7b885755-1b31-4a13-9b90-48a49aa14cf6 [008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 [009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 7b885755-1b31-4a13-9b90-48a49aa14cf6 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Monday 30 May 2022 23:44:43 +0000 (0:00:00.892) 0:00:41.628 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 7b885755-1b31-4a13-9b90-48a49aa14cf6", "[008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032", "[009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 7b885755-1b31-4a13-9b90-48a49aa14cf6 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:44:43 +0000 (0:00:00.075) 0:00:41.704 ************ 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, 7b885755-1b31-4a13-9b90-48a49aa14cf6\n[008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032\n[009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 7b885755-1b31-4a13-9b90-48a49aa14cf6 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 7b885755-1b31-4a13-9b90-48a49aa14cf6", "[008] #1, state:up persistent_state:present, 'bond0.0': update connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032", "[009] #2, state:up persistent_state:present, 'bond0.1': update connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 7b885755-1b31-4a13-9b90-48a49aa14cf6 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 7593edee-0f39-45c7-b8eb-b573f7837032 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 40ebe4f1-90bb-4d82-8183-3795fb2d647b (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Monday 30 May 2022 23:44:43 +0000 (0:00:00.080) 0:00:41.784 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:44:44 +0000 (0:00:00.286) 0:00:42.071 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:44:44 +0000 (0:00:00.127) 0:00:42.199 ************ 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] *********** Monday 30 May 2022 23:44:44 +0000 (0:00:00.466) 0:00:42.666 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Monday 30 May 2022 23:44:46 +0000 (0:00:02.000) 0:00:44.667 ************ 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] ********************* Monday 30 May 2022 23:44:47 +0000 (0:00:00.874) 0:00:45.541 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:44:47 +0000 (0:00:00.078) 0:00:45.619 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:44:47 +0000 (0:00:00.164) 0:00:45.784 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:44:47 +0000 (0:00:00.093) 0:00:45.878 ************ 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] ************ Monday 30 May 2022 23:44:48 +0000 (0:00:00.537) 0:00:46.415 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:44:48 +0000 (0:00:00.085) 0:00:46.500 ************ 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] *** Monday 30 May 2022 23:44:48 +0000 (0:00:00.076) 0:00:46.576 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:44:48 +0000 (0:00:00.074) 0:00:46.651 ************ 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] *********************** Monday 30 May 2022 23:44:49 +0000 (0:00:00.952) 0:00:47.603 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:44:49 +0000 (0:00:00.079) 0:00:47.683 ************ 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] *********************** Monday 30 May 2022 23:44:49 +0000 (0:00:00.076) 0:00:47.760 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the controller profile "bond0" from the active connection] *********** Monday 30 May 2022 23:44:50 +0000 (0:00:00.290) 0:00:48.051 ************ ok: [sut] => { "changed": false, "cmd": [ "nmcli", "c", "show", "--active", "bond0" ], "delta": "0:00:00.026581", "end": "2022-05-30 23:44:49.692503", "rc": 0, "start": "2022-05-30 23:44:49.665922" } STDOUT: connection.id: bond0 connection.uuid: 7b885755-1b31-4a13-9b90-48a49aa14cf6 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: 1653954282 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.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.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: 7b885755-1b31-4a13-9b90-48a49aa14cf6 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/8 GENERAL.ZONE: -- GENERAL.MASTER-PATH: -- IP4.ADDRESS[1]: 192.0.2.245/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 = 1653954522 DHCP4.OPTION[6]: host_name = ip-10-29-163-164 DHCP4.OPTION[7]: ip_address = 192.0.2.245 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::3398:c3b7:5519:a4ab/64 IP6.ADDRESS[2]: 2001:db8::76/128 IP6.ADDRESS[3]: fe80::db79:f021:c159:9851/64 IP6.GATEWAY: fe80::c4de:5dff:fee2:31d6 IP6.ROUTE[1]: dst = 2001:db8::/64, nh = ::, mt = 300 IP6.ROUTE[2]: dst = ::/0, nh = fe80::c4de:5dff:fee2:31d6, mt = 300 IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 300 IP6.ROUTE[4]: dst = 2001:db8::76/128, nh = ::, mt = 300 IP6.DNS[1]: fe80::c4de:5dff:fee2:31d6 IP6.DNS[2]: 2001:db8::c4de:5dff:fee2:31d6 DHCP6.OPTION[1]: dhcp6_name_servers = 2001:db8::c4de:5dff:fee2:31d6 DHCP6.OPTION[2]: fqdn_fqdn = ip-10-29-163-164 DHCP6.OPTION[3]: ip6_address = 2001:db8::76 TASK [Assert that the controller profile is activated] ************************* Monday 30 May 2022 23:44:50 +0000 (0:00:00.321) 0:00:48.372 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get the controller device details] *************************************** Monday 30 May 2022 23:44:50 +0000 (0:00:00.102) 0:00:48.475 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the controller profile is activated] ************************* Monday 30 May 2022 23:44:50 +0000 (0:00:00.071) 0:00:48.547 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:44:50 +0000 (0:00:00.077) 0:00:48.624 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Monday 30 May 2022 23:44:50 +0000 (0:00:00.130) 0:00:48.755 ************ 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] *********** Monday 30 May 2022 23:44:51 +0000 (0:00:00.520) 0:00:49.275 ************ 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] ********* Monday 30 May 2022 23:44:53 +0000 (0:00:01.993) 0:00:51.268 ************ 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] ********************* Monday 30 May 2022 23:44:54 +0000 (0:00:00.821) 0:00:52.090 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:44:54 +0000 (0:00:00.076) 0:00:52.166 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 30 May 2022 23:44:54 +0000 (0:00:00.124) 0:00:52.291 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:44:54 +0000 (0:00:00.080) 0:00:52.371 ************ 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] ************ Monday 30 May 2022 23:44:54 +0000 (0:00:00.511) 0:00:52.883 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:44:54 +0000 (0:00:00.086) 0:00:52.969 ************ 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] *** Monday 30 May 2022 23:44:55 +0000 (0:00:00.075) 0:00:53.045 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:44:55 +0000 (0:00:00.076) 0:00:53.122 ************ 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] *********************** Monday 30 May 2022 23:44:55 +0000 (0:00:00.759) 0:00:53.882 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:44:55 +0000 (0:00:00.077) 0:00:53.959 ************ 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] *********************** Monday 30 May 2022 23:44:56 +0000 (0:00:00.077) 0:00:54.036 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Monday 30 May 2022 23:44:56 +0000 (0:00:00.289) 0:00:54.325 ************ fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.007748", "end": "2022-05-30 23:44:55.945971", "rc": 1, "start": "2022-05-30 23:44:55.938223" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Monday 30 May 2022 23:44:56 +0000 (0:00:00.296) 0:00:54.622 ************ ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.060844", "end": "2022-05-30 23:44:56.297048", "rc": 0, "start": "2022-05-30 23:44:56.236204" } TASK [Stop dnsmasq/radvd services] ********************************************* Monday 30 May 2022 23:44:56 +0000 (0:00:00.360) 0:00:54.982 ************ 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.016592", "end": "2022-05-30 23:44:56.611224", "rc": 0, "start": "2022-05-30 23:44:56.594632" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** Monday 30 May 2022 23:44:57 +0000 (0:00:00.306) 0:00:55.288 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=105 changed=10 unreachable=0 failed=0 skipped=45 rescued=0 ignored=1 Monday 30 May 2022 23:44:57 +0000 (0:00:00.025) 0:00:55.313 ************ =============================================================================== Install dnsmasq --------------------------------------------------------- 6.22s Install pgrep, sysctl --------------------------------------------------- 4.30s linux-system-roles.network : Check which services are running ----------- 3.01s linux-system-roles.network : Check which services are running ----------- 2.10s linux-system-roles.network : Check which services are running ----------- 2.05s linux-system-roles.network : Check which services are running ----------- 2.00s linux-system-roles.network : Check which services are running ----------- 1.99s Create test interfaces -------------------------------------------------- 1.99s linux-system-roles.network : Check which packages are installed --------- 1.16s linux-system-roles.network : Configure networking connection profiles --- 0.95s linux-system-roles.network : Check which packages are installed --------- 0.93s linux-system-roles.network : Configure networking connection profiles --- 0.89s linux-system-roles.network : Check which packages are installed --------- 0.87s Gathering Facts --------------------------------------------------------- 0.86s linux-system-roles.network : Check which packages are installed --------- 0.83s linux-system-roles.network : Check which packages are installed --------- 0.82s linux-system-roles.network : Configure networking connection profiles --- 0.76s Gathering Facts --------------------------------------------------------- 0.55s linux-system-roles.network : Enable and start NetworkManager ------------ 0.54s linux-system-roles.network : Enable and start NetworkManager ------------ 0.53s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---