# 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] ********************************************************* Friday 27 May 2022 13:59:17 +0000 (0:00:00.030) 0:00:00.030 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:59:18 +0000 (0:00:00.841) 0:00:00.872 ************ 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 13:59:18 +0000 (0:00:00.061) 0:00:00.933 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:59:18 +0000 (0:00:00.051) 0:00:00.985 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 13:59:18 +0000 (0:00:00.064) 0:00:01.049 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.305747", "end": "2022-05-27 13:59:20.328943", "rc": 0, "start": "2022-05-27 13:59:18.023196" } 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:14 ago on Fri May 27 13:59:04 2022. epel-release-latest-8.noarch.rpm 605 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 13:59:20 +0000 (0:00:02.677) 0:00:03.727 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 13:59:20 +0000 (0:00:00.064) 0:00:03.792 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.526699", "end": "2022-05-27 13:59:21.207814", "rc": 0, "start": "2022-05-27 13:59:20.681115" } 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 13:59:21 +0000 (0:00:00.800) 0:00:04.593 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 27 May 2022 13:59:21 +0000 (0:00:00.046) 0:00:04.639 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 13:59:21 +0000 (0:00:00.043) 0:00:04.683 ************ ok: [sut] TASK [INIT Prepare setup] ****************************************************** Friday 27 May 2022 13:59:22 +0000 (0:00:00.585) 0:00:05.268 ************ ok: [sut] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* Friday 27 May 2022 13:59:22 +0000 (0:00:00.062) 0:00:05.331 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: dnsmasq-2.79-19.el8.x86_64" ] } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 13:59:33 +0000 (0:00:11.366) 0:00:16.698 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** Friday 27 May 2022 13:59:33 +0000 (0:00:00.031) 0:00:16.729 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** Friday 27 May 2022 13:59:35 +0000 (0:00:01.822) 0:00:18.552 ************ 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.519336", "end": "2022-05-27 13:59:36.954116", "rc": 0, "start": "2022-05-27 13:59:35.434780" } TASK [Get stat for interface test1] ******************************************** Friday 27 May 2022 13:59:37 +0000 (0:00:01.801) 0:00:20.353 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659975.5086005, "block_size": 4096, "blocks": 0, "ctime": 1653659975.5086005, "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": 1653659975.5086005, "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 13:59:38 +0000 (0:00:00.618) 0:00:20.972 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get stat for interface test2] ******************************************** Friday 27 May 2022 13:59:38 +0000 (0:00:00.041) 0:00:21.014 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659975.5126672, "block_size": 4096, "blocks": 0, "ctime": 1653659975.5126672, "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": 1653659975.5126672, "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 13:59:38 +0000 (0:00:00.271) 0:00:21.285 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST Add Bond with 2 ports using deprecated 'master' argument] *********** Friday 27 May 2022 13:59:38 +0000 (0:00:00.050) 0:00:21.335 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 13:59:38 +0000 (0:00:00.069) 0:00:21.405 ************ 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 13:59:38 +0000 (0:00:00.186) 0:00:21.592 ************ 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 13:59:39 +0000 (0:00:00.466) 0:00:22.058 ************ 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 13:59:41 +0000 (0:00:01.925) 0:00:23.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 : Print network provider] ********************* Friday 27 May 2022 13:59:42 +0000 (0:00:01.813) 0:00:25.797 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 13:59:43 +0000 (0:00:00.081) 0:00:25.878 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 13:59:43 +0000 (0:00:00.148) 0:00:26.027 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 13:59:43 +0000 (0:00:00.099) 0:00:26.127 ************ 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] ************ Friday 27 May 2022 13:59:44 +0000 (0:00:00.808) 0:00:26.935 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 13:59:44 +0000 (0:00:00.088) 0:00:27.023 ************ 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] *** Friday 27 May 2022 13:59:44 +0000 (0:00:00.081) 0:00:27.105 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 13:59:44 +0000 (0:00:00.078) 0:00:27.183 ************ 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, a7d061f1-4045-4277-a6fc-c25cea047254 [008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c [009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973 [010] #0, state:up persistent_state:present, 'bond0': up connection bond0, a7d061f1-4045-4277-a6fc-c25cea047254 (is-modified) [011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c (not-active) [012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973 (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 13:59:45 +0000 (0:00:00.958) 0:00:28.142 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, a7d061f1-4045-4277-a6fc-c25cea047254", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, a7d061f1-4045-4277-a6fc-c25cea047254 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 13:59:45 +0000 (0:00:00.083) 0:00:28.226 ************ 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, a7d061f1-4045-4277-a6fc-c25cea047254\n[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c\n[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973\n[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, a7d061f1-4045-4277-a6fc-c25cea047254 (is-modified)\n[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c (not-active)\n[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973 (not-active)\n", "stderr_lines": [ "[007] #0, state:up persistent_state:present, 'bond0': add connection bond0, a7d061f1-4045-4277-a6fc-c25cea047254", "[008] #1, state:up persistent_state:present, 'bond0.0': add connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c", "[009] #2, state:up persistent_state:present, 'bond0.1': add connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973", "[010] #0, state:up persistent_state:present, 'bond0': up connection bond0, a7d061f1-4045-4277-a6fc-c25cea047254 (is-modified)", "[011] #1, state:up persistent_state:present, 'bond0.0': up connection bond0.0, f3a72ef8-0d9a-4050-b71d-a32445e30d4c (not-active)", "[012] #2, state:up persistent_state:present, 'bond0.1': up connection bond0.1, 9d42994a-e08f-43a1-949b-6518b7eb3973 (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 13:59:45 +0000 (0:00:00.083) 0:00:28.310 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get stat for interface deprecated-bond] ********************************** Friday 27 May 2022 13:59:45 +0000 (0:00:00.423) 0:00:28.734 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659984.5177288, "block_size": 4096, "blocks": 0, "ctime": 1653659984.5177288, "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/deprecated-bond", "lnk_target": "../../devices/virtual/net/deprecated-bond", "mode": "0777", "mtime": 1653659984.5177288, "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] ************************ Friday 27 May 2022 13:59:46 +0000 (0:00:00.291) 0:00:29.025 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 13:59:46 +0000 (0:00:00.081) 0:00:29.107 ************ 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 13:59:46 +0000 (0:00:00.166) 0:00:29.273 ************ 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 13:59:46 +0000 (0:00:00.133) 0:00:29.406 ************ 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 13:59:46 +0000 (0:00:00.076) 0:00:29.483 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659984.491931, "block_size": 4096, "blocks": 8, "ctime": 1653659984.491931, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566165, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653659984.491931, "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] ******************** Friday 27 May 2022 13:59:46 +0000 (0:00:00.286) 0:00:29.770 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 13:59:47 +0000 (0:00:00.082) 0:00:29.853 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.030853", "end": "2022-05-27 13:59:46.745426", "rc": 0, "start": "2022-05-27 13:59:46.714573" } 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] *** Friday 27 May 2022 13:59:47 +0000 (0:00:00.319) 0:00:30.172 ************ 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] ************************** Friday 27 May 2022 13:59:47 +0000 (0:00:00.090) 0:00:30.262 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** Friday 27 May 2022 13:59:47 +0000 (0:00:00.083) 0:00:30.346 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0' is present] ********************************** Friday 27 May 2022 13:59:47 +0000 (0:00:00.135) 0:00:30.481 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** Friday 27 May 2022 13:59:47 +0000 (0:00:00.082) 0:00:30.564 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Friday 27 May 2022 13:59:47 +0000 (0:00:00.081) 0:00:30.645 ************ 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 13:59:47 +0000 (0:00:00.143) 0:00:30.789 ************ 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 13:59:48 +0000 (0:00:00.081) 0:00:30.871 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659984.5619316, "block_size": 4096, "blocks": 8, "ctime": 1653659984.5619316, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566173, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653659984.5619316, "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] ******************** Friday 27 May 2022 13:59:48 +0000 (0:00:00.304) 0:00:31.175 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 13:59:48 +0000 (0:00:00.087) 0:00:31.263 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.027745", "end": "2022-05-27 13:59:48.161188", "rc": 0, "start": "2022-05-27 13:59:48.133443" } 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] *** Friday 27 May 2022 13:59:48 +0000 (0:00:00.328) 0:00:31.592 ************ 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] ************************ Friday 27 May 2022 13:59:48 +0000 (0:00:00.089) 0:00:31.681 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* Friday 27 May 2022 13:59:48 +0000 (0:00:00.083) 0:00:31.765 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.0' is present] ******************************** Friday 27 May 2022 13:59:49 +0000 (0:00:00.084) 0:00:31.850 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* Friday 27 May 2022 13:59:49 +0000 (0:00:00.087) 0:00:31.937 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include] ***************************************************************** Friday 27 May 2022 13:59:49 +0000 (0:00:00.088) 0:00:32.026 ************ 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 13:59:49 +0000 (0:00:00.187) 0:00:32.213 ************ 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 13:59:49 +0000 (0:00:00.080) 0:00:32.293 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653659984.5819318, "block_size": 4096, "blocks": 8, "ctime": 1653659984.5819318, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566174, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653659984.5819318, "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] ******************** Friday 27 May 2022 13:59:49 +0000 (0:00:00.317) 0:00:32.611 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 13:59:49 +0000 (0:00:00.106) 0:00:32.718 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.028643", "end": "2022-05-27 13:59:49.611397", "rc": 0, "start": "2022-05-27 13:59:49.582754" } 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] *** Friday 27 May 2022 13:59:50 +0000 (0:00:00.328) 0:00:33.046 ************ 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] ************************ Friday 27 May 2022 13:59:50 +0000 (0:00:00.087) 0:00:33.133 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* Friday 27 May 2022 13:59:50 +0000 (0:00:00.086) 0:00:33.220 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'bond0.1' is present] ******************************** Friday 27 May 2022 13:59:50 +0000 (0:00:00.093) 0:00:33.314 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* Friday 27 May 2022 13:59:50 +0000 (0:00:00.091) 0:00:33.405 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** Friday 27 May 2022 13:59:50 +0000 (0:00:00.084) 0:00:33.489 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/deprecated-bond" ], "delta": "0:00:00.003121", "end": "2022-05-27 13:59:50.355267", "rc": 0, "start": "2022-05-27 13:59:50.352146" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** Friday 27 May 2022 13:59:50 +0000 (0:00:00.297) 0:00:33.787 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "deprecated-bond" ], "delta": "0:00:00.003566", "end": "2022-05-27 13:59:50.651979", "rc": 0, "start": "2022-05-27 13:59:50.648413" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.43/24 brd 192.0.2.255 scope global dynamic noprefixroute deprecated-bond valid_lft 237sec preferred_lft 237sec TASK [** TEST check IPv6] ****************************************************** Friday 27 May 2022 13:59:51 +0000 (0:00:00.298) 0:00:34.085 ************ changed: [sut] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "deprecated-bond" ], "delta": "0:00:00.003437", "end": "2022-05-27 13:59:50.952053", "rc": 0, "start": "2022-05-27 13:59:50.948616" } STDOUT: 8: deprecated-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::62/128 scope global dynamic noprefixroute valid_lft 237sec preferred_lft 237sec inet6 2001:db8::1bc8:2443:ac91:e49/64 scope global dynamic noprefixroute valid_lft 1798sec preferred_lft 1798sec inet6 fe80::ef37:e247:62f6:9c54/64 scope link noprefixroute valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 13:59:51 +0000 (0:00:00.298) 0:00:34.384 ************ 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 13:59:51 +0000 (0:00:00.200) 0:00:34.584 ************ 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 13:59:52 +0000 (0:00:00.458) 0:00:35.043 ************ 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 13:59:53 +0000 (0:00:01.712) 0:00:36.756 ************ 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 13:59:55 +0000 (0:00:01.512) 0:00:38.268 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 13:59:55 +0000 (0:00:00.086) 0:00:38.354 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 13:59:55 +0000 (0:00:00.145) 0:00:38.500 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 13:59:55 +0000 (0:00:00.088) 0:00:38.588 ************ 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] ************ Friday 27 May 2022 13:59:56 +0000 (0:00:00.489) 0:00:39.078 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 13:59:56 +0000 (0:00:00.096) 0:00:39.174 ************ 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] *** Friday 27 May 2022 13:59:56 +0000 (0:00:00.083) 0:00:39.258 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 13:59:56 +0000 (0:00:00.079) 0:00:39.337 ************ 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] *********************** Friday 27 May 2022 13:59:57 +0000 (0:00:00.869) 0:00:40.207 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 13:59:57 +0000 (0:00:00.091) 0:00:40.298 ************ 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] *********************** Friday 27 May 2022 13:59:57 +0000 (0:00:00.086) 0:00:40.384 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [command] ***************************************************************** Friday 27 May 2022 13:59:57 +0000 (0:00:00.285) 0:00:40.670 ************ fatal: [sut]: FAILED! => { "changed": true, "cmd": [ "ip", "link", "del", "deprecated-bond" ], "delta": "0:00:00.006848", "end": "2022-05-27 13:59:57.538571", "rc": 1, "start": "2022-05-27 13:59:57.531723" } STDERR: Cannot find device "deprecated-bond" MSG: non-zero return code ...ignoring TASK [Remove test interfaces] ************************************************** Friday 27 May 2022 13:59:58 +0000 (0:00:00.340) 0:00:41.010 ************ ok: [sut] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.049377", "end": "2022-05-27 13:59:57.918463", "rc": 0, "start": "2022-05-27 13:59:57.869086" } TASK [Stop dnsmasq/radvd services] ********************************************* Friday 27 May 2022 13:59:58 +0000 (0:00:00.333) 0:00:41.344 ************ 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.017199", "end": "2022-05-27 13:59:58.221988", "rc": 0, "start": "2022-05-27 13:59:58.204789" } PLAY RECAP ********************************************************************* sut : ok=71 changed=9 unreachable=0 failed=0 skipped=20 rescued=0 ignored=1 Friday 27 May 2022 13:59:58 +0000 (0:00:00.250) 0:00:41.594 ************ =============================================================================== Install dnsmasq -------------------------------------------------------- 11.37s Create EPEL 8 ----------------------------------------------------------- 2.68s linux-system-roles.network : Check which services are running ----------- 1.92s Install pgrep, sysctl --------------------------------------------------- 1.82s linux-system-roles.network : Check which packages are installed --------- 1.81s Create test interfaces -------------------------------------------------- 1.80s linux-system-roles.network : Check which services are running ----------- 1.71s linux-system-roles.network : Check which packages are installed --------- 1.51s linux-system-roles.network : Configure networking connection profiles --- 0.96s linux-system-roles.network : Configure networking connection profiles --- 0.87s Gathering Facts --------------------------------------------------------- 0.84s linux-system-roles.network : Enable and start NetworkManager ------------ 0.81s Enable EPEL 8 ----------------------------------------------------------- 0.80s Get stat for interface test1 -------------------------------------------- 0.62s Gathering Facts --------------------------------------------------------- 0.59s linux-system-roles.network : Enable and start NetworkManager ------------ 0.49s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.47s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.46s linux-system-roles.network : Re-test connectivity ----------------------- 0.42s command ----------------------------------------------------------------- 0.34s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---