# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bond.yml' with initscripts as provider] **** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 13:55:09 +0000 (0:00:00.019) 0:00:00.019 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:55:10 +0000 (0:00:01.148) 0:00:01.168 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 13:55:10 +0000 (0:00:00.049) 0:00:01.217 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:55:10 +0000 (0:00:00.035) 0:00:01.253 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 13:55:10 +0000 (0:00:00.044) 0:00:01.297 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.296311", "end": "2022-08-05 13:55:13.020248", "rc": 0, "start": "2022-08-05 13:55:10.723937" } STDOUT: Last metadata expiration check: 0:00:24 ago on Fri Aug 5 13:54:47 2022. epel-release-latest-8.noarch.rpm 564 kB/s | 24 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-16.el8 @commandline 24 k Transaction Summary ================================================================================ Install 1 Package Total size: 24 k Installed size: 34 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-16.el8.noarch 1/1 Running scriptlet: epel-release-8-16.el8.noarch 1/1 Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository. Verifying : epel-release-8-16.el8.noarch 1/1 Installed: epel-release-8-16.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 13:55:13 +0000 (0:00:02.728) 0:00:04.026 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 13:55:13 +0000 (0:00:00.039) 0:00:04.065 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.539595", "end": "2022-08-05 13:55:13.854278", "rc": 0, "start": "2022-08-05 13:55:13.314683" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 13:55:13 +0000 (0:00:00.789) 0:00:04.855 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Friday 05 August 2022 13:55:13 +0000 (0:00:00.031) 0:00:04.887 ********* ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 13:55:13 +0000 (0:00:00.073) 0:00:04.960 ********* ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 05 August 2022 13:55:14 +0000 (0:00:00.743) 0:00:05.703 ********* ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 05 August 2022 13:55:14 +0000 (0:00:00.066) 0:00:05.769 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-23.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 13:55:25 +0000 (0:00:11.075) 0:00:16.845 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 05 August 2022 13:55:25 +0000 (0:00:00.057) 0:00:16.902 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 05 August 2022 13:55:27 +0000 (0:00:01.992) 0:00:18.895 ********* 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.519569", "end": "2022-08-05 13:55:29.678065", "rc": 0, "start": "2022-08-05 13:55:28.158496" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:55:29 +0000 (0:00:01.786) 0:00:20.682 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test1] ******************************************** Friday 05 August 2022 13:55:29 +0000 (0:00:00.065) 0:00:20.747 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659707728.2008018, "block_size": 4096, "blocks": 0, "ctime": 1659707728.2008018, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22037, "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": 1659707728.2008018, "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 05 August 2022 13:55:30 +0000 (0:00:00.438) 0:00:21.186 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:55:30 +0000 (0:00:00.070) 0:00:21.257 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface test2] ******************************************** Friday 05 August 2022 13:55:30 +0000 (0:00:00.067) 0:00:21.324 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659707728.2056394, "block_size": 4096, "blocks": 0, "ctime": 1659707728.2056394, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22623, "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": 1659707728.2056394, "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 05 August 2022 13:55:30 +0000 (0:00:00.269) 0:00:21.594 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** Friday 05 August 2022 13:55:30 +0000 (0:00:00.068) 0:00:21.662 ********* changed: [sut] => { "changed": true, "cmd": [ "cp", "-vf", "/etc/resolv.conf", "/etc/resolv.conf.bak" ], "delta": "0:00:00.006092", "end": "2022-08-05 13:55:30.931517", "rc": 0, "start": "2022-08-05 13:55:30.925425" } STDOUT: '/etc/resolv.conf' -> '/etc/resolv.conf.bak' TASK [TEST Add Bond with 2 ports] ********************************************** Friday 05 August 2022 13:55:30 +0000 (0:00:00.271) 0:00:21.934 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 13:55:31 +0000 (0:00:00.066) 0:00:22.000 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/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 05 August 2022 13:55:31 +0000 (0:00:00.070) 0:00:22.071 ********* 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 05 August 2022 13:55:31 +0000 (0:00:00.482) 0:00:22.553 ********* 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 05 August 2022 13:55:33 +0000 (0:00:02.019) 0:00:24.573 ********* 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 05 August 2022 13:55:35 +0000 (0:00:01.924) 0:00:26.498 ********* ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 13:55:35 +0000 (0:00:00.092) 0:00:26.591 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 13:55:35 +0000 (0:00:00.082) 0:00:26.673 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:55:35 +0000 (0:00:00.079) 0:00:26.753 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: network-scripts-10.00.15-1.el8.x86_64", "Installed: network-scripts-team-1.31-2.el8.x86_64" ] } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 13:55:39 +0000 (0:00:03.707) 0:00:30.460 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 13:55:39 +0000 (0:00:00.078) 0:00:30.539 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 13:55:39 +0000 (0:00:00.077) 0:00:30.617 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:55:39 +0000 (0:00:00.120) 0:00:30.737 ********* 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 05 August 2022 13:55:39 +0000 (0:00:00.080) 0:00:30.817 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:55:39 +0000 (0:00:00.073) 0:00:30.891 ********* 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 05 August 2022 13:55:41 +0000 (0:00:01.386) 0:00:32.277 ********* ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-73728hyzhmnq/tmpdyxi9len" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:55:41 +0000 (0:00:00.489) 0:00:32.766 ********* fatal: [sut]: UNREACHABLE! => { "changed": false, "unreachable": true } MSG: Data could not be sent to remote host "10.31.13.64". Make sure this host can be reached over ssh: to retry, use: --limit @/tmp/tests_bond_initscripts.retry PLAY RECAP ********************************************************************* sut : ok=27 changed=6 unreachable=1 failed=0 skipped=11 rescued=0 ignored=0 Friday 05 August 2022 16:07:00 +0000 (2:11:19.081) 2:11:51.848 ********* =============================================================================== linux-system-roles.network : Configure networking connection profiles 7879.08s Install dnsmasq -------------------------------------------------------- 11.08s linux-system-roles.network : Install packages --------------------------- 3.71s Create EPEL 8 ----------------------------------------------------------- 2.73s linux-system-roles.network : Check which services are running ----------- 2.02s Install pgrep, sysctl --------------------------------------------------- 1.99s linux-system-roles.network : Check which packages are installed --------- 1.92s Create test interfaces -------------------------------------------------- 1.79s linux-system-roles.network : Enable network service --------------------- 1.39s Gathering Facts --------------------------------------------------------- 1.15s Enable EPEL 8 ----------------------------------------------------------- 0.79s Gathering Facts --------------------------------------------------------- 0.74s linux-system-roles.network : Ensure initscripts network file dependency is present --- 0.49s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.48s Get stat for interface test1 -------------------------------------------- 0.44s Backup the /etc/resolv.conf for initscript ------------------------------ 0.27s Get stat for interface test2 -------------------------------------------- 0.27s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 0.12s linux-system-roles.network : Print network provider --------------------- 0.09s linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider --- 0.08s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---