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_states_initscripts.yml ***************************************** 2 plays in /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tests_states_initscripts.yml:5 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_states_initscripts.yml:8 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.164800", "end": "2024-09-24 14:49:48.544752", "rc": 0, "start": "2024-09-24 14:49:48.379952", "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 'initscripts'] *********************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/tests_states_initscripts.yml:10 ok: [managed-node1] => {"ansible_facts": {"network_provider": "initscripts"}, "changed": false} META: ran handlers META: ran handlers PLAY [Play for testing states] ************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_states.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_states.yml:11 ok: [managed-node1] => { "msg": "this is: playbooks/tests_states.yml" } TASK [Include the task 'run_test.yml'] ***************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_states.yml:22 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed-node1 TASK [TEST: I can create a profile] ******************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:5 ok: [managed-node1] => { "msg": "########## I can create a profile ##########" } 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": "I can create a profile" } ok: [managed-node1] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [managed-node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [managed-node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [managed-node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": false, "what": "tasks/assert_device_present.yml" } ] } 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_profile+device.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.003262", "end": "2024-09-24 14:49:49.988886", "rc": 0, "start": "2024-09-24 14:49:49.985624", "stderr": "", "stderr_lines": [], "stdout": "eth0\nlo\npeertestnic1\ntest1\ntest1p\ntest2\ntest2p\ntestbr\ntestnic1", "stdout_lines": ["eth0", "lo", "peertestnic1", "test1", "test1p", "test2", "test2p", "testbr", "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", "test1", "test1p", "test2", "test2p", "testbr", "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'test1', u'test1p', u'test2', u'test2p', u'testbr', 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/delete_interface.yml for managed-node1 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_absent.yml for managed-node1 TASK [Remove test interface if necessary] ************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/delete_interface.yml:3 fatal: [managed-node1]: FAILED! => {"changed": false, "cmd": ["ip", "link", "del", "statebr"], "delta": "0:00:00.006632", "end": "2024-09-24 14:49:50.394884", "msg": "non-zero return code", "rc": 1, "start": "2024-09-24 14:49:50.388252", "stderr": "Cannot find device \"statebr\"", "stderr_lines": ["Cannot find device \"statebr\""], "stdout": "", "stdout_lines": []} ...ignoring 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_absent.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 statebr] ****************************************** 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": {"exists": false}} TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_absent.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_bridge_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_bridge_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_bridge_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 'I can create a profile'] ******************************** 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 'I can create a profile' !!!!!" } 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 'I can create a profile' !!!!!"} TASK [Cleanup] ***************************************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml:66 included: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed-node1 TASK [Cleanup profile and device] ********************************************** task path: /tmp/collections-aEW/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 fatal: [managed-node1]: FAILED! => {"changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.049385", "end": "2024-09-24 14:49:51.454156", "msg": "non-zero return code", "rc": 1, "start": "2024-09-24 14:49:51.404771", "stderr": "Error: unknown connection 'statebr'.\nError: cannot delete unknown connection(s): 'statebr'.\nCould not load file '/etc/sysconfig/network-scripts/ifcfg-statebr'\nCannot find device \"statebr\"", "stderr_lines": ["Error: unknown connection 'statebr'.", "Error: cannot delete unknown connection(s): 'statebr'.", "Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr'", "Cannot find device \"statebr\""], "stdout": "", "stdout_lines": []} ...ignoring PLAY RECAP ********************************************************************* managed-node1 : ok=31 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=2