# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond_removal.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 15:01:06 +0000 (0:00:00.032) 0:00:00.032 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 15:01:07 +0000 (0:00:00.857) 0:00:00.889 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 27 May 2022 15:01:07 +0000 (0:00:00.033) 0:00:00.923 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 15:01:07 +0000 (0:00:00.045) 0:00:00.969 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 15:01:07 +0000 (0:00:00.057) 0:00:01.027 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.257336", "end": "2022-05-27 15:01:09.436154", "rc": 0, "start": "2022-05-27 15:01:07.178818" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Last metadata expiration check: 0:00:13 ago on Fri May 27 15:00:54 2022. epel-release-latest-8.noarch.rpm 622 kB/s | 23 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-15.el8 @commandline 23 k Transaction Summary ================================================================================ Install 1 Package Total size: 23 k Installed size: 32 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-15.el8.noarch 1/1 Running scriptlet: epel-release-8-15.el8.noarch 1/1 Verifying : epel-release-8-15.el8.noarch 1/1 Installed products updated. Installed: epel-release-8-15.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 27 May 2022 15:01:09 +0000 (0:00:02.598) 0:00:03.625 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 15:01:10 +0000 (0:00:00.038) 0:00:03.664 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.510993", "end": "2022-05-27 15:01:10.242236", "rc": 0, "start": "2022-05-27 15:01:09.731243" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. TASK [Enable EPEL 6] *********************************************************** Friday 27 May 2022 15:01:10 +0000 (0:00:00.766) 0:00:04.430 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Friday 27 May 2022 15:01:10 +0000 (0:00:00.033) 0:00:04.464 ************ ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 15:01:10 +0000 (0:00:00.037) 0:00:04.502 ************ ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 27 May 2022 15:01:11 +0000 (0:00:00.566) 0:00:05.068 ************ ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 27 May 2022 15:01:11 +0000 (0:00:00.034) 0:00:05.103 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-19.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 15:01:22 +0000 (0:00:11.216) 0:00:16.320 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 15:01:22 +0000 (0:00:00.035) 0:00:16.355 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 27 May 2022 15:01:24 +0000 (0:00:01.789) 0:00:18.145 ************ 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.587095", "end": "2022-05-27 15:01:25.804670", "rc": 0, "start": "2022-05-27 15:01:24.217575" } TASK [Get stat for interface test1] ******************************************** Friday 27 May 2022 15:01:26 +0000 (0:00:01.853) 0:00:19.999 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663684.3086777, "block_size": 4096, "blocks": 0, "ctime": 1653663684.3086777, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21346, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test1", "lnk_target": "../../devices/virtual/net/test1", "mode": "0777", "mtime": 1653663684.3086777, "nlink": 1, "path": "/sys/class/net/test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface test1 is present] ********************************** Friday 27 May 2022 15:01:26 +0000 (0:00:00.397) 0:00:20.396 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** Friday 27 May 2022 15:01:26 +0000 (0:00:00.048) 0:00:20.445 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663684.3170347, "block_size": 4096, "blocks": 0, "ctime": 1653663684.3170347, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21932, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/test2", "lnk_target": "../../devices/virtual/net/test2", "mode": "0777", "mtime": 1653663684.3170347, "nlink": 1, "path": "/sys/class/net/test2", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface test2 is present] ********************************** Friday 27 May 2022 15:01:27 +0000 (0:00:00.250) 0:00:20.696 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** Friday 27 May 2022 15:01:27 +0000 (0:00:00.038) 0:00:20.735 ************ changed: [sut] => { "changed": true, "cmd": [ "cp", "-vf", "/etc/resolv.conf", "/etc/resolv.conf.bak" ], "delta": "0:00:00.003346", "end": "2022-05-27 15:01:26.800087", "rc": 0, "start": "2022-05-27 15:01:26.796741" } STDOUT: '/etc/resolv.conf' -> '/etc/resolv.conf.bak' TASK [TEST Add Bond with 2 ports] ********************************************** Friday 27 May 2022 15:01:27 +0000 (0:00:00.257) 0:00:20.993 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 15:01:27 +0000 (0:00:00.034) 0:00:21.027 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 27 May 2022 15:01:27 +0000 (0:00:00.152) 0:00:21.179 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 27 May 2022 15:01:27 +0000 (0:00:00.407) 0:00:21.587 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 27 May 2022 15:01:29 +0000 (0:00:01.794) 0:00:23.381 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 27 May 2022 15:01:31 +0000 (0:00:01.822) 0:00:25.203 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 15:01:31 +0000 (0:00:00.085) 0:00:25.289 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: network-scripts-team-1.31-2.el8.x86_64", "Installed: network-scripts-10.00.15-1.el8.x86_64" ] } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 15:01:35 +0000 (0:00:03.578) 0:00:28.867 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 15:01:35 +0000 (0:00:00.096) 0:00:28.964 ************ 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 : Enable and start wpa_supplicant] ************ Friday 27 May 2022 15:01:35 +0000 (0:00:00.084) 0:00:29.048 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 15:01:35 +0000 (0:00:00.127) 0:00:29.176 ************ changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 15:01:36 +0000 (0:00:01.153) 0:00:30.330 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-9433y7omwxg9/tmpxpeph055" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 15:01:37 +0000 (0:00:00.500) 0:00:30.831 ************ 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": "initscripts" } }, "changed": true } STDERR: [007] #0, state:up persistent_state:present, 'bond0': add ifcfg-rh profile 'bond0' [008] #1, state:up persistent_state:present, 'bond0.0': add ifcfg-rh profile 'bond0.0' [009] #2, state:up persistent_state:present, 'bond0.1': add ifcfg-rh profile 'bond0.1' [010] #0, state:up persistent_state:present, 'bond0': up connection bond0 (not-active) [011] #0, state:up persistent_state:present, 'bond0': call 'ifup bond0': rc=0, out='b'\nDetermining IP information for nm-bond... done.\n'', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [012] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0 (is-modified) [013] #1, state:up persistent_state:present, 'bond0.0': call 'ifup bond0.0': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [014] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1 (is-modified) [015] #2, state:up persistent_state:present, 'bond0.1': call 'ifup bond0.1': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 15:05:43 +0000 (0:04:06.674) 0:04:37.505 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add ifcfg-rh profile 'bond0'", "[008] #1, state:up persistent_state:present, 'bond0.0': add ifcfg-rh profile 'bond0.0'", "[009] #2, state:up persistent_state:present, 'bond0.1': add ifcfg-rh profile 'bond0.1'", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0 (not-active)", "[011] #0, state:up persistent_state:present, 'bond0': call 'ifup bond0': rc=0, out='b'\\nDetermining IP information for nm-bond... done.\\n'', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[012] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0 (is-modified)", "[013] #1, state:up persistent_state:present, 'bond0.0': call 'ifup bond0.0': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[014] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1 (is-modified)", "[015] #2, state:up persistent_state:present, 'bond0.1': call 'ifup bond0.1': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 15:05:43 +0000 (0:00:00.101) 0:04:37.607 ************ 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[007] #0, state:up persistent_state:present, 'bond0': add ifcfg-rh profile 'bond0'\n[008] #1, state:up persistent_state:present, 'bond0.0': add ifcfg-rh profile 'bond0.0'\n[009] #2, state:up persistent_state:present, 'bond0.1': add ifcfg-rh profile 'bond0.1'\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0 (not-active)\n[011] #0, state:up persistent_state:present, 'bond0': call 'ifup bond0': rc=0, out='b'\\nDetermining IP information for nm-bond... done.\\n'', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[012] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0 (is-modified)\n[013] #1, state:up persistent_state:present, 'bond0.0': call 'ifup bond0.0': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[014] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1 (is-modified)\n[015] #2, state:up persistent_state:present, 'bond0.1': call 'ifup bond0.1': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add ifcfg-rh profile 'bond0'", "[008] #1, state:up persistent_state:present, 'bond0.0': add ifcfg-rh profile 'bond0.0'", "[009] #2, state:up persistent_state:present, 'bond0.1': add ifcfg-rh profile 'bond0.1'", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0 (not-active)", "[011] #0, state:up persistent_state:present, 'bond0': call 'ifup bond0': rc=0, out='b'\\nDetermining IP information for nm-bond... done.\\n'', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[012] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0 (is-modified)", "[013] #1, state:up persistent_state:present, 'bond0.0': call 'ifup bond0.0': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[014] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1 (is-modified)", "[015] #2, state:up persistent_state:present, 'bond0.1': call 'ifup bond0.1': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 15:05:44 +0000 (0:00:00.095) 0:04:37.702 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface nm-bond] ****************************************** Friday 27 May 2022 15:05:44 +0000 (0:00:00.476) 0:04:38.179 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663697.448224, "block_size": 4096, "blocks": 0, "ctime": 1653663697.448224, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22659, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/nm-bond", "lnk_target": "../../devices/virtual/net/nm-bond", "mode": "0777", "mtime": 1653663697.448224, "nlink": 1, "path": "/sys/class/net/nm-bond", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface nm-bond is present] ******************************** Friday 27 May 2022 15:05:44 +0000 (0:00:00.305) 0:04:38.484 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 15:05:44 +0000 (0:00:00.090) 0:04:38.574 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 15:05:45 +0000 (0:00:00.195) 0:04:38.769 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 15:05:45 +0000 (0:00:00.141) 0:04:38.911 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 15:05:45 +0000 (0:00:00.081) 0:04:38.992 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663697.3055782, "block_size": 4096, "blocks": 8, "ctime": 1653663697.3045783, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566172, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653663697.3045783, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 187, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 15:05:45 +0000 (0:00:00.303) 0:04:39.296 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 15:05:45 +0000 (0:00:00.091) 0:04:39.388 ************ fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.024653", "end": "2022-05-27 15:05:45.474987", "rc": 1, "start": "2022-05-27 15:05:45.450334" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 15:05:46 +0000 (0:00:00.318) 0:04:39.706 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0] ************************** Friday 27 May 2022 15:05:46 +0000 (0:00:00.086) 0:04:39.793 ************ changed: [sut] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-bond0" ], "delta": "0:00:00.002635", "end": "2022-05-27 15:05:45.882474", "rc": 0, "start": "2022-05-27 15:05:45.879839" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 27 May 2022 15:05:46 +0000 (0:00:00.375) 0:04:40.169 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'bond0' is present] ********************************** Friday 27 May 2022 15:05:46 +0000 (0:00:00.096) 0:04:40.266 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 27 May 2022 15:05:46 +0000 (0:00:00.090) 0:04:40.357 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Friday 27 May 2022 15:05:46 +0000 (0:00:00.092) 0:04:40.449 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 15:05:46 +0000 (0:00:00.164) 0:04:40.614 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 15:05:47 +0000 (0:00:00.090) 0:04:40.705 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653663697.451575, "block_size": 4096, "blocks": 8, "ctime": 1653663697.3055782, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566204, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653663697.3055782, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 103, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 15:05:47 +0000 (0:00:00.308) 0:04:41.013 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 15:05:47 +0000 (0:00:00.088) 0:04:41.101 ************ fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.024984", "end": "2022-05-27 15:05:47.187809", "rc": 1, "start": "2022-05-27 15:05:47.162825" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 15:05:47 +0000 (0:00:00.318) 0:04:41.420 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0.0] ************************ Friday 27 May 2022 15:05:47 +0000 (0:00:00.110) 0:04:41.530 ************ fatal: [sut]: UNREACHABLE! => { "changed": false, "unreachable": true } MSG: Data could not be sent to remote host "10.31.13.63". Make sure this host can be reached over ssh: to retry, use: --limit @/tmp/tests_bond_removal_initscripts.retry PLAY RECAP ********************************************************************* sut : ok=48 changed=8 unreachable=1 failed=0 skipped=9 rescued=0 ignored=2 Friday 27 May 2022 17:17:06 +0000 (2:11:18.685) 2:16:00.215 ************ =============================================================================== Get the ansible_managed comment in ifcfg-bond0.0 --------------------- 7878.69s linux-system-roles.network : Configure networking connection profiles - 246.67s Install dnsmasq -------------------------------------------------------- 11.22s linux-system-roles.network : Install packages --------------------------- 3.58s Create EPEL 8 ----------------------------------------------------------- 2.60s Create test interfaces -------------------------------------------------- 1.85s linux-system-roles.network : Check which packages are installed --------- 1.82s linux-system-roles.network : Check which services are running ----------- 1.79s Install pgrep, sysctl --------------------------------------------------- 1.79s linux-system-roles.network : Enable network service --------------------- 1.15s Gathering Facts --------------------------------------------------------- 0.86s Enable EPEL 8 ----------------------------------------------------------- 0.77s Gathering Facts --------------------------------------------------------- 0.57s linux-system-roles.network : Ensure initscripts network file dependency is present --- 0.50s linux-system-roles.network : Re-test connectivity ----------------------- 0.48s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.41s Get stat for interface test1 -------------------------------------------- 0.40s Get the ansible_managed comment in ifcfg-bond0 -------------------------- 0.38s Get NM profile info ----------------------------------------------------- 0.32s Get NM profile info ----------------------------------------------------- 0.32s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---