ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp4wbeq7zn executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 03 August 2022 16:56:19 +0000 (0:00:00.018) 0:00:00.018 ****** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.222959", "end": "2022-08-03 16:56:18.979845", "rc": 0, "start": "2022-08-03 16:56:18.756886" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:56:19 +0000 (0:00:00.815) 0:00:00.834 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmp650e3cfh/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp650e3cfh/tests/_backup.yml:6 Wednesday 03 August 2022 16:56:20 +0000 (0:00:00.016) 0:00:00.851 ****** ok: [/cache/centos-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659545778.326285, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659545777.535285, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19258, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545238.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2231925613", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp650e3cfh/tests/_backup.yml:13 Wednesday 03 August 2022 16:56:20 +0000 (0:00:00.497) 0:00:01.349 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 19258, 'dev': 64513, 'nlink': 1, 'atime': 1659545778.326285, 'mtime': 1659545238.0, 'ctime': 1659545777.535285, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '2231925613', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659545778.326285, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659545777.535285, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19258, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545238.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2231925613", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp650e3cfh/tests/_backup.yml:19 Wednesday 03 August 2022 16:56:20 +0000 (0:00:00.076) 0:00:01.425 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.005304", "end": "2022-08-03 16:56:19.960218", "rc": 0, "start": "2022-08-03 16:56:19.954914" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=4 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:56:20 +0000 (0:00:00.386) 0:00:01.812 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- Get stats of system files ----------------------------------------------- 0.50s /tmp/tmp650e3cfh/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.39s /tmp/tmp650e3cfh/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.08s /tmp/tmp650e3cfh/tests/_backup.yml:13 ----------------------------------------- statically imported: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml statically imported: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml statically imported: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml statically imported: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml statically imported: /tmp/tmp650e3cfh/tests/playbooks/tasks/remove_test_interfaces_with_dhcp.yml PLAYBOOK: tests_bond_removal_initscripts.yml *********************************** 2 plays in /tmp/tmp650e3cfh/tests/tests_bond_removal_initscripts.yml PLAY [Run playbook 'playbooks/tests_bond_removal.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp650e3cfh/tests/tests_bond_removal_initscripts.yml:4 Wednesday 03 August 2022 16:56:21 +0000 (0:00:00.069) 0:00:01.881 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tests_bond_removal_initscripts.yml:7 Wednesday 03 August 2022 16:56:22 +0000 (0:00:01.047) 0:00:02.929 ****** included: /tmp/tmp650e3cfh/tests/tasks/el_repo_setup.yml for /cache/centos-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:56:22 +0000 (0:00:00.025) 0:00:02.954 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:56:22 +0000 (0:00:00.019) 0:00:02.974 ****** included: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml for /cache/centos-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:56:22 +0000 (0:00:00.025) 0:00:02.999 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:56:22 +0000 (0:00:00.346) 0:00:03.345 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:56:22 +0000 (0:00:00.021) 0:00:03.366 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.204479", "end": "2022-08-03 16:56:22.084030", "rc": 0, "start": "2022-08-03 16:56:21.879551" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp650e3cfh/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:56:23 +0000 (0:00:00.564) 0:00:03.931 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmp650e3cfh/tests/tests_bond_removal_initscripts.yml:8 Wednesday 03 August 2022 16:56:23 +0000 (0:00:00.019) 0:00:03.951 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:3 Wednesday 03 August 2022 16:56:23 +0000 (0:00:00.047) 0:00:03.999 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [INIT Prepare setup] ****************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:12 Wednesday 03 August 2022 16:56:23 +0000 (0:00:00.818) 0:00:04.818 ****** ok: [/cache/centos-8.qcow2] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 Wednesday 03 August 2022 16:56:24 +0000 (0:00:00.086) 0:00:04.905 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:8 Wednesday 03 August 2022 16:56:26 +0000 (0:00:02.778) 0:00:07.683 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:16 Wednesday 03 August 2022 16:56:26 +0000 (0:00:00.038) 0:00:07.722 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:24 Wednesday 03 August 2022 16:56:28 +0000 (0:00:01.980) 0:00:09.702 ****** ok: [/cache/centos-8.qcow2] => { "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.150506", "end": "2022-08-03 16:56:29.429376", "rc": 0, "start": "2022-08-03 16:56:28.278870" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:56:30 +0000 (0:00:01.577) 0:00:11.280 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface test1] ******************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:56:30 +0000 (0:00:00.042) 0:00:11.322 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659545788.2832856, "block_size": 4096, "blocks": 0, "ctime": 1659545788.2832856, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28149, "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": 1659545788.2832856, "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] ********************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:56:30 +0000 (0:00:00.387) 0:00:11.710 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:56:30 +0000 (0:00:00.044) 0:00:11.754 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface test2] ******************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:56:30 +0000 (0:00:00.041) 0:00:11.795 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659545788.2892556, "block_size": 4096, "blocks": 0, "ctime": 1659545788.2892556, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28405, "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": 1659545788.2892556, "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] ********************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:56:31 +0000 (0:00:00.391) 0:00:12.187 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:22 Wednesday 03 August 2022 16:56:31 +0000 (0:00:00.045) 0:00:12.233 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "cp", "-vf", "/etc/resolv.conf", "/etc/resolv.conf.bak" ], "delta": "0:00:00.004081", "end": "2022-08-03 16:56:30.802853", "rc": 0, "start": "2022-08-03 16:56:30.798772" } STDOUT: '/etc/resolv.conf' -> '/etc/resolv.conf.bak' TASK [TEST Add Bond with 2 ports] ********************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:27 Wednesday 03 August 2022 16:56:31 +0000 (0:00:00.431) 0:00:12.664 ****** ok: [/cache/centos-8.qcow2] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:56:31 +0000 (0:00:00.048) 0:00:12.713 ****** included: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:56:31 +0000 (0:00:00.060) 0:00:12.774 ****** ok: [/cache/centos-8.qcow2] => { "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] *********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:56:32 +0000 (0:00:00.538) 0:00:13.312 ****** ok: [/cache/centos-8.qcow2] => { "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] ********* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:56:34 +0000 (0:00:01.671) 0:00:14.983 ****** ok: [/cache/centos-8.qcow2] => { "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] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:56:35 +0000 (0:00:01.485) 0:00:16.468 ****** ok: [/cache/centos-8.qcow2] => {} 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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:56:35 +0000 (0:00:00.059) 0:00:16.528 ****** skipping: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:56:35 +0000 (0:00:00.057) 0:00:16.586 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:56:35 +0000 (0:00:00.050) 0:00:16.637 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:56:35 +0000 (0:00:00.075) 0:00:16.712 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:56:35 +0000 (0:00:00.054) 0:00:16.766 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:56:35 +0000 (0:00:00.050) 0:00:16.817 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:56:36 +0000 (0:00:00.055) 0:00:16.873 ****** skipping: [/cache/centos-8.qcow2] => { "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] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:56:36 +0000 (0:00:00.048) 0:00:16.921 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:56:36 +0000 (0:00:00.046) 0:00:16.968 ****** ok: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:56:36 +0000 (0:00:00.796) 0:00:17.764 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-9179088nkuw6e/tmppkkwmh23" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:56:37 +0000 (0:00:00.417) 0:00:18.181 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-8.qcow2] => { "_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 : Configure networking state] ***************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:56:55 +0000 (0:00:17.898) 0:00:36.080 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:56:55 +0000 (0:00:00.051) 0:00:36.132 ****** ok: [/cache/centos-8.qcow2] => { "__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 for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:56:55 +0000 (0:00:00.059) 0:00:36.191 ****** ok: [/cache/centos-8.qcow2] => { "__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 : Show debug messages for the network_state] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:56:55 +0000 (0:00:00.057) 0:00:36.249 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:56:55 +0000 (0:00:00.046) 0:00:36.295 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:56:55 +0000 (0:00:00.552) 0:00:36.848 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface nm-bond] ****************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:56:56 +0000 (0:00:00.079) 0:00:36.928 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659545797.1049635, "block_size": 4096, "blocks": 0, "ctime": 1659545797.1049635, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28738, "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": 1659545797.1049635, "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] ******************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:56:56 +0000 (0:00:00.423) 0:00:37.351 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:58 Wednesday 03 August 2022 16:56:56 +0000 (0:00:00.062) 0:00:37.414 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=bond0) included: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=bond0.0) included: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=bond0.1) TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:56:56 +0000 (0:00:00.107) 0:00:37.522 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:56:56 +0000 (0:00:00.070) 0:00:37.592 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:56:56 +0000 (0:00:00.057) 0:00:37.650 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659545797.062285, "block_size": 4096, "blocks": 8, "ctime": 1659545797.042285, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5763468, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659545797.042285, "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] ******************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:56:57 +0000 (0:00:00.408) 0:00:38.059 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:56:57 +0000 (0:00:00.123) 0:00:38.183 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.022176", "end": "2022-08-03 16:56:56.728202", "rc": 1, "start": "2022-08-03 16:56:56.706026" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:56:57 +0000 (0:00:00.405) 0:00:38.588 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0] ************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:56:57 +0000 (0:00:00.047) 0:00:38.635 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-bond0" ], "delta": "0:00:01.004359", "end": "2022-08-03 16:56:58.166229", "rc": 0, "start": "2022-08-03 16:56:57.161870" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:56:59 +0000 (0:00:01.393) 0:00:40.029 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'bond0' is present] ********************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:56:59 +0000 (0:00:00.067) 0:00:40.096 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:56:59 +0000 (0:00:00.062) 0:00:40.159 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:56:59 +0000 (0:00:00.058) 0:00:40.217 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:56:59 +0000 (0:00:00.106) 0:00:40.323 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:56:59 +0000 (0:00:00.062) 0:00:40.385 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659545797.108285, "block_size": 4096, "blocks": 8, "ctime": 1659545797.042285, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5902711, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659545797.042285, "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] ******************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:56:59 +0000 (0:00:00.403) 0:00:40.788 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:56:59 +0000 (0:00:00.060) 0:00:40.849 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.020434", "end": "2022-08-03 16:56:59.405909", "rc": 1, "start": "2022-08-03 16:56:59.385475" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:57:00 +0000 (0:00:00.418) 0:00:41.268 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0.0] ************************ task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:57:00 +0000 (0:00:00.050) 0:00:41.318 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-bond0.0" ], "delta": "0:00:01.004825", "end": "2022-08-03 16:57:00.886777", "rc": 0, "start": "2022-08-03 16:56:59.881952" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:57:01 +0000 (0:00:01.436) 0:00:42.754 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'bond0.0' is present] ******************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:57:02 +0000 (0:00:00.138) 0:00:42.893 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:57:02 +0000 (0:00:00.061) 0:00:42.955 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:57:02 +0000 (0:00:00.064) 0:00:43.019 ****** included: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:57:02 +0000 (0:00:00.073) 0:00:43.093 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:57:02 +0000 (0:00:00.060) 0:00:43.154 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659545797.108285, "block_size": 4096, "blocks": 8, "ctime": 1659545797.042285, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5902712, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659545797.042285, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.1", "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] ******************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:57:02 +0000 (0:00:00.403) 0:00:43.557 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:57:02 +0000 (0:00:00.060) 0:00:43.618 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.021601", "end": "2022-08-03 16:57:02.184234", "rc": 1, "start": "2022-08-03 16:57:02.162633" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:57:03 +0000 (0:00:00.426) 0:00:44.045 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0.1] ************************ task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:57:03 +0000 (0:00:00.050) 0:00:44.095 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-bond0.1" ], "delta": "0:00:00.003058", "end": "2022-08-03 16:57:02.651869", "rc": 0, "start": "2022-08-03 16:57:02.648811" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:57:03 +0000 (0:00:00.419) 0:00:44.514 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'bond0.1' is present] ******************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:57:03 +0000 (0:00:00.060) 0:00:44.575 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:57:03 +0000 (0:00:00.138) 0:00:44.713 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:65 Wednesday 03 August 2022 16:57:03 +0000 (0:00:00.062) 0:00:44.776 ****** changed: [/cache/centos-8.qcow2] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:00.003371", "end": "2022-08-03 16:57:03.314294", "rc": 0, "start": "2022-08-03 16:57:03.310923" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:70 Wednesday 03 August 2022 16:57:04 +0000 (0:00:00.402) 0:00:45.178 ****** changed: [/cache/centos-8.qcow2] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004361", "end": "2022-08-03 16:57:03.735133", "rc": 0, "start": "2022-08-03 16:57:03.730772" } STDOUT: 56: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.87/24 brd 192.0.2.255 scope global dynamic nm-bond valid_lft 291sec preferred_lft 291sec TASK [** TEST check IPv6] ****************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:76 Wednesday 03 August 2022 16:57:04 +0000 (0:00:00.421) 0:00:45.600 ****** changed: [/cache/centos-8.qcow2] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.004741", "end": "2022-08-03 16:57:04.156964", "rc": 0, "start": "2022-08-03 16:57:04.152223" } STDOUT: 56: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::3c6c:25ff:fe07:681f/64 scope global dynamic mngtmpaddr valid_lft 1795sec preferred_lft 1795sec inet6 fe80::3c6c:25ff:fe07:681f/64 scope link valid_lft forever preferred_lft forever TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:57:05 +0000 (0:00:00.420) 0:00:46.021 ****** included: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:57:05 +0000 (0:00:00.072) 0:00:46.093 ****** ok: [/cache/centos-8.qcow2] => { "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] *********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:57:05 +0000 (0:00:00.550) 0:00:46.644 ****** ok: [/cache/centos-8.qcow2] => { "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] ********* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:57:07 +0000 (0:00:01.621) 0:00:48.265 ****** ok: [/cache/centos-8.qcow2] => { "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] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:57:08 +0000 (0:00:01.122) 0:00:49.388 ****** ok: [/cache/centos-8.qcow2] => {} 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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:57:08 +0000 (0:00:00.057) 0:00:49.445 ****** skipping: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:57:08 +0000 (0:00:00.085) 0:00:49.531 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:57:08 +0000 (0:00:00.051) 0:00:49.582 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:57:08 +0000 (0:00:00.074) 0:00:49.657 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:57:08 +0000 (0:00:00.051) 0:00:49.708 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:57:08 +0000 (0:00:00.054) 0:00:49.763 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:57:08 +0000 (0:00:00.054) 0:00:49.818 ****** skipping: [/cache/centos-8.qcow2] => { "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] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:57:09 +0000 (0:00:00.051) 0:00:49.870 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:57:09 +0000 (0:00:00.050) 0:00:49.920 ****** ok: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:57:09 +0000 (0:00:00.580) 0:00:50.501 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-9179088nkuw6e/tmpgsbe1snd" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:57:10 +0000 (0:00:00.424) 0:00:50.925 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active) [004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:57:10 +0000 (0:00:00.906) 0:00:51.832 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.051) 0:00:51.883 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.058) 0:00:51.942 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)\n[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.062) 0:00:52.005 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.050) 0:00:52.056 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [Get the port1 profile "bond0.0" from the active connection] ************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:93 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.426) 0:00:52.483 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the port2 profile "bond0.1" from the active connection] ************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:101 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.049) 0:00:52.532 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port1 profile is not activated] ************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:109 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.050) 0:00:52.582 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port2 profile is not activated] ************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:116 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.046) 0:00:52.629 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the port1 device state] ********************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:123 Wednesday 03 August 2022 16:57:11 +0000 (0:00:00.048) 0:00:52.677 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ip", "a", "s", "test1" ], "delta": "0:00:00.003308", "end": "2022-08-03 16:57:11.228220", "rc": 0, "start": "2022-08-03 16:57:11.224912" } STDOUT: 52: test1@test1p: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 3e:6c:25:07:68:1f brd ff:ff:ff:ff:ff:ff TASK [Get the port2 device state] ********************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:130 Wednesday 03 August 2022 16:57:12 +0000 (0:00:00.410) 0:00:53.088 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ip", "a", "s", "test2" ], "delta": "0:00:00.003803", "end": "2022-08-03 16:57:11.632903", "rc": 0, "start": "2022-08-03 16:57:11.629100" } STDOUT: 54: test2@test2p: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 42:62:67:63:3b:34 brd ff:ff:ff:ff:ff:ff TASK [Assert that the port1 device is in DOWN state] *************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:137 Wednesday 03 August 2022 16:57:12 +0000 (0:00:00.447) 0:00:53.535 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Assert that the port2 device is in DOWN state] *************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:144 Wednesday 03 August 2022 16:57:12 +0000 (0:00:00.063) 0:00:53.599 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:57:12 +0000 (0:00:00.060) 0:00:53.660 ****** included: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:57:12 +0000 (0:00:00.070) 0:00:53.731 ****** ok: [/cache/centos-8.qcow2] => { "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] *********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:57:13 +0000 (0:00:00.551) 0:00:54.282 ****** ok: [/cache/centos-8.qcow2] => { "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] ********* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:57:14 +0000 (0:00:01.534) 0:00:55.817 ****** ok: [/cache/centos-8.qcow2] => { "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] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:57:16 +0000 (0:00:01.237) 0:00:57.054 ****** ok: [/cache/centos-8.qcow2] => {} 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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.057) 0:00:57.111 ****** skipping: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.050) 0:00:57.162 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.050) 0:00:57.212 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.101) 0:00:57.314 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.052) 0:00:57.366 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.048) 0:00:57.414 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.061) 0:00:57.476 ****** skipping: [/cache/centos-8.qcow2] => { "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] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.048) 0:00:57.524 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:57:16 +0000 (0:00:00.048) 0:00:57.572 ****** ok: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:57:17 +0000 (0:00:00.624) 0:00:58.197 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-9179088nkuw6e/tmpsubf_q2l" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:57:17 +0000 (0:00:00.411) 0:00:58.609 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-8.qcow2] => { "_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': ifcfg-rh profile 'bond0.0' already up to date [009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date [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 : Configure networking state] ***************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:57:20 +0000 (0:00:03.016) 0:01:01.625 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:57:20 +0000 (0:00:00.060) 0:01:01.685 ****** ok: [/cache/centos-8.qcow2] => { "__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': ifcfg-rh profile 'bond0.0' already up to date", "[009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date", "[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 for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:57:20 +0000 (0:00:00.058) 0:01:01.744 ****** ok: [/cache/centos-8.qcow2] => { "__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': ifcfg-rh profile 'bond0.0' already up to date\n[009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date\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': ifcfg-rh profile 'bond0.0' already up to date", "[009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date", "[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 for the network_state] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:57:20 +0000 (0:00:00.086) 0:01:01.830 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:57:21 +0000 (0:00:00.047) 0:01:01.878 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:57:21 +0000 (0:00:00.429) 0:01:02.307 ****** included: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:57:21 +0000 (0:00:00.070) 0:01:02.378 ****** ok: [/cache/centos-8.qcow2] => { "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] *********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:57:22 +0000 (0:00:00.570) 0:01:02.948 ****** ok: [/cache/centos-8.qcow2] => { "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] ********* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:57:24 +0000 (0:00:02.535) 0:01:05.483 ****** ok: [/cache/centos-8.qcow2] => { "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] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:57:25 +0000 (0:00:01.148) 0:01:06.632 ****** ok: [/cache/centos-8.qcow2] => {} 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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:57:25 +0000 (0:00:00.065) 0:01:06.697 ****** skipping: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:57:25 +0000 (0:00:00.052) 0:01:06.749 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:57:25 +0000 (0:00:00.049) 0:01:06.799 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:57:26 +0000 (0:00:00.075) 0:01:06.874 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:57:26 +0000 (0:00:00.048) 0:01:06.922 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:57:26 +0000 (0:00:00.054) 0:01:06.976 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:57:26 +0000 (0:00:00.053) 0:01:07.030 ****** skipping: [/cache/centos-8.qcow2] => { "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] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:57:26 +0000 (0:00:00.049) 0:01:07.080 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:57:26 +0000 (0:00:00.048) 0:01:07.128 ****** ok: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:57:26 +0000 (0:00:00.604) 0:01:07.733 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-9179088nkuw6e/tmpsjaz5in1" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:57:27 +0000 (0:00:00.453) 0:01:08.187 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0.1", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active) [006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active) [008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0' [010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.793) 0:01:08.980 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.050) 0:01:09.031 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active)", "[006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active)", "[008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0'", "[010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.059) 0:01:09.090 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0.1", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active)\n[006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active)\n[008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0'\n[010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1'\n", "stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active)", "[006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active)", "[008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0'", "[010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.056) 0:01:09.147 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.046) 0:01:09.194 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [Get the controller profile "bond0" from the active connection] *********** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:189 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.459) 0:01:09.653 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the controller profile is activated] ************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:197 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.046) 0:01:09.700 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the controller device details] *************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:205 Wednesday 03 August 2022 16:57:28 +0000 (0:00:00.052) 0:01:09.753 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ip", "-d", "a", "s", "nm-bond" ], "delta": "0:00:00.005443", "end": "2022-08-03 16:57:28.308036", "rc": 0, "start": "2022-08-03 16:57:28.302593" } STDOUT: 56: nm-bond: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 7e:f3:de:b3:1b:94 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 bond mode active-backup miimon 110 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy layer2 resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable tlb_dynamic_lb 1 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535 inet 192.0.2.87/24 brd 192.0.2.255 scope global dynamic nm-bond valid_lft 292sec preferred_lft 292sec inet6 fe80::3c6c:25ff:fe07:681f/64 scope link valid_lft forever preferred_lft forever TASK [Assert that the controller profile is activated] ************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:212 Wednesday 03 August 2022 16:57:29 +0000 (0:00:00.423) 0:01:10.176 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:57:29 +0000 (0:00:00.058) 0:01:10.234 ****** included: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:57:29 +0000 (0:00:00.069) 0:01:10.304 ****** ok: [/cache/centos-8.qcow2] => { "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] *********** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:57:30 +0000 (0:00:00.555) 0:01:10.860 ****** ok: [/cache/centos-8.qcow2] => { "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] ********* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:57:31 +0000 (0:00:01.567) 0:01:12.428 ****** ok: [/cache/centos-8.qcow2] => { "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] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:57:32 +0000 (0:00:01.208) 0:01:13.636 ****** ok: [/cache/centos-8.qcow2] => {} 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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:57:32 +0000 (0:00:00.062) 0:01:13.699 ****** skipping: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:57:32 +0000 (0:00:00.047) 0:01:13.746 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:57:32 +0000 (0:00:00.048) 0:01:13.794 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:57:33 +0000 (0:00:00.077) 0:01:13.871 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:57:33 +0000 (0:00:00.055) 0:01:13.927 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:57:33 +0000 (0:00:00.052) 0:01:13.979 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:57:33 +0000 (0:00:00.091) 0:01:14.071 ****** skipping: [/cache/centos-8.qcow2] => { "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] ************ task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:57:33 +0000 (0:00:00.049) 0:01:14.121 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:57:33 +0000 (0:00:00.044) 0:01:14.165 ****** ok: [/cache/centos-8.qcow2] => { "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] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:57:33 +0000 (0:00:00.576) 0:01:14.742 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-9179088nkuw6e/tmpjo29ixmw" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:57:34 +0000 (0:00:00.429) 0:01:15.171 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active) [004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:57:34 +0000 (0:00:00.656) 0:01:15.828 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:57:35 +0000 (0:00:00.051) 0:01:15.879 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:57:35 +0000 (0:00:00.055) 0:01:15.935 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)\n[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:57:35 +0000 (0:00:00.062) 0:01:15.998 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:57:35 +0000 (0:00:00.086) 0:01:16.084 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [command] ***************************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:231 Wednesday 03 August 2022 16:57:35 +0000 (0:00:00.422) 0:01:16.507 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.017124", "end": "2022-08-03 16:57:35.069478", "rc": 0, "start": "2022-08-03 16:57:35.052354" } TASK [Remove test interfaces] ************************************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:3 Wednesday 03 August 2022 16:57:36 +0000 (0:00:00.429) 0:01:16.936 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.055627", "end": "2022-08-03 16:57:35.532364", "rc": 0, "start": "2022-08-03 16:57:35.476737" } TASK [Stop dnsmasq/radvd services] ********************************************* task path: /tmp/tmp650e3cfh/tests/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:11 Wednesday 03 August 2022 16:57:36 +0000 (0:00:00.463) 0:01:17.399 ****** ok: [/cache/centos-8.qcow2] => { "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.019243", "end": "2022-08-03 16:57:35.972626", "rc": 0, "start": "2022-08-03 16:57:35.953383" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** task path: /tmp/tmp650e3cfh/tests/playbooks/tests_bond_removal.yml:234 Wednesday 03 August 2022 16:57:36 +0000 (0:00:00.447) 0:01:17.846 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "mv", "-vf", "/etc/resolv.conf.bak", "/etc/resolv.conf" ], "delta": "0:00:00.007313", "end": "2022-08-03 16:57:36.404862", "rc": 0, "start": "2022-08-03 16:57:36.397549" } STDOUT: renamed '/etc/resolv.conf.bak' -> '/etc/resolv.conf' META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=124 changed=17 unreachable=0 failed=0 skipped=63 rescued=0 ignored=3 Wednesday 03 August 2022 16:57:37 +0000 (0:00:00.441) 0:01:18.288 ****** =============================================================================== linux-system-roles.network : Configure networking connection profiles -- 20.91s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Install dnsmasq --------------------------------------------------------- 2.78s /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 - linux-system-roles.network : Check which services are running ----------- 2.54s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Install pgrep, sysctl --------------------------------------------------- 1.98s /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:16 linux-system-roles.network : Check which services are running ----------- 1.67s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Create test interfaces -------------------------------------------------- 1.58s /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:24 linux-system-roles.network : Check which services are running ----------- 1.57s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Configure networking connection profiles --- 1.56s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Check which services are running ----------- 1.53s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.49s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Get the ansible_managed comment in ifcfg-bond0.0 ------------------------ 1.44s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 ---------------- linux-system-roles.network : Enable network service --------------------- 1.42s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- Get the ansible_managed comment in ifcfg-bond0 -------------------------- 1.39s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 ---------------- linux-system-roles.network : Check which packages are installed --------- 1.24s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Check which packages are installed --------- 1.21s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Enable network service --------------------- 1.16s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Check which packages are installed --------- 1.15s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Check which packages are installed --------- 1.12s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmp650e3cfh/tests/tests_bond_removal_initscripts.yml:4 ------------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmp650e3cfh/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmp650e3cfh/tests/_restore.yml:4 Wednesday 03 August 2022 16:57:37 +0000 (0:00:00.080) 0:01:18.368 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006431", "end": "2022-08-03 16:57:36.901202", "rc": 0, "start": "2022-08-03 16:57:36.894771" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=125 changed=18 unreachable=0 failed=0 skipped=63 rescued=0 ignored=3 Wednesday 03 August 2022 16:57:37 +0000 (0:00:00.417) 0:01:18.785 ****** =============================================================================== linux-system-roles.network : Configure networking connection profiles -- 20.91s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Install dnsmasq --------------------------------------------------------- 2.78s /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 - linux-system-roles.network : Check which services are running ----------- 2.54s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Install pgrep, sysctl --------------------------------------------------- 1.98s /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:16 linux-system-roles.network : Check which services are running ----------- 1.67s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.62s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Create test interfaces -------------------------------------------------- 1.58s /tmp/tmp650e3cfh/tests/playbooks/tasks/create_test_interfaces_with_dhcp.yml:24 linux-system-roles.network : Check which services are running ----------- 1.57s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Configure networking connection profiles --- 1.56s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Check which services are running ----------- 1.53s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.49s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Get the ansible_managed comment in ifcfg-bond0.0 ------------------------ 1.44s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 ---------------- linux-system-roles.network : Enable network service --------------------- 1.42s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- Get the ansible_managed comment in ifcfg-bond0 -------------------------- 1.39s /tmp/tmp650e3cfh/tests/playbooks/tasks/get_profile_stat.yml:43 ---------------- linux-system-roles.network : Check which packages are installed --------- 1.24s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Check which packages are installed --------- 1.21s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Enable network service --------------------- 1.16s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Check which packages are installed --------- 1.15s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Check which packages are installed --------- 1.12s /tmp/tmp650e3cfh/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmp650e3cfh/tests/tests_bond_removal_initscripts.yml:4 ------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp4wbeq7zn executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 03 August 2022 17:35:26 +0000 (0:00:00.019) 0:00:00.019 ****** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.223821", "end": "2022-08-03 17:35:26.092948", "rc": 0, "start": "2022-08-03 17:35:25.869127" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:35:27 +0000 (0:00:00.824) 0:00:00.844 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpjloc5qmw/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpjloc5qmw/tests/network/_backup.yml:6 Wednesday 03 August 2022 17:35:27 +0000 (0:00:00.016) 0:00:00.860 ****** ok: [/cache/centos-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659548125.3380773, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659548124.6310773, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19274, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659547587.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2299847645", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpjloc5qmw/tests/network/_backup.yml:13 Wednesday 03 August 2022 17:35:27 +0000 (0:00:00.501) 0:00:01.362 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 19274, 'dev': 64513, 'nlink': 1, 'atime': 1659548125.3380773, 'mtime': 1659547587.0, 'ctime': 1659548124.6310773, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '2299847645', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659548125.3380773, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659548124.6310773, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 19274, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659547587.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "2299847645", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpjloc5qmw/tests/network/_backup.yml:19 Wednesday 03 August 2022 17:35:27 +0000 (0:00:00.076) 0:00:01.438 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004739", "end": "2022-08-03 17:35:27.067121", "rc": 0, "start": "2022-08-03 17:35:27.062382" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=4 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:35:28 +0000 (0:00:00.377) 0:00:01.816 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpjloc5qmw/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.38s /tmp/tmpjloc5qmw/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.08s /tmp/tmpjloc5qmw/tests/network/_backup.yml:13 --------------------------------- statically imported: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml statically imported: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml statically imported: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml statically imported: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml statically imported: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml PLAYBOOK: tests_bond_removal_initscripts.yml *********************************** 2 plays in /tmp/tmpjloc5qmw/tests/network/tests_bond_removal_initscripts.yml PLAY [Run playbook 'playbooks/tests_bond_removal.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjloc5qmw/tests/network/tests_bond_removal_initscripts.yml:4 Wednesday 03 August 2022 17:35:28 +0000 (0:00:00.086) 0:00:01.902 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tests_bond_removal_initscripts.yml:7 Wednesday 03 August 2022 17:35:29 +0000 (0:00:01.013) 0:00:02.916 ****** included: /tmp/tmpjloc5qmw/tests/network/tasks/el_repo_setup.yml for /cache/centos-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:35:29 +0000 (0:00:00.026) 0:00:02.942 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:35:29 +0000 (0:00:00.022) 0:00:02.965 ****** included: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml for /cache/centos-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:35:29 +0000 (0:00:00.029) 0:00:02.994 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:35:29 +0000 (0:00:00.359) 0:00:03.353 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:35:29 +0000 (0:00:00.021) 0:00:03.375 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.203656", "end": "2022-08-03 17:35:29.200897", "rc": 0, "start": "2022-08-03 17:35:28.997241" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:35:30 +0000 (0:00:00.570) 0:00:03.945 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpjloc5qmw/tests/network/tests_bond_removal_initscripts.yml:8 Wednesday 03 August 2022 17:35:30 +0000 (0:00:00.019) 0:00:03.965 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:3 Wednesday 03 August 2022 17:35:30 +0000 (0:00:00.045) 0:00:04.011 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [INIT Prepare setup] ****************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:12 Wednesday 03 August 2022 17:35:31 +0000 (0:00:00.840) 0:00:04.852 ****** ok: [/cache/centos-8.qcow2] => {} MSG: ################################################## TASK [Install dnsmasq] ********************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 Wednesday 03 August 2022 17:35:31 +0000 (0:00:00.085) 0:00:04.937 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:8 Wednesday 03 August 2022 17:35:34 +0000 (0:00:02.552) 0:00:07.490 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:16 Wednesday 03 August 2022 17:35:34 +0000 (0:00:00.036) 0:00:07.526 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create test interfaces] ************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:24 Wednesday 03 August 2022 17:35:36 +0000 (0:00:01.941) 0:00:09.468 ****** ok: [/cache/centos-8.qcow2] => { "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.162115", "end": "2022-08-03 17:35:36.301203", "rc": 0, "start": "2022-08-03 17:35:35.139088" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 17:35:37 +0000 (0:00:01.586) 0:00:11.054 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface test1] ******************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:35:37 +0000 (0:00:00.042) 0:00:11.097 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659548135.143722, "block_size": 4096, "blocks": 0, "ctime": 1659548135.143722, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28149, "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": 1659548135.143722, "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] ********************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 17:35:38 +0000 (0:00:00.381) 0:00:11.479 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 17:35:38 +0000 (0:00:00.046) 0:00:11.526 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface test2] ******************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:35:38 +0000 (0:00:00.043) 0:00:11.569 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659548135.1460812, "block_size": 4096, "blocks": 0, "ctime": 1659548135.1460812, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28405, "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": 1659548135.1460812, "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] ********************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 17:35:38 +0000 (0:00:00.381) 0:00:11.951 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Backup the /etc/resolv.conf for initscript] ****************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:22 Wednesday 03 August 2022 17:35:38 +0000 (0:00:00.047) 0:00:11.999 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "cp", "-vf", "/etc/resolv.conf", "/etc/resolv.conf.bak" ], "delta": "0:00:00.003367", "end": "2022-08-03 17:35:37.636846", "rc": 0, "start": "2022-08-03 17:35:37.633479" } STDOUT: '/etc/resolv.conf' -> '/etc/resolv.conf.bak' TASK [TEST Add Bond with 2 ports] ********************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:27 Wednesday 03 August 2022 17:35:38 +0000 (0:00:00.382) 0:00:12.381 ****** ok: [/cache/centos-8.qcow2] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 17:35:38 +0000 (0:00:00.043) 0:00:12.425 ****** included: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:35:39 +0000 (0:00:00.053) 0:00:12.478 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 17:35:39 +0000 (0:00:00.527) 0:00:13.006 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 17:35:41 +0000 (0:00:01.676) 0:00:14.682 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 17:35:42 +0000 (0:00:01.464) 0:00:16.147 ****** ok: [/cache/centos-8.qcow2] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 17:35:42 +0000 (0:00:00.112) 0:00:16.260 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 17:35:42 +0000 (0:00:00.047) 0:00:16.308 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 17:35:42 +0000 (0:00:00.047) 0:00:16.356 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 17:35:42 +0000 (0:00:00.075) 0:00:16.431 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 17:35:43 +0000 (0:00:00.053) 0:00:16.484 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 17:35:43 +0000 (0:00:00.052) 0:00:16.537 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 17:35:43 +0000 (0:00:00.058) 0:00:16.596 ****** skipping: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 17:35:43 +0000 (0:00:00.050) 0:00:16.647 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 17:35:43 +0000 (0:00:00.045) 0:00:16.692 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 17:35:44 +0000 (0:00:00.799) 0:00:17.492 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-141329iuoxjwuo/tmprqgqb_nr" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 17:35:44 +0000 (0:00:00.421) 0:00:17.913 ****** changed: [/cache/centos-8.qcow2] => { "_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 [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 17:36:10 +0000 (0:00:26.270) 0:00:44.184 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 17:36:10 +0000 (0:00:00.061) 0:00:44.246 ****** ok: [/cache/centos-8.qcow2] => { "__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 [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 17:36:10 +0000 (0:00:00.063) 0:00:44.309 ****** ok: [/cache/centos-8.qcow2] => { "__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 [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 17:36:10 +0000 (0:00:00.065) 0:00:44.374 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 17:36:10 +0000 (0:00:00.050) 0:00:44.425 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 17:36:11 +0000 (0:00:00.581) 0:00:45.006 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-8.qcow2 TASK [Get stat for interface nm-bond] ****************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:36:11 +0000 (0:00:00.075) 0:00:45.082 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659548143.9382935, "block_size": 4096, "blocks": 0, "ctime": 1659548143.9382935, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 28738, "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": 1659548143.9382935, "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] ******************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 17:36:12 +0000 (0:00:00.411) 0:00:45.493 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:58 Wednesday 03 August 2022 17:36:12 +0000 (0:00:00.060) 0:00:45.553 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=bond0) included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=bond0.0) included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/centos-8.qcow2 => (item=bond0.1) TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 17:36:12 +0000 (0:00:00.103) 0:00:45.656 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 17:36:12 +0000 (0:00:00.069) 0:00:45.726 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 17:36:12 +0000 (0:00:00.055) 0:00:45.781 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659548143.8890772, "block_size": 4096, "blocks": 8, "ctime": 1659548143.8880773, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5763468, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659548143.8880773, "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] ******************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 17:36:12 +0000 (0:00:00.436) 0:00:46.218 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 17:36:12 +0000 (0:00:00.060) 0:00:46.279 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0 | grep /etc", "delta": "0:00:00.023922", "end": "2022-08-03 17:36:11.945162", "rc": 1, "start": "2022-08-03 17:36:11.921240" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 17:36:13 +0000 (0:00:00.423) 0:00:46.702 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0] ************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 17:36:13 +0000 (0:00:00.048) 0:00:46.750 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-bond0" ], "delta": "0:00:00.002885", "end": "2022-08-03 17:36:12.395921", "rc": 0, "start": "2022-08-03 17:36:12.393036" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-bond0] *********************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 17:36:13 +0000 (0:00:00.406) 0:00:47.157 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'bond0' is present] ********************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 17:36:13 +0000 (0:00:00.060) 0:00:47.218 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0' is present] *************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 17:36:13 +0000 (0:00:00.061) 0:00:47.279 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 17:36:13 +0000 (0:00:00.060) 0:00:47.340 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 17:36:13 +0000 (0:00:00.066) 0:00:47.407 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 17:36:14 +0000 (0:00:00.053) 0:00:47.460 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659548143.9400773, "block_size": 4096, "blocks": 8, "ctime": 1659548143.8890772, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5902712, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659548143.8890772, "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] ******************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 17:36:14 +0000 (0:00:00.399) 0:00:47.859 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 17:36:14 +0000 (0:00:00.122) 0:00:47.982 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.0 | grep /etc", "delta": "0:00:00.022260", "end": "2022-08-03 17:36:13.650770", "rc": 1, "start": "2022-08-03 17:36:13.628510" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 17:36:14 +0000 (0:00:00.432) 0:00:48.415 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0.0] ************************ task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 17:36:15 +0000 (0:00:00.052) 0:00:48.467 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-bond0.0" ], "delta": "0:00:00.003394", "end": "2022-08-03 17:36:14.118832", "rc": 0, "start": "2022-08-03 17:36:14.115438" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-bond0.0] ********************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 17:36:15 +0000 (0:00:00.413) 0:00:48.881 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'bond0.0' is present] ******************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 17:36:15 +0000 (0:00:00.067) 0:00:48.948 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.0' is present] ************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 17:36:15 +0000 (0:00:00.065) 0:00:49.014 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 17:36:15 +0000 (0:00:00.064) 0:00:49.078 ****** included: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/centos-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 17:36:15 +0000 (0:00:00.076) 0:00:49.155 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 17:36:15 +0000 (0:00:00.062) 0:00:49.218 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1659548143.9400773, "block_size": 4096, "blocks": 8, "ctime": 1659548143.8890772, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5902713, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659548143.8890772, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-bond0.1", "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] ******************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 17:36:16 +0000 (0:00:00.424) 0:00:49.642 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 17:36:16 +0000 (0:00:00.104) 0:00:49.747 ****** fatal: [/cache/centos-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep bond0.1 | grep /etc", "delta": "0:00:00.027541", "end": "2022-08-03 17:36:15.462599", "rc": 1, "start": "2022-08-03 17:36:15.435058" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 17:36:16 +0000 (0:00:00.473) 0:00:50.221 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-bond0.1] ************************ task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 17:36:16 +0000 (0:00:00.053) 0:00:50.274 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-bond0.1" ], "delta": "0:00:00.003467", "end": "2022-08-03 17:36:15.926863", "rc": 0, "start": "2022-08-03 17:36:15.923396" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-bond0.1] ********************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 17:36:17 +0000 (0:00:00.413) 0:00:50.687 ****** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'bond0.1' is present] ******************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 17:36:17 +0000 (0:00:00.064) 0:00:50.752 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'bond0.1' is present] ************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 17:36:17 +0000 (0:00:00.063) 0:00:50.815 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [** TEST check polling interval] ****************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:65 Wednesday 03 August 2022 17:36:17 +0000 (0:00:00.062) 0:00:50.878 ****** changed: [/cache/centos-8.qcow2] => { "attempts": 1, "changed": true, "cmd": [ "grep", "Polling Interval", "/proc/net/bonding/nm-bond" ], "delta": "0:00:00.004471", "end": "2022-08-03 17:36:16.513916", "rc": 0, "start": "2022-08-03 17:36:16.509445" } STDOUT: MII Polling Interval (ms): 110 TASK [** TEST check IPv4] ****************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:69 Wednesday 03 August 2022 17:36:17 +0000 (0:00:00.402) 0:00:51.280 ****** changed: [/cache/centos-8.qcow2] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-4", "a", "s", "nm-bond" ], "delta": "0:00:00.004548", "end": "2022-08-03 17:36:16.937908", "rc": 0, "start": "2022-08-03 17:36:16.933360" } STDOUT: 56: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet 192.0.2.212/24 brd 192.0.2.255 scope global dynamic nm-bond valid_lft 293sec preferred_lft 293sec TASK [** TEST check IPv6] ****************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:75 Wednesday 03 August 2022 17:36:18 +0000 (0:00:00.422) 0:00:51.703 ****** changed: [/cache/centos-8.qcow2] => { "attempts": 1, "changed": true, "cmd": [ "ip", "-6", "a", "s", "nm-bond" ], "delta": "0:00:00.003664", "end": "2022-08-03 17:36:17.346978", "rc": 0, "start": "2022-08-03 17:36:17.343314" } STDOUT: 56: nm-bond: mtu 1500 qdisc noqueue state UP group default qlen 1000 inet6 2001:db8::84f6:3aff:fee7:81eb/64 scope global dynamic mngtmpaddr valid_lft 1795sec preferred_lft 1795sec inet6 fe80::84f6:3aff:fee7:81eb/64 scope link valid_lft forever preferred_lft forever TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 17:36:18 +0000 (0:00:00.442) 0:00:52.146 ****** included: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:36:18 +0000 (0:00:00.075) 0:00:52.221 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 17:36:19 +0000 (0:00:00.545) 0:00:52.767 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 17:36:20 +0000 (0:00:01.577) 0:00:54.345 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 17:36:22 +0000 (0:00:01.264) 0:00:55.609 ****** ok: [/cache/centos-8.qcow2] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.059) 0:00:55.668 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.052) 0:00:55.720 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.050) 0:00:55.771 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.089) 0:00:55.860 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.051) 0:00:55.912 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.049) 0:00:55.962 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.057) 0:00:56.019 ****** skipping: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.051) 0:00:56.071 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 17:36:22 +0000 (0:00:00.046) 0:00:56.117 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 17:36:23 +0000 (0:00:00.568) 0:00:56.685 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-141329iuoxjwuo/tmp57r4mv86" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 17:36:23 +0000 (0:00:00.406) 0:00:57.092 ****** changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active) [004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 17:36:24 +0000 (0:00:00.939) 0:00:58.031 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 17:36:24 +0000 (0:00:00.058) 0:00:58.090 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 17:36:24 +0000 (0:00:00.068) 0:00:58.158 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)\n[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\nWARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 17:36:24 +0000 (0:00:00.064) 0:00:58.223 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 17:36:24 +0000 (0:00:00.051) 0:00:58.274 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [Get the port1 profile "bond0.0" from the active connection] ************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:91 Wednesday 03 August 2022 17:36:25 +0000 (0:00:00.432) 0:00:58.707 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the port2 profile "bond0.1" from the active connection] ************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:98 Wednesday 03 August 2022 17:36:25 +0000 (0:00:00.053) 0:00:58.760 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port1 profile is not activated] ************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:105 Wednesday 03 August 2022 17:36:25 +0000 (0:00:00.049) 0:00:58.810 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the port2 profile is not activated] ************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:112 Wednesday 03 August 2022 17:36:25 +0000 (0:00:00.044) 0:00:58.855 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the port1 device state] ********************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:119 Wednesday 03 August 2022 17:36:25 +0000 (0:00:00.048) 0:00:58.903 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ip", "a", "s", "test1" ], "delta": "0:00:00.003692", "end": "2022-08-03 17:36:24.552671", "rc": 0, "start": "2022-08-03 17:36:24.548979" } STDOUT: 52: test1@test1p: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 86:f6:3a:e7:81:eb brd ff:ff:ff:ff:ff:ff TASK [Get the port2 device state] ********************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:126 Wednesday 03 August 2022 17:36:25 +0000 (0:00:00.414) 0:00:59.318 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ip", "a", "s", "test2" ], "delta": "0:00:00.003390", "end": "2022-08-03 17:36:25.016884", "rc": 0, "start": "2022-08-03 17:36:25.013494" } STDOUT: 54: test2@test2p: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether a6:5c:34:e2:19:fa brd ff:ff:ff:ff:ff:ff TASK [Assert that the port1 device is in DOWN state] *************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:133 Wednesday 03 August 2022 17:36:26 +0000 (0:00:00.457) 0:00:59.775 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Assert that the port2 device is in DOWN state] *************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:140 Wednesday 03 August 2022 17:36:26 +0000 (0:00:00.063) 0:00:59.838 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 17:36:26 +0000 (0:00:00.063) 0:00:59.901 ****** included: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:36:26 +0000 (0:00:00.075) 0:00:59.976 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 17:36:27 +0000 (0:00:00.542) 0:01:00.519 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 17:36:28 +0000 (0:00:01.499) 0:01:02.019 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 17:36:29 +0000 (0:00:01.239) 0:01:03.259 ****** ok: [/cache/centos-8.qcow2] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 17:36:29 +0000 (0:00:00.103) 0:01:03.362 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.078) 0:01:03.440 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.052) 0:01:03.493 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.078) 0:01:03.571 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.052) 0:01:03.623 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.051) 0:01:03.675 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.063) 0:01:03.739 ****** skipping: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.106) 0:01:03.845 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 17:36:30 +0000 (0:00:00.047) 0:01:03.893 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 17:36:31 +0000 (0:00:00.582) 0:01:04.475 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-141329iuoxjwuo/tmpiilp6d8h" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 17:36:31 +0000 (0:00:00.422) 0:01:04.898 ****** changed: [/cache/centos-8.qcow2] => { "_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': ifcfg-rh profile 'bond0.0' already up to date [009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date [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 [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 17:36:34 +0000 (0:00:03.031) 0:01:07.929 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 17:36:34 +0000 (0:00:00.051) 0:01:07.981 ****** ok: [/cache/centos-8.qcow2] => { "__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': ifcfg-rh profile 'bond0.0' already up to date", "[009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date", "[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 [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 17:36:34 +0000 (0:00:00.064) 0:01:08.045 ****** ok: [/cache/centos-8.qcow2] => { "__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': ifcfg-rh profile 'bond0.0' already up to date\n[009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date\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': ifcfg-rh profile 'bond0.0' already up to date", "[009] #2, state:up persistent_state:present, 'bond0.1': ifcfg-rh profile 'bond0.1' already up to date", "[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 [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 17:36:34 +0000 (0:00:00.136) 0:01:08.182 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 17:36:34 +0000 (0:00:00.049) 0:01:08.231 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 17:36:35 +0000 (0:00:00.442) 0:01:08.673 ****** included: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:36:35 +0000 (0:00:00.073) 0:01:08.747 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 17:36:35 +0000 (0:00:00.555) 0:01:09.302 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 17:36:38 +0000 (0:00:02.568) 0:01:11.870 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 17:36:39 +0000 (0:00:01.175) 0:01:13.046 ****** ok: [/cache/centos-8.qcow2] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 17:36:39 +0000 (0:00:00.062) 0:01:13.108 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 17:36:39 +0000 (0:00:00.052) 0:01:13.160 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 17:36:39 +0000 (0:00:00.051) 0:01:13.211 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 17:36:39 +0000 (0:00:00.075) 0:01:13.287 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 17:36:39 +0000 (0:00:00.049) 0:01:13.336 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 17:36:39 +0000 (0:00:00.049) 0:01:13.386 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 17:36:40 +0000 (0:00:00.058) 0:01:13.445 ****** skipping: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 17:36:40 +0000 (0:00:00.048) 0:01:13.493 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 17:36:40 +0000 (0:00:00.099) 0:01:13.593 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 17:36:40 +0000 (0:00:00.563) 0:01:14.157 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-141329iuoxjwuo/tmpp99wgs5x" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 17:36:41 +0000 (0:00:00.432) 0:01:14.589 ****** changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0.1", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active) [006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active) [008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0' [010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 17:36:41 +0000 (0:00:00.789) 0:01:15.378 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 17:36:42 +0000 (0:00:00.060) 0:01:15.439 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active)", "[006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active)", "[008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0'", "[010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 17:36:42 +0000 (0:00:00.062) 0:01:15.501 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0.0", "persistent_state": "absent", "state": "down" }, { "name": "bond0.1", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active)\n[006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active)\n[008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0'\n[010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1'\n", "stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'bond0.0': up connection bond0.0 (active)", "[006] #0, state:down persistent_state:absent, 'bond0.0': call 'ifdown bond0.0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[007] #1, state:down persistent_state:absent, 'bond0.1': up connection bond0.1 (active)", "[008] #1, state:down persistent_state:absent, 'bond0.1': call 'ifdown bond0.1': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[009] #0, state:down persistent_state:absent, 'bond0.0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.0'", "[010] #1, state:down persistent_state:absent, 'bond0.1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0.1'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 17:36:42 +0000 (0:00:00.063) 0:01:15.565 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 17:36:42 +0000 (0:00:00.049) 0:01:15.614 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [Get the controller profile "bond0" from the active connection] *********** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:185 Wednesday 03 August 2022 17:36:42 +0000 (0:00:00.412) 0:01:16.026 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the controller profile is activated] ************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:192 Wednesday 03 August 2022 17:36:42 +0000 (0:00:00.049) 0:01:16.076 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the controller device details] *************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:199 Wednesday 03 August 2022 17:36:42 +0000 (0:00:00.049) 0:01:16.125 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "ip", "-d", "a", "s", "nm-bond" ], "delta": "0:00:00.003683", "end": "2022-08-03 17:36:41.769828", "rc": 0, "start": "2022-08-03 17:36:41.766145" } STDOUT: 56: nm-bond: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 02:45:cc:0b:72:22 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 bond mode active-backup miimon 110 updelay 0 downdelay 0 peer_notify_delay 0 use_carrier 1 arp_interval 0 arp_validate none arp_all_targets any primary_reselect always fail_over_mac none xmit_hash_policy layer2 resend_igmp 1 num_grat_arp 1 all_slaves_active 0 min_links 0 lp_interval 1 packets_per_slave 1 lacp_rate slow ad_select stable tlb_dynamic_lb 1 numtxqueues 16 numrxqueues 16 gso_max_size 65536 gso_max_segs 65535 inet 192.0.2.212/24 brd 192.0.2.255 scope global dynamic nm-bond valid_lft 292sec preferred_lft 292sec inet6 fe80::84f6:3aff:fee7:81eb/64 scope link valid_lft forever preferred_lft forever TASK [Assert that the controller profile is activated] ************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:206 Wednesday 03 August 2022 17:36:43 +0000 (0:00:00.410) 0:01:16.536 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 17:36:43 +0000 (0:00:00.066) 0:01:16.602 ****** included: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:36:43 +0000 (0:00:00.075) 0:01:16.677 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 17:36:43 +0000 (0:00:00.537) 0:01:17.214 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 17:36:45 +0000 (0:00:01.539) 0:01:18.754 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 17:36:46 +0000 (0:00:01.164) 0:01:19.918 ****** ok: [/cache/centos-8.qcow2] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.061) 0:01:19.980 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.051) 0:01:20.031 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.050) 0:01:20.082 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.078) 0:01:20.161 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.052) 0:01:20.214 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.090) 0:01:20.304 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.054) 0:01:20.359 ****** skipping: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 17:36:46 +0000 (0:00:00.060) 0:01:20.419 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 17:36:47 +0000 (0:00:00.051) 0:01:20.471 ****** ok: [/cache/centos-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 17:36:47 +0000 (0:00:00.576) 0:01:21.047 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-141329iuoxjwuo/tmp77nob_6m" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 17:36:48 +0000 (0:00:00.413) 0:01:21.460 ****** changed: [/cache/centos-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active) [004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 17:36:48 +0000 (0:00:00.642) 0:01:22.102 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 17:36:48 +0000 (0:00:00.049) 0:01:22.152 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 17:36:48 +0000 (0:00:00.059) 0:01:22.212 ****** ok: [/cache/centos-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "bond0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)\n[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'bond0': up connection bond0 (active)", "[004] #0, state:down persistent_state:absent, 'bond0': call 'ifdown bond0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'bond0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-bond0'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 17:36:48 +0000 (0:00:00.095) 0:01:22.307 ****** skipping: [/cache/centos-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 17:36:48 +0000 (0:00:00.089) 0:01:22.397 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-8.qcow2 TASK [command] ***************************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:224 Wednesday 03 August 2022 17:36:49 +0000 (0:00:00.418) 0:01:22.815 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "ip", "link", "del", "nm-bond" ], "delta": "0:00:00.021246", "end": "2022-08-03 17:36:48.482826", "rc": 0, "start": "2022-08-03 17:36:48.461580" } TASK [Remove test interfaces] ************************************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:3 Wednesday 03 August 2022 17:36:49 +0000 (0:00:00.433) 0:01:23.249 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "ip link delete test1\nip link delete test2\nip link delete testbr\n", "delta": "0:00:00.073100", "end": "2022-08-03 17:36:48.955378", "rc": 0, "start": "2022-08-03 17:36:48.882278" } TASK [Stop dnsmasq/radvd services] ********************************************* task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml:11 Wednesday 03 August 2022 17:36:50 +0000 (0:00:00.481) 0:01:23.730 ****** ok: [/cache/centos-8.qcow2] => { "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.014737", "end": "2022-08-03 17:36:49.406839", "rc": 0, "start": "2022-08-03 17:36:49.392102" } TASK [Restore the /etc/resolv.conf for initscript] ***************************** task path: /tmp/tmpjloc5qmw/tests/network/playbooks/tests_bond_removal.yml:227 Wednesday 03 August 2022 17:36:50 +0000 (0:00:00.439) 0:01:24.170 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "mv", "-vf", "/etc/resolv.conf.bak", "/etc/resolv.conf" ], "delta": "0:00:00.003632", "end": "2022-08-03 17:36:49.822215", "rc": 0, "start": "2022-08-03 17:36:49.818583" } STDOUT: renamed '/etc/resolv.conf.bak' -> '/etc/resolv.conf' META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=124 changed=17 unreachable=0 failed=0 skipped=63 rescued=0 ignored=3 Wednesday 03 August 2022 17:36:51 +0000 (0:00:00.439) 0:01:24.610 ****** =============================================================================== fedora.linux_system_roles.network : Configure networking connection profiles -- 29.30s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 2.57s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Install dnsmasq --------------------------------------------------------- 2.55s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 Install pgrep, sysctl --------------------------------------------------- 1.94s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:16 fedora.linux_system_roles.network : Check which services are running ---- 1.68s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Create test interfaces -------------------------------------------------- 1.59s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:24 fedora.linux_system_roles.network : Configure networking connection profiles --- 1.58s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 1.58s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.54s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.50s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which packages are installed --- 1.46s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Enable network service -------------- 1.38s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Check which packages are installed --- 1.26s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 1.24s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 1.18s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 1.16s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Enable network service -------------- 1.14s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Re-test connectivity ---------------- 1.02s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmpjloc5qmw/tests/network/tests_bond_removal_initscripts.yml:4 ----------- fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.85s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpjloc5qmw/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpjloc5qmw/tests/network/_restore.yml:4 Wednesday 03 August 2022 17:36:51 +0000 (0:00:00.042) 0:01:24.653 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.008342", "end": "2022-08-03 17:36:50.334764", "rc": 0, "start": "2022-08-03 17:36:50.326422" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=125 changed=18 unreachable=0 failed=0 skipped=63 rescued=0 ignored=3 Wednesday 03 August 2022 17:36:51 +0000 (0:00:00.469) 0:01:25.122 ****** =============================================================================== fedora.linux_system_roles.network : Configure networking connection profiles -- 29.30s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 2.57s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Install dnsmasq --------------------------------------------------------- 2.55s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 Install pgrep, sysctl --------------------------------------------------- 1.94s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:16 fedora.linux_system_roles.network : Check which services are running ---- 1.68s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Create test interfaces -------------------------------------------------- 1.59s /tmp/tmpjloc5qmw/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:24 fedora.linux_system_roles.network : Configure networking connection profiles --- 1.58s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Check which services are running ---- 1.58s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.54s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.50s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which packages are installed --- 1.46s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Enable network service -------------- 1.38s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Check which packages are installed --- 1.26s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 1.24s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 1.18s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Check which packages are installed --- 1.16s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Enable network service -------------- 1.14s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Re-test connectivity ---------------- 1.02s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmpjloc5qmw/tests/network/tests_bond_removal_initscripts.yml:4 ----------- fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.85s /tmp/tmp4wbeq7zn/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139