# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond_deprecated.yml' with nm as provider] *** TASK [Gathering Facts] ********************************************************* Monday 30 May 2022 23:15:27 +0000 (0:00:00.028) 0:00:00.028 ************ ok: [sut] TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.831) 0:00:00.859 ************ 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:15:28 +0000 (0:00:00.029) 0:00:00.889 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.041) 0:00:00.930 ************ included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 34] ********************************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.049) 0:00:00.979 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.025) 0:00:01.005 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.026) 0:00:01.031 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.025) 0:00:01.057 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.028) 0:00:01.086 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Monday 30 May 2022 23:15:28 +0000 (0:00:00.032) 0:00:01.118 ************ ok: [sut] TASK [INIT Prepare setup] ****************************************************** Monday 30 May 2022 23:15:28 +0000 (0:00:00.551) 0:00:01.670 ************ ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Monday 30 May 2022 23:15:28 +0000 (0:00:00.028) 0:00:01.698 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.86-5.fc34.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Monday 30 May 2022 23:15:35 +0000 (0:00:06.609) 0:00:08.307 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Monday 30 May 2022 23:15:35 +0000 (0:00:00.031) 0:00:08.339 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Monday 30 May 2022 23:15:38 +0000 (0:00:02.859) 0:00:11.199 ************ 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.545208", "end": "2022-05-30 23:15:39.759368", "rc": 0, "start": "2022-05-30 23:15:38.214160" } TASK [Get stat for interface test1] ******************************************** Monday 30 May 2022 23:15:40 +0000 (0:00:01.919) 0:00:13.118 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952538.2931108, "block_size": 4096, "blocks": 0, "ctime": 1653952538.2931108, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 24748, "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": 1653952538.2931108, "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:15:40 +0000 (0:00:00.369) 0:00:13.488 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** Monday 30 May 2022 23:15:40 +0000 (0:00:00.037) 0:00:13.526 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952538.3058271, "block_size": 4096, "blocks": 0, "ctime": 1653952538.3058271, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 25334, "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": 1653952538.3058271, "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:15:41 +0000 (0:00:00.249) 0:00:13.775 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST Add Bond with 2 ports using deprecated 'master' argument] *********** Monday 30 May 2022 23:15:41 +0000 (0:00:00.032) 0:00:13.808 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Monday 30 May 2022 23:15:41 +0000 (0:00:00.029) 0:00:13.837 ************ 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:15:41 +0000 (0:00:00.145) 0:00:13.983 ************ 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:15:41 +0000 (0:00:00.410) 0:00:14.393 ************ 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:15:43 +0000 (0:00:02.085) 0:00:16.479 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Monday 30 May 2022 23:15:44 +0000 (0:00:01.122) 0:00:17.602 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:15:44 +0000 (0:00:00.070) 0:00:17.673 ************ 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:15:45 +0000 (0:00:00.127) 0:00:17.800 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:15:45 +0000 (0:00:00.083) 0:00:17.884 ************ 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:15:45 +0000 (0:00:00.784) 0:00:18.669 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:15:46 +0000 (0:00:00.080) 0:00:18.749 ************ 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:15:46 +0000 (0:00:00.067) 0:00:18.816 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:15:46 +0000 (0:00:00.068) 0:00:18.885 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "bond": { "miimon": 110, "mode": "active-backup" }, "interface_name": "deprecated-bond", "name": "bond0", "state": "up", "type": "bond" }, { "interface_name": "test1", "master": "bond0", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "interface_name": "test2", "master": "bond0", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5 [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5 (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Monday 30 May 2022 23:15:47 +0000 (0:00:01.248) 0:00:20.133 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:15:47 +0000 (0:00:00.072) 0:00:20.206 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "bond": { "miimon": 110, "mode": "active-backup" }, "interface_name": "deprecated-bond", "name": "bond0", "state": "up", "type": "bond" }, { "interface_name": "test1", "master": "bond0", "name": "bond0.0", "state": "up", "type": "ethernet" }, { "interface_name": "test2", "master": "bond0", "name": "bond0.1", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5 (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, 86d1fa73-04ac-4e11-b014-ae24300f6e2d (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, 6a1a5953-0a11-4b13-9aba-522604039cb5 (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 040ccce7-5a1e-473a-9979-fe0814c57396 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Monday 30 May 2022 23:15:47 +0000 (0:00:00.073) 0:00:20.279 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface deprecated-bond] ********************************** Monday 30 May 2022 23:15:47 +0000 (0:00:00.424) 0:00:20.703 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952546.512266, "block_size": 4096, "blocks": 0, "ctime": 1653952546.512266, "dev": 22, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26070, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/deprecated-bond", "lnk_target": "../../devices/virtual/net/deprecated-bond", "mode": "0777", "mtime": 1653952546.512266, "nlink": 1, "path": "/sys/class/net/deprecated-bond", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface deprecated-bond is present] ************************ Monday 30 May 2022 23:15:48 +0000 (0:00:00.301) 0:00:21.005 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Monday 30 May 2022 23:15:48 +0000 (0:00:00.076) 0:00:21.081 ************ 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:15:48 +0000 (0:00:00.146) 0:00:21.228 ************ 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:15:48 +0000 (0:00:00.125) 0:00:21.353 ************ 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:15:48 +0000 (0:00:00.071) 0:00:21.425 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952546.345816, "block_size": 4096, "blocks": 8, "ctime": 1653952546.345816, "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": 1653952546.345816, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 350, "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:15:48 +0000 (0:00:00.291) 0:00:21.716 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:15:49 +0000 (0:00:00.074) 0:00:21.791 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.134171", "end": "2022-05-30 23:15:48.825758", "rc": 0, "start": "2022-05-30 23:15:48.691587" } 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:15:49 +0000 (0:00:00.433) 0:00:22.225 ************ 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:15:49 +0000 (0:00:00.082) 0:00:22.308 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Monday 30 May 2022 23:15:49 +0000 (0:00:00.079) 0:00:22.387 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Monday 30 May 2022 23:15:49 +0000 (0:00:00.083) 0:00:22.471 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Monday 30 May 2022 23:15:49 +0000 (0:00:00.122) 0:00:22.593 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Monday 30 May 2022 23:15:49 +0000 (0:00:00.070) 0:00:22.664 ************ 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:15:50 +0000 (0:00:00.119) 0:00:22.783 ************ 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:15:50 +0000 (0:00:00.070) 0:00:22.854 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952546.5558205, "block_size": 4096, "blocks": 8, "ctime": 1653952546.5548205, "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": 1653952546.5548205, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 175, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 30 May 2022 23:15:50 +0000 (0:00:00.297) 0:00:23.152 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:15:50 +0000 (0:00:00.077) 0:00:23.230 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.028920", "end": "2022-05-30 23:15:50.204421", "rc": 0, "start": "2022-05-30 23:15:50.175501" } 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:15:50 +0000 (0:00:00.371) 0:00:23.602 ************ 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:15:50 +0000 (0:00:00.081) 0:00:23.683 ************ 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:15:51 +0000 (0:00:00.081) 0:00:23.765 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Monday 30 May 2022 23:15:51 +0000 (0:00:00.081) 0:00:23.846 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Monday 30 May 2022 23:15:51 +0000 (0:00:00.082) 0:00:23.929 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Monday 30 May 2022 23:15:51 +0000 (0:00:00.074) 0:00:24.004 ************ 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:15:51 +0000 (0:00:00.121) 0:00:24.126 ************ 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:15:51 +0000 (0:00:00.073) 0:00:24.199 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653952546.579821, "block_size": 4096, "blocks": 8, "ctime": 1653952546.579821, "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": 1653952546.579821, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.1", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 175, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 30 May 2022 23:15:51 +0000 (0:00:00.351) 0:00:24.551 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 30 May 2022 23:15:51 +0000 (0:00:00.078) 0:00:24.630 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.028853", "end": "2022-05-30 23:15:51.551755", "rc": 0, "start": "2022-05-30 23:15:51.522902" } 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:15:52 +0000 (0:00:00.321) 0:00:24.951 ************ 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:15:52 +0000 (0:00:00.084) 0:00:25.035 ************ 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:15:52 +0000 (0:00:00.076) 0:00:25.112 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Monday 30 May 2022 23:15:52 +0000 (0:00:00.076) 0:00:25.188 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Monday 30 May 2022 23:15:52 +0000 (0:00:00.073) 0:00:25.262 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Monday 30 May 2022 23:15:52 +0000 (0:00:00.074) 0:00:25.336 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/deprecated-bond" ], "delta": "0:00:00.003587", "end": "2022-05-30 23:15:52.231994", "rc": 0, "start": "2022-05-30 23:15:52.228407" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Monday 30 May 2022 23:15:52 +0000 (0:00:00.295) 0:00:25.632 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "deprecated-bond" ], "delta": "0:00:00.003806", "end": "2022-05-30 23:15:52.527007", "rc": 0, "start": "2022-05-30 23:15:52.523201" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.67/24 brd 192.0.2.255 scope global dynamic noprefixroute deprecated-bond valid_lft 237sec preferred_lft 237sec TASK [** TEST check IPv6] ****************************************************** Monday 30 May 2022 23:15:53 +0000 (0:00:00.292) 0:00:25.924 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "deprecated-bond" ], "delta": "0:00:00.003699", "end": "2022-05-30 23:15:52.817599", "rc": 0, "start": "2022-05-30 23:15:52.813900" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::33/128 scope global dynamic noprefixroute valid_lft 238sec preferred_lft 238sec inet6 2001:db8::34cb:d4e2:8c4d:e6e6/64 scope global dynamic noprefixroute valid_lft 1797sec preferred_lft 1797sec inet6 fe80::1211:8886:e54c:1188/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:15:53 +0000 (0:00:00.292) 0:00:26.217 ************ 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:15:53 +0000 (0:00:00.124) 0:00:26.342 ************ 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:15:54 +0000 (0:00:00.516) 0:00:26.858 ************ 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:15:56 +0000 (0:00:02.007) 0:00:28.866 ************ 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:15:56 +0000 (0:00:00.836) 0:00:29.703 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Monday 30 May 2022 23:15:57 +0000 (0:00:00.073) 0:00:29.776 ************ 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:15:57 +0000 (0:00:00.128) 0:00:29.905 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Monday 30 May 2022 23:15:57 +0000 (0:00:00.119) 0:00:30.025 ************ 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:15:57 +0000 (0:00:00.516) 0:00:30.542 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Monday 30 May 2022 23:15:57 +0000 (0:00:00.083) 0:00:30.626 ************ 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:15:57 +0000 (0:00:00.070) 0:00:30.696 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Monday 30 May 2022 23:15:58 +0000 (0:00:00.067) 0:00:30.764 ************ 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:15:58 +0000 (0:00:00.961) 0:00:31.726 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Monday 30 May 2022 23:15:59 +0000 (0:00:00.072) 0:00:31.798 ************ 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:15:59 +0000 (0:00:00.075) 0:00:31.873 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Monday 30 May 2022 23:15:59 +0000 (0:00:00.284) 0:00:32.158 ************ fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "deprecated-bond" ], "delta": "0:00:00.007884", "end": "2022-05-30 23:15:59.058389", "rc": 1, "start": "2022-05-30 23:15:59.050505" } STDERR: Cannot find device "deprecated-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Monday 30 May 2022 23:15:59 +0000 (0:00:00.299) 0:00:32.458 ************ ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.053807", "end": "2022-05-30 23:15:59.407459", "rc": 0, "start": "2022-05-30 23:15:59.353652" } TASK [Stop dnsmasq/radvd services] ********************************************* Monday 30 May 2022 23:16:00 +0000 (0:00:00.349) 0:00:32.808 ************ 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.016573", "end": "2022-05-30 23:15:59.715915", "rc": 0, "start": "2022-05-30 23:15:59.699342" } PLAY RECAP ********************************************************************* sut : ok=69 changed=7 unreachable=0 failed=0 skipped=22 rescued=0 ignored=1 Monday 30 May 2022 23:16:00 +0000 (0:00:00.258) 0:00:33.066 ************ =============================================================================== Install dnsmasq --------------------------------------------------------- 6.61s Install pgrep, sysctl --------------------------------------------------- 2.86s linux-system-roles.network : Check which services are running ----------- 2.09s linux-system-roles.network : Check which services are running ----------- 2.01s Create test interfaces -------------------------------------------------- 1.92s linux-system-roles.network : Configure networking connection profiles --- 1.25s linux-system-roles.network : Check which packages are installed --------- 1.12s linux-system-roles.network : Configure networking connection profiles --- 0.96s linux-system-roles.network : Check which packages are installed --------- 0.84s Gathering Facts --------------------------------------------------------- 0.83s linux-system-roles.network : Enable and start NetworkManager ------------ 0.79s Gathering Facts --------------------------------------------------------- 0.55s linux-system-roles.network : Enable and start NetworkManager ------------ 0.52s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.52s Get NM profile info ----------------------------------------------------- 0.43s linux-system-roles.network : Re-test connectivity ----------------------- 0.42s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.41s Get NM profile info ----------------------------------------------------- 0.37s Get stat for interface test1 -------------------------------------------- 0.37s stat profile file ------------------------------------------------------- 0.35s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---