ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_bond_options_nm.yml ******************************************** 2 plays in /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml PLAY [Run playbook 'playbooks/tests_bond_options.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml:6 ok: [managed-node1] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml:9 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml for managed-node1 TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:3 ok: [managed-node1] TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:17 ok: [managed-node1] => {"changed": false, "stat": {"exists": false}} TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:22 ok: [managed-node1] => {"ansible_facts": {"__network_is_ostree": false}, "changed": false} TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:26 skipping: [managed-node1] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Include the task 'enable_epel.yml'] ************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:51 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed-node1 TASK [Create EPEL 7] *********************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:8 ok: [managed-node1] => {"attempts": 1, "changed": false, "cmd": ["rpm", "-iv", "https://dl.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm"], "rc": 0, "stdout": "skipped, since /etc/yum.repos.d/epel.repo exists", "stdout_lines": ["skipped, since /etc/yum.repos.d/epel.repo exists"]} TASK [Install yum-utils package] *********************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:26 ok: [managed-node1] => {"changed": false, "msg": "", "rc": 0, "results": ["yum-utils-1.1.31-54.el7_8.noarch providing yum-utils is already installed"]} TASK [Enable EPEL 7] *********************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:32 ok: [managed-node1] => {"changed": false, "cmd": ["yum-config-manager", "--enable", "epel"], "delta": "0:00:00.162026", "end": "2024-09-24 14:49:32.734911", "rc": 0, "start": "2024-09-24 14:49:32.572885", "stderr": "", "stderr_lines": [], "stdout": "Loaded plugins: fastestmirror\n================================== repo: epel ==================================\n[epel]\nasync = True\nbandwidth = 0\nbase_persistdir = /var/lib/yum/repos/x86_64/7\nbaseurl = \ncache = 0\ncachedir = /var/cache/yum/x86_64/7/epel\ncheck_config_file_age = True\ncompare_providers_priority = 80\ncost = 1000\ndeltarpm_metadata_percentage = 100\ndeltarpm_percentage = \nenabled = True\nenablegroups = True\nexclude = \nfailovermethod = priority\nftp_disable_epsv = False\ngpgcadir = /var/lib/yum/repos/x86_64/7/epel/gpgcadir\ngpgcakey = \ngpgcheck = True\ngpgdir = /var/lib/yum/repos/x86_64/7/epel/gpgdir\ngpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7\nhdrdir = /var/cache/yum/x86_64/7/epel/headers\nhttp_caching = all\nincludepkgs = \nip_resolve = \nkeepalive = True\nkeepcache = False\nmddownloadpolicy = sqlite\nmdpolicy = group:small\nmediaid = \nmetadata_expire = 21600\nmetadata_expire_filter = read-only:present\nmetalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos\nminrate = 0\nmirrorlist = \nmirrorlist_expire = 86400\nname = Extra Packages for Enterprise Linux 7 - x86_64\nold_base_cache_dir = \npassword = \npersistdir = /var/lib/yum/repos/x86_64/7/epel\npkgdir = /var/cache/yum/x86_64/7/epel/packages\nproxy = False\nproxy_dict = \nproxy_password = \nproxy_username = \nrepo_gpgcheck = False\nretries = 10\nskip_if_unavailable = False\nssl_check_cert_permissions = True\nsslcacert = \nsslclientcert = \nsslclientkey = \nsslverify = True\nthrottle = 0\ntimeout = 30.0\nui_id = epel/x86_64\nui_repoid_vars = releasever,\n basearch\nusername = ", "stdout_lines": ["Loaded plugins: fastestmirror", "================================== repo: epel ==================================", "[epel]", "async = True", "bandwidth = 0", "base_persistdir = /var/lib/yum/repos/x86_64/7", "baseurl = ", "cache = 0", "cachedir = /var/cache/yum/x86_64/7/epel", "check_config_file_age = True", "compare_providers_priority = 80", "cost = 1000", "deltarpm_metadata_percentage = 100", "deltarpm_percentage = ", "enabled = True", "enablegroups = True", "exclude = ", "failovermethod = priority", "ftp_disable_epsv = False", "gpgcadir = /var/lib/yum/repos/x86_64/7/epel/gpgcadir", "gpgcakey = ", "gpgcheck = True", "gpgdir = /var/lib/yum/repos/x86_64/7/epel/gpgdir", "gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7", "hdrdir = /var/cache/yum/x86_64/7/epel/headers", "http_caching = all", "includepkgs = ", "ip_resolve = ", "keepalive = True", "keepcache = False", "mddownloadpolicy = sqlite", "mdpolicy = group:small", "mediaid = ", "metadata_expire = 21600", "metadata_expire_filter = read-only:present", "metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos", "minrate = 0", "mirrorlist = ", "mirrorlist_expire = 86400", "name = Extra Packages for Enterprise Linux 7 - x86_64", "old_base_cache_dir = ", "password = ", "persistdir = /var/lib/yum/repos/x86_64/7/epel", "pkgdir = /var/cache/yum/x86_64/7/epel/packages", "proxy = False", "proxy_dict = ", "proxy_password = ", "proxy_username = ", "repo_gpgcheck = False", "retries = 10", "skip_if_unavailable = False", "ssl_check_cert_permissions = True", "sslcacert = ", "sslclientcert = ", "sslclientkey = ", "sslverify = True", "throttle = 0", "timeout = 30.0", "ui_id = epel/x86_64", "ui_repoid_vars = releasever,", " basearch", "username = "]} TASK [Enable EPEL 8] *********************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:37 skipping: [managed-node1] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Enable EPEL 6] *********************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:42 skipping: [managed-node1] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tests_bond_options_nm.yml:11 ok: [managed-node1] => {"ansible_facts": {"network_provider": "nm"}, "changed": false} META: ran handlers META: ran handlers PLAY [Play for testing bond options] ******************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:3 ok: [managed-node1] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:32 ok: [managed-node1] => { "msg": "this is: playbooks/tests_bond_options.yml" } TASK [Include the task 'run_test.yml'] ***************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_bond_options.yml:42 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed-node1 TASK [TEST: Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.] *** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:5 ok: [managed-node1] => { "msg": "########## Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device. ##########" } TASK [Show item] *************************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:9 ok: [managed-node1] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device." } ok: [managed-node1] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_test_interfaces_with_dhcp.yml", "tasks/assert_dhcp_device_present.yml" ] } ok: [managed-node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bond_profile.yml" ] } ok: [managed-node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_controller_device_present.yml", "tasks/assert_bond_port_profile_present.yml", "tasks/assert_bond_options.yml" ] } ok: [managed-node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [managed-node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed-node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_bond_profile+device.yml", "tasks/remove_test_interfaces_with_dhcp.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:21 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed-node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed-node1 TASK [Gather current interface info] ******************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 ok: [managed-node1] => {"changed": false, "cmd": ["ls", "-1"], "delta": "0:00:00.003293", "end": "2024-09-24 14:49:33.919835", "rc": 0, "start": "2024-09-24 14:49:33.916542", "stderr": "", "stderr_lines": [], "stdout": "eth0\nlo\npeertestnic1\ntestnic1", "stdout_lines": ["eth0", "lo", "peertestnic1", "testnic1"]} TASK [Set current_interfaces] ************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 ok: [managed-node1] => {"ansible_facts": {"current_interfaces": ["eth0", "lo", "peertestnic1", "testnic1"]}, "changed": false} TASK [Show current_interfaces] ************************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 ok: [managed-node1] => { "msg": "current_interfaces: [u'eth0', u'lo', u'peertestnic1', u'testnic1']" } TASK [Setup] ******************************************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:24 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml for managed-node1 statically imported: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml statically imported: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_dhcp_device_present.yml for managed-node1 TASK [Install dnsmasq] ********************************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:3 changed: [managed-node1] => {"attempts": 1, "changed": true, "changes": {"installed": ["dnsmasq"]}, "msg": "", "rc": 0, "results": ["Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * epel: dl.fedoraproject.org\n * epel-debuginfo: dl.fedoraproject.org\n * epel-source: dl.fedoraproject.org\nResolving Dependencies\n--> Running transaction check\n---> Package dnsmasq.x86_64 0:2.76-17.el7_9.3 will be installed\n--> Processing Dependency: libnettle.so.4()(64bit) for package: dnsmasq-2.76-17.el7_9.3.x86_64\n--> Running transaction check\n---> Package nettle.x86_64 0:2.7.1-9.el7_9 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n dnsmasq x86_64 2.76-17.el7_9.3 updates 281 k\nInstalling for dependencies:\n nettle x86_64 2.7.1-9.el7_9 updates 328 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+1 Dependent package)\n\nTotal download size: 608 k\nInstalled size: 1.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 2.1 MB/s | 608 kB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : nettle-2.7.1-9.el7_9.x86_64 1/2 \n Installing : dnsmasq-2.76-17.el7_9.3.x86_64 2/2 \n Verifying : dnsmasq-2.76-17.el7_9.3.x86_64 1/2 \n Verifying : nettle-2.7.1-9.el7_9.x86_64 2/2 \n\nInstalled:\n dnsmasq.x86_64 0:2.76-17.el7_9.3 \n\nDependency Installed:\n nettle.x86_64 0:2.7.1-9.el7_9 \n\nComplete!\n"]} TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:17 skipping: [managed-node1] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Install pgrep, sysctl] *************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:26 ok: [managed-node1] => {"changed": false, "msg": "", "rc": 0, "results": ["procps-ng-3.3.10-28.el7.x86_64 providing procps-ng is already installed"]} TASK [Create test interfaces] ************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_test_interfaces_with_dhcp.yml:35 ok: [managed-node1] => {"changed": false, "cmd": "set -euxo pipefail\nexec 1>&2\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\n echo ERROR - could not add testbr\n ip addr\n exit 1\n fi\n sleep 1\n rc=0\n ip addr add 192.0.2.1/24 dev testbr || rc=\"$?\"\n if [ \"$rc\" != 0 ]; then\n echo NOTICE - could not add testbr - error code \"$rc\"\n continue\n fi\n ip -6 addr add 2001:DB8::1/32 dev testbr || rc=\"$?\"\n if [ \"$rc\" != 0 ]; then\n echo NOTICE - could not add testbr - error code \"$rc\"\n continue\n fi\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 if systemctl is-active firewalld; then\n for service in dhcp dhcpv6 dhcpv6-client; do\n if ! firewall-cmd --query-service=\"$service\"; then\n firewall-cmd --add-service \"$service\"\n fi\n done\n fi\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.471789", "end": "2024-09-24 14:49:41.357818", "rc": 0, "start": "2024-09-24 14:49:39.886029", "stderr": "+ exec\n+ ip link add test1 type veth peer name test1p\n+ ip link add test2 type veth peer name test2p\n++ pgrep NetworkManager\n+ '[' -n 577 ']'\n+ nmcli d set test1 managed true\n+ nmcli d set test2 managed true\n+ nmcli d set test1p managed false\n+ nmcli d set test2p managed false\n+ ip link set test1p up\n+ ip link set test2p up\n+ ip link add name testbr type bridge forward_delay 0\n++ pgrep NetworkManager\n+ '[' -n 577 ']'\n+ nmcli d set testbr managed false\n+ ip link set testbr up\n+ timer=0\n+ ip addr show testbr\n+ grep -q 'inet [1-9]'\n+ let timer+=1\n+ '[' 1 -eq 30 ']'\n+ sleep 1\n+ rc=0\n+ ip addr add 192.0.2.1/24 dev testbr\n+ '[' 0 '!=' 0 ']'\n+ ip -6 addr add 2001:DB8::1/32 dev testbr\n+ '[' 0 '!=' 0 ']'\n+ ip addr show testbr\n+ grep -q 'inet [1-9]'\n+ grep 'release 6' /etc/redhat-release\n+ ip link set test1p master testbr\n+ ip link set test2p master testbr\n+ systemctl is-active firewalld\nunknown\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", "stderr_lines": ["+ exec", "+ ip link add test1 type veth peer name test1p", "+ ip link add test2 type veth peer name test2p", "++ pgrep NetworkManager", "+ '[' -n 577 ']'", "+ nmcli d set test1 managed true", "+ nmcli d set test2 managed true", "+ nmcli d set test1p managed false", "+ nmcli d set test2p managed false", "+ ip link set test1p up", "+ ip link set test2p up", "+ ip link add name testbr type bridge forward_delay 0", "++ pgrep NetworkManager", "+ '[' -n 577 ']'", "+ nmcli d set testbr managed false", "+ ip link set testbr up", "+ timer=0", "+ ip addr show testbr", "+ grep -q 'inet [1-9]'", "+ let timer+=1", "+ '[' 1 -eq 30 ']'", "+ sleep 1", "+ rc=0", "+ ip addr add 192.0.2.1/24 dev testbr", "+ '[' 0 '!=' 0 ']'", "+ ip -6 addr add 2001:DB8::1/32 dev testbr", "+ '[' 0 '!=' 0 ']'", "+ ip addr show testbr", "+ grep -q 'inet [1-9]'", "+ grep 'release 6' /etc/redhat-release", "+ ip link set test1p master testbr", "+ ip link set test2p master testbr", "+ systemctl is-active firewalld", "unknown", "+ 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"], "stdout": "", "stdout_lines": []} TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed-node1 TASK [Get stat for interface test1] ******************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 ok: [managed-node1] => {"changed": false, "stat": {"atime": 1727203779.9006774, "block_size": 4096, "blocks": 0, "ctime": 1727203779.9006774, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 17882, "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": 1727203779.9006774, "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 the interface is present - 'test1'] ************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 ok: [managed-node1] => { "changed": false, "msg": "All assertions passed" } TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed-node1 TASK [Get stat for interface test2] ******************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 ok: [managed-node1] => {"changed": false, "stat": {"atime": 1727203779.9106774, "block_size": 4096, "blocks": 0, "ctime": 1727203779.9106774, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 18042, "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": 1727203779.9106774, "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 the interface is present - 'test2'] ************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 ok: [managed-node1] => { "changed": false, "msg": "All assertions passed" } TASK [Test] ******************************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:30 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile.yml for managed-node1 TASK [Include network role] **************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile.yml:3 ERROR! the role 'fedora.linux_system_roles.network' was not found in /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks The error appears to be in '/tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bond_profile.yml': line 5, column 11, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.network ^ here TASK [Failure in test 'Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.'] *** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:52 ok: [managed-node1] => { "msg": "!!!!! Failure in test 'Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.' !!!!!" } TASK [Show item that failed] *************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:56 ok: [managed-node1] => (item=__network_connections_result) => { "__network_connections_result": "VARIABLE IS NOT DEFINED!: '__network_connections_result' is undefined", "ansible_loop_var": "item", "item": "__network_connections_result" } TASK [Issue failed message] **************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:61 fatal: [managed-node1]: FAILED! => {"changed": false, "msg": "!!!!! Failure in test 'Given two DHCP-enabled network interfaces, when creating a bond profile with them, then the controller device and bond port profiles are present and the specified bond options are set for the controller device.' !!!!!"} TASK [Cleanup] ***************************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:66 fatal: [managed-node1]: FAILED! => {"reason": "the role 'fedora.linux_system_roles.network' was not found in /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks\n\nThe error appears to be in '/tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_bond_profile+device.yml': line 9, column 15, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n import_role:\n name: fedora.linux_system_roles.network\n ^ here\n"} included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_test_interfaces_with_dhcp.yml for managed-node1 PLAY RECAP ********************************************************************* managed-node1 : ok=35 changed=1 unreachable=0 failed=2 skipped=4 rescued=0 ignored=0