# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond.yml' with nm as provider] ************* TASK [Gathering Facts] ********************************************************* Monday 30 May 2022 23:29:06 +0000 (0:00:00.030) 0:00:00.030 ************ ok: [sut] TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:29:06 +0000 (0:00:00.857) 0:00:00.888 ************ 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:29:06 +0000 (0:00:00.031) 0:00:00.920 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:29:06 +0000 (0:00:00.045) 0:00:00.966 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 34] ********************************************************** Monday 30 May 2022 23:29:07 +0000 (0:00:00.057) 0:00:01.024 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Monday 30 May 2022 23:29:07 +0000 (0:00:00.027) 0:00:01.051 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Monday 30 May 2022 23:29:07 +0000 (0:00:00.029) 0:00:01.081 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Monday 30 May 2022 23:29:07 +0000 (0:00:00.028) 0:00:01.109 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Monday 30 May 2022 23:29:07 +0000 (0:00:00.029) 0:00:01.139 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Monday 30 May 2022 23:29:07 +0000 (0:00:00.035) 0:00:01.174 ************ ok: [sut] TASK [INIT Prepare setup] ****************************************************** Monday 30 May 2022 23:29:07 +0000 (0:00:00.559) 0:00:01.734 ************ ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Monday 30 May 2022 23:29:07 +0000 (0:00:00.032) 0:00:01.766 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.86-5.fc34.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Monday 30 May 2022 23:29:13 +0000 (0:00:06.203) 0:00:07.970 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Monday 30 May 2022 23:29:14 +0000 (0:00:00.041) 0:00:08.012 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Monday 30 May 2022 23:29:16 +0000 (0:00:02.925) 0:00:10.937 ************ 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.712805", "end": "2022-05-30 23:29:18.434983", "rc": 0, "start": "2022-05-30 23:29:16.722178" } TASK [Get stat for interface test1] ******************************************** Monday 30 May 2022 23:29:19 +0000 (0:00:02.105) 0:00:13.042 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653953356.82385, "block_size": 4096, "blocks": 0, "ctime": 1653953356.82385, "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": 1653953356.82385, "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:29:19 +0000 (0:00:00.403) 0:00:13.446 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** Monday 30 May 2022 23:29:19 +0000 (0:00:00.041) 0:00:13.488 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653953356.8339884, "block_size": 4096, "blocks": 0, "ctime": 1653953356.8339884, "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": 1653953356.8339884, "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:29:19 +0000 (0:00:00.254) 0:00:13.742 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** Monday 30 May 2022 23:29:19 +0000 (0:00:00.036) 0:00:13.779 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST Add Bond with 2 ports] ********************************************** Monday 30 May 2022 23:29:19 +0000 (0:00:00.029) 0:00:13.809 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:29:19 +0000 (0:00:00.032) 0:00:13.841 ************ 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:29:20 +0000 (0:00:00.156) 0:00:13.997 ************ 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:29:20 +0000 (0:00:00.408) 0:00:14.405 ************ 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:29:22 +0000 (0:00:02.168) 0:00:16.574 ************ 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:29:24 +0000 (0:00:01.428) 0:00:18.002 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:29:24 +0000 (0:00:00.116) 0:00:18.118 ************ 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:29:24 +0000 (0:00:00.165) 0:00:18.284 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:29:24 +0000 (0:00:00.094) 0:00:18.379 ************ 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:29:25 +0000 (0:00:00.809) 0:00:19.188 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:29:25 +0000 (0:00:00.096) 0:00:19.284 ************ 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:29:25 +0000 (0:00:00.080) 0:00:19.365 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:29:25 +0000 (0:00:00.082) 0:00:19.448 ************ 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, 34b3472f-2e11-4868-8694-e3b38c12db39 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 34b3472f-2e11-4868-8694-e3b38c12db39 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Monday 30 May 2022 23:29:26 +0000 (0:00:01.434) 0:00:20.882 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 34b3472f-2e11-4868-8694-e3b38c12db39", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 34b3472f-2e11-4868-8694-e3b38c12db39 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:29:27 +0000 (0:00:00.095) 0:00:20.978 ************ 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, 34b3472f-2e11-4868-8694-e3b38c12db39\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 34b3472f-2e11-4868-8694-e3b38c12db39 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 34b3472f-2e11-4868-8694-e3b38c12db39", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 34b3472f-2e11-4868-8694-e3b38c12db39 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 4776d521-5083-42e8-965a-b4dc701d093d (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, f5168163-167d-4d45-ae23-66a1bbffd18d (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Monday 30 May 2022 23:29:27 +0000 (0:00:00.091) 0:00:21.070 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface nm-bond] ****************************************** Monday 30 May 2022 23:29:27 +0000 (0:00:00.652) 0:00:21.722 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653953365.893163, "block_size": 4096, "blocks": 0, "ctime": 1653953365.893163, "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": 1653953365.893163, "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:29:28 +0000 (0:00:00.561) 0:00:22.284 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:29:28 +0000 (0:00:00.259) 0:00:22.543 ************ 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:29:29 +0000 (0:00:00.651) 0:00:23.195 ************ 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:29:29 +0000 (0:00:00.161) 0:00:23.356 ************ 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:29:29 +0000 (0:00:00.088) 0:00:23.445 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653953365.7580574, "block_size": 4096, "blocks": 8, "ctime": 1653953365.7580574, "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": 1653953365.7580574, "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:29:29 +0000 (0:00:00.453) 0:00:23.898 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:29:30 +0000 (0:00:00.284) 0:00:24.183 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.163438", "end": "2022-05-30 23:29:30.120352", "rc": 0, "start": "2022-05-30 23:29:29.956914" } 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:29:30 +0000 (0:00:00.729) 0:00:24.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:29:31 +0000 (0:00:00.249) 0:00:25.162 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Monday 30 May 2022 23:29:31 +0000 (0:00:00.251) 0:00:25.414 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Monday 30 May 2022 23:29:31 +0000 (0:00:00.123) 0:00:25.537 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Monday 30 May 2022 23:29:31 +0000 (0:00:00.137) 0:00:25.675 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Monday 30 May 2022 23:29:31 +0000 (0:00:00.247) 0:00:25.923 ************ 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:29:32 +0000 (0:00:00.357) 0:00:26.280 ************ 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:29:32 +0000 (0:00:00.251) 0:00:26.531 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653953365.9560604, "block_size": 4096, "blocks": 8, "ctime": 1653953365.9560604, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 138712, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653953365.9560604, "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:29:33 +0000 (0:00:00.500) 0:00:27.032 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:29:33 +0000 (0:00:00.238) 0:00:27.271 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.029157", "end": "2022-05-30 23:29:33.100334", "rc": 0, "start": "2022-05-30 23:29:33.071177" } 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:29:33 +0000 (0:00:00.627) 0:00:27.898 ************ 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:29:34 +0000 (0:00:00.363) 0:00:28.262 ************ 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:29:34 +0000 (0:00:00.310) 0:00:28.572 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Monday 30 May 2022 23:29:34 +0000 (0:00:00.320) 0:00:28.892 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Monday 30 May 2022 23:29:35 +0000 (0:00:00.294) 0:00:29.186 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Monday 30 May 2022 23:29:35 +0000 (0:00:00.250) 0:00:29.437 ************ 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:29:35 +0000 (0:00:00.429) 0:00:29.866 ************ 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:29:36 +0000 (0:00:00.256) 0:00:30.123 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653953365.9710608, "block_size": 4096, "blocks": 8, "ctime": 1653953365.9710608, "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": 1653953365.9710608, "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:29:36 +0000 (0:00:00.481) 0:00:30.605 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:29:36 +0000 (0:00:00.162) 0:00:30.768 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.029460", "end": "2022-05-30 23:29:36.451700", "rc": 0, "start": "2022-05-30 23:29:36.422240" } 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:29:37 +0000 (0:00:00.337) 0:00:31.105 ************ 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:29:37 +0000 (0:00:00.080) 0:00:31.186 ************ 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:29:37 +0000 (0:00:00.078) 0:00:31.264 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Monday 30 May 2022 23:29:37 +0000 (0:00:00.081) 0:00:31.345 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Monday 30 May 2022 23:29:37 +0000 (0:00:00.081) 0:00:31.427 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Monday 30 May 2022 23:29:37 +0000 (0:00:00.079) 0:00:31.507 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:00.003888", "end": "2022-05-30 23:29:37.158572", "rc": 0, "start": "2022-05-30 23:29:37.154684" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Monday 30 May 2022 23:29:37 +0000 (0:00:00.300) 0:00:31.808 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004121", "end": "2022-05-30 23:29:37.462073", "rc": 0, "start": "2022-05-30 23:29:37.457952" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.130/24 brd 192.0.2.255 scope global dynamic noprefixroute nm-bond valid_lft 231sec preferred_lft 231sec TASK [** TEST check IPv6] ****************************************************** Monday 30 May 2022 23:29:38 +0000 (0:00:00.306) 0:00:32.114 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004161", "end": "2022-05-30 23:29:37.765064", "rc": 0, "start": "2022-05-30 23:29:37.760903" } STDOUT: 8: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::1c6/128 scope global dynamic noprefixroute valid_lft 232sec preferred_lft 232sec inet6 2001:db8::3ef9:4d0:5e69:48c2/64 scope global dynamic noprefixroute valid_lft 1800sec preferred_lft 1800sec inet6 fe80::180a:f755:46c3:5021/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:29:38 +0000 (0:00:00.302) 0:00:32.417 ************ 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:29:38 +0000 (0:00:00.139) 0:00:32.556 ************ 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:29:39 +0000 (0:00:00.466) 0:00:33.022 ************ 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:29:41 +0000 (0:00:02.128) 0:00:35.150 ************ 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:29:42 +0000 (0:00:00.930) 0:00:36.080 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:29:42 +0000 (0:00:00.100) 0:00:36.181 ************ 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:29:42 +0000 (0:00:00.160) 0:00:36.342 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:29:42 +0000 (0:00:00.094) 0:00:36.436 ************ 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:29:43 +0000 (0:00:00.574) 0:00:37.010 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:29:43 +0000 (0:00:00.103) 0:00:37.114 ************ 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:29:43 +0000 (0:00:00.127) 0:00:37.241 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:29:43 +0000 (0:00:00.132) 0:00:37.374 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** Monday 30 May 2022 23:29:44 +0000 (0:00:01.318) 0:00:38.692 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:29:44 +0000 (0:00:00.196) 0:00:38.897 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.1", "persistent_state": "absent", "state": "down" }, { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Monday 30 May 2022 23:29:45 +0000 (0:00:00.196) 0:00:39.094 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Monday 30 May 2022 23:29:45 +0000 (0:00:00.359) 0:00:39.453 ************ fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.011303", "end": "2022-05-30 23:29:45.164483", "rc": 1, "start": "2022-05-30 23:29:45.153180" } STDERR: Cannot find device "nm-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Monday 30 May 2022 23:29:45 +0000 (0:00:00.444) 0:00:39.897 ************ ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.062421", "end": "2022-05-30 23:29:45.614455", "rc": 0, "start": "2022-05-30 23:29:45.552034" } TASK [Stop dnsmasq/radvd services] ********************************************* Monday 30 May 2022 23:29:46 +0000 (0:00:00.379) 0:00:40.277 ************ 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.016583", "end": "2022-05-30 23:29:45.943293", "rc": 0, "start": "2022-05-30 23:29:45.926710" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** Monday 30 May 2022 23:29:46 +0000 (0:00:00.315) 0:00:40.592 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=69 changed=7 unreachable=0 failed=0 skipped=24 rescued=0 ignored=1 Monday 30 May 2022 23:29:46 +0000 (0:00:00.046) 0:00:40.639 ************ =============================================================================== Install dnsmasq --------------------------------------------------------- 6.20s Install pgrep, sysctl --------------------------------------------------- 2.93s linux-system-roles.network : Check which services are running ----------- 2.17s linux-system-roles.network : Check which services are running ----------- 2.13s Create test interfaces -------------------------------------------------- 2.11s linux-system-roles.network : Configure networking connection profiles --- 1.43s linux-system-roles.network : Check which packages are installed --------- 1.43s linux-system-roles.network : Configure networking connection profiles --- 1.32s linux-system-roles.network : Check which packages are installed --------- 0.93s Gathering Facts --------------------------------------------------------- 0.86s linux-system-roles.network : Enable and start NetworkManager ------------ 0.81s Get NM profile info ----------------------------------------------------- 0.73s linux-system-roles.network : Re-test connectivity ----------------------- 0.65s include_tasks ----------------------------------------------------------- 0.65s Get NM profile info ----------------------------------------------------- 0.63s linux-system-roles.network : Enable and start NetworkManager ------------ 0.57s Get stat for interface nm-bond ------------------------------------------ 0.56s Gathering Facts --------------------------------------------------------- 0.56s stat profile file ------------------------------------------------------- 0.50s stat profile file ------------------------------------------------------- 0.48s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---