# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] 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_nm.yml ************************************************** 2 plays in /WORKDIR/git-route_typeodyj10gt/tests/tests_states_nm.yml PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/tests_states_nm.yml:5 Thursday 21 December 2023 16:56:58 +0000 (0:00:00.012) 0:00:00.012 ***** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/tests_states_nm.yml:9 Thursday 21 December 2023 16:56:59 +0000 (0:00:00.566) 0:00:00.579 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/tasks/el_repo_setup.yml for sut TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/el_repo_setup.yml:3 Thursday 21 December 2023 16:56:59 +0000 (0:00:00.024) 0:00:00.603 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/el_repo_setup.yml:19 Thursday 21 December 2023 16:56:59 +0000 (0:00:00.250) 0:00:00.854 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/el_repo_setup.yml:24 Thursday 21 December 2023 16:57:00 +0000 (0:00:00.233) 0:00:01.088 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/el_repo_setup.yml:28 Thursday 21 December 2023 16:57:00 +0000 (0:00:00.067) 0:00:01.156 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/el_repo_setup.yml:53 Thursday 21 December 2023 16:57:00 +0000 (0:00:00.069) 0:00:01.226 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 7] *********************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/enable_epel.yml:8 Thursday 21 December 2023 16:57:00 +0000 (0:00:00.071) 0:00:01.298 ***** ok: [sut] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/enable_epel.yml:24 Thursday 21 December 2023 16:57:00 +0000 (0:00:00.259) 0:00:01.557 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [ "yum-utils-1.1.31-54.el7_8.noarch providing yum-utils is already installed" ] } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/enable_epel.yml:30 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.531) 0:00:02.088 ***** ok: [sut] => { "changed": false, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.199277", "end": "2023-12-21 16:57:01.349422", "rc": 0, "start": "2023-12-21 16:57:01.150145" } STDOUT: ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7Server baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7Server/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/7Server/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7Server/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7Server/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=$infra&content=$contentdir 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/7Server/epel pkgdir = /var/cache/yum/x86_64/7Server/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: /WORKDIR/git-route_typeodyj10gt/tests/tasks/enable_epel.yml:35 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.327) 0:00:02.415 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tasks/enable_epel.yml:40 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.011) 0:00:02.427 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/tests_states_nm.yml:11 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.024) 0:00:02.451 ***** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for testing states] ************************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:3 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.017) 0:00:02.469 ***** ok: [sut] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:11 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.445) 0:00:02.914 ***** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:22 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.036) 0:00:02.951 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.047) 0:00:02.998 ***** ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 16:57:01 +0000 (0:00:00.046) 0:00:03.045 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_present.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.032) 0:00:03.077 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.014) 0:00:03.092 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.017) 0:00:03.109 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003800", "end": "2023-12-21 16:57:02.183168", "rc": 0, "start": "2023-12-21 16:57:02.179368" } STDOUT: bond0 bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.156) 0:00:03.265 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.058) 0:00:03.323 ***** ok: [sut] => {} MSG: current_interfaces: ['bond0', 'bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.025) 0:00:03.348 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/delete_interface.yml:3 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.025) 0:00:03.374 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.011366", "end": "2023-12-21 16:57:02.483694", "rc": 1, "start": "2023-12-21 16:57:02.472328" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.175) 0:00:03.549 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.026) 0:00:03.576 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.161) 0:00:03.737 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.014) 0:00:03.751 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.019) 0:00:03.770 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.038) 0:00:03.809 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.069) 0:00:03.878 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.012) 0:00:03.891 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.014) 0:00:03.905 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:02 +0000 (0:00:00.011) 0:00:03.916 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:03 +0000 (0:00:00.933) 0:00:04.850 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.815) 0:00:05.665 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.026) 0:00:05.691 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.054) 0:00:05.745 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.023) 0:00:05.769 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.049) 0:00:05.818 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.021) 0:00:05.840 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.033) 0:00:05.873 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:04 +0000 (0:00:00.036) 0:00:05.910 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.364) 0:00:06.274 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.027) 0:00:06.301 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.021) 0:00:06.323 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.022) 0:00:06.346 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9139283f-b5fd-4a46-b513-0643c3600c64 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.445) 0:00:06.791 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.026) 0:00:06.817 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9139283f-b5fd-4a46-b513-0643c3600c64" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.023) 0:00:06.841 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9139283f-b5fd-4a46-b513-0643c3600c64\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9139283f-b5fd-4a46-b513-0643c3600c64" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.047) 0:00:06.889 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:05 +0000 (0:00:00.022) 0:00:06.911 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.183) 0:00:07.095 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9139283f-b5fd-4a46-b513-0643c3600c64\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 9139283f-b5fd-4a46-b513-0643c3600c64" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.023) 0:00:07.118 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.052) 0:00:07.171 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.066) 0:00:07.238 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.031) 0:00:07.269 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703177825.6529076, "block_size": 4096, "blocks": 8, "ctime": 1703177825.6519077, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4427532, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1703177825.6519077, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 146, "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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.137) 0:00:07.407 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.025) 0:00:07.432 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.025166", "end": "2023-12-21 16:57:06.518673", "rc": 0, "start": "2023-12-21 16:57:06.493507" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.159) 0:00:07.592 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.040) 0:00:07.633 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.035) 0:00:07.669 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.024) 0:00:07.693 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.024) 0:00:07.718 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.023) 0:00:07.742 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.053) 0:00:07.796 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.026) 0:00:07.822 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.023) 0:00:07.846 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.046) 0:00:07.892 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:57:06 +0000 (0:00:00.037) 0:00:07.930 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703177825.6659076, "block_size": 4096, "blocks": 0, "ctime": 1703177825.6549075, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 17487, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1703177825.6549075, "nlink": 1, "path": "/sys/class/net/statebr", "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 - 'statebr'] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.149) 0:00:08.079 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.028) 0:00:08.108 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.024) 0:00:08.132 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.046) 0:00:08.179 ***** fatal: [sut]: 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.082366", "end": "2023-12-21 16:57:07.361140", "rc": 1, "start": "2023-12-21 16:57:07.278774" } STDOUT: Connection 'statebr' (9139283f-b5fd-4a46-b513-0643c3600c64) successfully deleted. STDERR: (process:26400): GLib-GIO-WARNING **: 16:57:07.337: gdbusobjectmanagerclient.c:1589: Processing InterfaceRemoved signal for path /org/freedesktop/NetworkManager/ActiveConnection/29 but no object proxy exists Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:45 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.258) 0:00:08.438 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.048) 0:00:08.486 ***** ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.033) 0:00:08.520 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile without autoconnect" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile_no_autoconnect.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_absent.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (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: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.051) 0:00:08.572 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.083) 0:00:08.655 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.044) 0:00:08.699 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003686", "end": "2023-12-21 16:57:07.768148", "rc": 0, "start": "2023-12-21 16:57:07.764462" } STDOUT: bond0 bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.141) 0:00:08.841 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.023) 0:00:08.864 ***** ok: [sut] => {} MSG: current_interfaces: ['bond0', 'bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.027) 0:00:08.892 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/delete_interface.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/delete_interface.yml:3 Thursday 21 December 2023 16:57:07 +0000 (0:00:00.053) 0:00:08.946 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.008099", "end": "2023-12-21 16:57:08.019112", "rc": 1, "start": "2023-12-21 16:57:08.011013" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.147) 0:00:09.093 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.051) 0:00:09.145 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.189) 0:00:09.334 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.030) 0:00:09.365 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:3 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.054) 0:00:09.420 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.074) 0:00:09.494 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.077) 0:00:09.572 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.039) 0:00:09.611 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.023) 0:00:09.635 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:08 +0000 (0:00:00.023) 0:00:09.659 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:09 +0000 (0:00:00.853) 0:00:10.512 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.722) 0:00:11.235 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.033) 0:00:11.268 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.059) 0:00:11.328 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.039) 0:00:11.368 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.106) 0:00:11.474 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.033) 0:00:11.507 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.069) 0:00:11.577 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.032) 0:00:11.609 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.243) 0:00:11.852 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.027) 0:00:11.880 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.021) 0:00:11.902 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:10 +0000 (0:00:00.031) 0:00:11.933 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1c1c0671-6d62-4b66-9534-b757361a516b TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.322) 0:00:12.256 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.037) 0:00:12.293 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1c1c0671-6d62-4b66-9534-b757361a516b" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.038) 0:00:12.332 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1c1c0671-6d62-4b66-9534-b757361a516b\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1c1c0671-6d62-4b66-9534-b757361a516b" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.064) 0:00:12.397 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.034) 0:00:12.431 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml:15 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.154) 0:00:12.586 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1c1c0671-6d62-4b66-9534-b757361a516b\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 1c1c0671-6d62-4b66-9534-b757361a516b" ] } } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.035) 0:00:12.621 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.047) 0:00:12.668 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.046) 0:00:12.715 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.169) 0:00:12.884 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.025) 0:00:12.910 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.037) 0:00:12.947 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 16:57:11 +0000 (0:00:00.021) 0:00:12.969 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703177831.1508892, "block_size": 4096, "blocks": 8, "ctime": 1703177831.1508892, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4427532, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1703177831.1508892, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 145, "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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.137) 0:00:13.106 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.036) 0:00:13.142 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022800", "end": "2023-12-21 16:57:12.237365", "rc": 0, "start": "2023-12-21 16:57:12.214565" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.170) 0:00:13.313 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.034) 0:00:13.348 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.045) 0:00:13.394 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.042) 0:00:13.437 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.025) 0:00:13.462 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.026) 0:00:13.488 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.028) 0:00:13.517 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.024) 0:00:13.541 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.024) 0:00:13.566 ***** TASK [Success in test 'I can create a profile without autoconnect'] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.020) 0:00:13.587 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.053) 0:00:13.640 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.040) 0:00:13.680 ***** fatal: [sut]: 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.051297", "end": "2023-12-21 16:57:12.797227", "rc": 1, "start": "2023-12-21 16:57:12.745930" } STDOUT: Connection 'statebr' (1c1c0671-6d62-4b66-9534-b757361a516b) successfully deleted. STDERR: Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:65 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.190) 0:00:13.870 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.036) 0:00:13.907 ***** ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.022) 0:00:13.929 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can activate an existing profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (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: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.047) 0:00:13.976 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 16:57:12 +0000 (0:00:00.061) 0:00:14.038 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.036) 0:00:14.074 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003721", "end": "2023-12-21 16:57:13.158296", "rc": 0, "start": "2023-12-21 16:57:13.154575" } STDOUT: bond0 bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.159) 0:00:14.234 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.044) 0:00:14.278 ***** ok: [sut] => {} MSG: current_interfaces: ['bond0', 'bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.027) 0:00:14.305 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.046) 0:00:14.352 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.080) 0:00:14.432 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.084) 0:00:14.517 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.027) 0:00:14.545 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.020) 0:00:14.565 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:13 +0000 (0:00:00.020) 0:00:14.585 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:14 +0000 (0:00:00.783) 0:00:15.369 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:14 +0000 (0:00:00.667) 0:00:16.036 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.038) 0:00:16.074 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.064) 0:00:16.138 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.024) 0:00:16.163 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.148) 0:00:16.311 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.023) 0:00:16.335 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.032) 0:00:16.367 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.032) 0:00:16.400 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.251) 0:00:16.651 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.028) 0:00:16.679 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.020) 0:00:16.700 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:15 +0000 (0:00:00.024) 0:00:16.725 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.343) 0:00:17.068 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.025) 0:00:17.094 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.033) 0:00:17.128 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.062) 0:00:17.190 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.023) 0:00:17.214 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.155) 0:00:17.369 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88" ] } } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.068) 0:00:17.438 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.083) 0:00:17.522 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.048) 0:00:17.571 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.045) 0:00:17.616 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.039) 0:00:17.656 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.043) 0:00:17.699 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:16 +0000 (0:00:00.021) 0:00:17.721 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:17 +0000 (0:00:00.842) 0:00:18.564 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.696) 0:00:19.261 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.031) 0:00:19.292 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.029) 0:00:19.322 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.023) 0:00:19.345 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.091) 0:00:19.436 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.022) 0:00:19.459 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.025) 0:00:19.485 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.027) 0:00:19.512 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.311) 0:00:19.823 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.066) 0:00:19.890 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.052) 0:00:19.943 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:18 +0000 (0:00:00.063) 0:00:20.006 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.336) 0:00:20.343 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.036) 0:00:20.379 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.039) 0:00:20.418 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 4d8253b3-ec48-47a7-8d89-569537946a88 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.038) 0:00:20.457 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.033) 0:00:20.490 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.203) 0:00:20.694 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.093) 0:00:20.788 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:57:19 +0000 (0:00:00.073) 0:00:20.862 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703177835.9298732, "block_size": 4096, "blocks": 0, "ctime": 1703177835.9288733, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 17487, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1703177835.9288733, "nlink": 1, "path": "/sys/class/net/statebr", "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 - 'statebr'] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.271) 0:00:21.133 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:3 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.030) 0:00:21.163 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.062) 0:00:21.226 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.077) 0:00:21.304 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703177835.9278734, "block_size": 4096, "blocks": 8, "ctime": 1703177835.9268732, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4427527, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1703177835.9268732, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 146, "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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.201) 0:00:21.506 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.050) 0:00:21.556 ***** ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022770", "end": "2023-12-21 16:57:20.657744", "rc": 0, "start": "2023-12-21 16:57:20.634974" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.182) 0:00:21.739 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.043) 0:00:21.782 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.033) 0:00:21.816 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.048) 0:00:21.865 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.029) 0:00:21.894 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'statebr'] ************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:5 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.038) 0:00:21.932 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:10 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.061) 0:00:21.994 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_present.yml:15 Thursday 21 December 2023 16:57:20 +0000 (0:00:00.048) 0:00:22.043 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.055) 0:00:22.098 ***** TASK [Success in test 'I can activate an existing profile'] ******************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.073) 0:00:22.172 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.023) 0:00:22.195 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.092) 0:00:22.288 ***** fatal: [sut]: 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.081976", "end": "2023-12-21 16:57:21.483799", "rc": 1, "start": "2023-12-21 16:57:21.401823" } STDOUT: Connection 'statebr' (4d8253b3-ec48-47a7-8d89-569537946a88) successfully deleted. STDERR: (process:27167): GLib-GIO-WARNING **: 16:57:21.461: gdbusobjectmanagerclient.c:1589: Processing InterfaceRemoved signal for path /org/freedesktop/NetworkManager/ActiveConnection/30 but no object proxy exists (process:27167): GLib-GIO-WARNING **: 16:57:21.461: gdbusobjectmanagerclient.c:1589: Processing InterfaceRemoved signal for path /org/freedesktop/NetworkManager/Devices/48 but no object proxy exists Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:83 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.274) 0:00:22.563 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can remove an existing profile without taking it down] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.043) 0:00:22.606 ***** ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.029) 0:00:22.636 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can remove an existing profile without taking it down" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_absent.yml" ] } ok: [sut] => (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: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.095) 0:00:22.732 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.049) 0:00:22.781 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 16:57:21 +0000 (0:00:00.037) 0:00:22.819 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.005033", "end": "2023-12-21 16:57:22.923758", "rc": 0, "start": "2023-12-21 16:57:21.918725" } STDOUT: bond0 bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 16:57:22 +0000 (0:00:01.219) 0:00:24.038 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.028) 0:00:24.066 ***** ok: [sut] => {} MSG: current_interfaces: ['bond0', 'bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.031) 0:00:24.097 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.085) 0:00:24.183 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.056) 0:00:24.240 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.041) 0:00:24.281 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.028) 0:00:24.309 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.022) 0:00:24.331 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:23 +0000 (0:00:00.022) 0:00:24.353 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.794) 0:00:25.148 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.677) 0:00:25.826 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.024) 0:00:25.850 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.054) 0:00:25.905 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.021) 0:00:25.927 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.054) 0:00:25.982 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.021) 0:00:26.004 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:24 +0000 (0:00:00.023) 0:00:26.027 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.033) 0:00:26.060 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.249) 0:00:26.310 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.088) 0:00:26.398 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.063) 0:00:26.462 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.059) 0:00:26.522 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.391) 0:00:26.913 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.025) 0:00:26.939 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.024) 0:00:26.964 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.027) 0:00:26.992 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:25 +0000 (0:00:00.030) 0:00:27.022 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 16:57:26 +0000 (0:00:00.149) 0:00:27.172 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 16:57:26 +0000 (0:00:00.071) 0:00:27.243 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:26 +0000 (0:00:00.266) 0:00:27.509 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:26 +0000 (0:00:00.120) 0:00:27.630 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:26 +0000 (0:00:00.129) 0:00:27.760 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:26 +0000 (0:00:00.066) 0:00:27.826 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:26 +0000 (0:00:00.080) 0:00:27.907 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:27 +0000 (0:00:00.836) 0:00:28.743 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.731) 0:00:29.474 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.029) 0:00:29.504 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.061) 0:00:29.566 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.034) 0:00:29.600 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.129) 0:00:29.730 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.043) 0:00:29.773 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.052) 0:00:29.825 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:28 +0000 (0:00:00.035) 0:00:29.861 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:29 +0000 (0:00:00.336) 0:00:30.197 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:29 +0000 (0:00:00.075) 0:00:30.272 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:29 +0000 (0:00:00.038) 0:00:30.310 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:29 +0000 (0:00:00.060) 0:00:30.370 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:29 +0000 (0:00:00.412) 0:00:30.783 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:29 +0000 (0:00:00.128) 0:00:30.912 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:29 +0000 (0:00:00.103) 0:00:31.015 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5c092edb-e790-4d6f-86f6-22b598e0087a skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:30 +0000 (0:00:00.103) 0:00:31.119 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:30 +0000 (0:00:00.040) 0:00:31.160 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 16:57:30 +0000 (0:00:00.225) 0:00:31.385 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove_profile.yml:3 Thursday 21 December 2023 16:57:30 +0000 (0:00:00.093) 0:00:31.479 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:30 +0000 (0:00:00.154) 0:00:31.633 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:30 +0000 (0:00:00.215) 0:00:31.849 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:30 +0000 (0:00:00.142) 0:00:31.991 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:31 +0000 (0:00:00.072) 0:00:32.063 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:31 +0000 (0:00:00.135) 0:00:32.199 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.880) 0:00:33.079 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.703) 0:00:33.783 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.022) 0:00:33.806 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.026) 0:00:33.832 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.026) 0:00:33.858 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.043) 0:00:33.901 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.026) 0:00:33.928 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.028) 0:00:33.957 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:32 +0000 (0:00:00.042) 0:00:34.000 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.348) 0:00:34.349 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.027) 0:00:34.376 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.056) 0:00:34.433 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.032) 0:00:34.465 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.362) 0:00:34.828 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.057) 0:00:34.886 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.050) 0:00:34.937 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.064) 0:00:35.001 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:33 +0000 (0:00:00.036) 0:00:35.037 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.175) 0:00:35.213 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.083) 0:00:35.297 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.042) 0:00:35.340 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1703177845.7818403, "block_size": 4096, "blocks": 0, "ctime": 1703177845.7808404, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 17489, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1703177845.7808404, "nlink": 1, "path": "/sys/class/net/statebr", "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 - 'statebr'] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.162) 0:00:35.503 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.047) 0:00:35.550 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.072) 0:00:35.622 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.027) 0:00:35.650 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.157) 0:00:35.807 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 16:57:34 +0000 (0:00:00.049) 0:00:35.857 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023094", "end": "2023-12-21 16:57:34.981613", "rc": 1, "start": "2023-12-21 16:57:34.958519" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.207) 0:00:36.065 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.048) 0:00:36.113 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.035) 0:00:36.148 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.044) 0:00:36.193 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.126) 0:00:36.319 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.192) 0:00:36.512 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.041) 0:00:36.554 ***** TASK [Success in test 'I can remove an existing profile without taking it down'] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.034) 0:00:36.588 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.056) 0:00:36.644 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.065) 0:00:36.710 ***** fatal: [sut]: 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.095065", "end": "2023-12-21 16:57:35.892202", "rc": 1, "start": "2023-12-21 16:57:35.797137" } STDOUT: Connection 'statebr' (5c092edb-e790-4d6f-86f6-22b598e0087a) successfully deleted. STDERR: (process:27837): GLib-GIO-WARNING **: 16:57:35.863: gdbusobjectmanagerclient.c:1589: Processing InterfaceRemoved signal for path /org/freedesktop/NetworkManager/ActiveConnection/31 but no object proxy exists Could not load file '/etc/sysconfig/network-scripts/ifcfg-statebr' Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:103 Thursday 21 December 2023 16:57:35 +0000 (0:00:00.272) 0:00:36.983 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.113) 0:00:37.096 ***** ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.086) 0:00:37.182 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can take a profile down that is absent" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_absent.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.188) 0:00:37.370 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.061) 0:00:37.432 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.055) 0:00:37.487 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003922", "end": "2023-12-21 16:57:36.571641", "rc": 0, "start": "2023-12-21 16:57:36.567719" } STDOUT: bond0 bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.187) 0:00:37.675 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.071) 0:00:37.746 ***** ok: [sut] => {} MSG: current_interfaces: ['bond0', 'bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.050) 0:00:37.796 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 16:57:36 +0000 (0:00:00.227) 0:00:38.023 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:37 +0000 (0:00:00.083) 0:00:38.106 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:37 +0000 (0:00:00.053) 0:00:38.160 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:37 +0000 (0:00:00.042) 0:00:38.203 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:37 +0000 (0:00:00.048) 0:00:38.251 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:37 +0000 (0:00:00.054) 0:00:38.306 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:38 +0000 (0:00:00.951) 0:00:39.257 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:38 +0000 (0:00:00.703) 0:00:39.960 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:38 +0000 (0:00:00.047) 0:00:40.008 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:38 +0000 (0:00:00.032) 0:00:40.041 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.046) 0:00:40.088 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.050) 0:00:40.138 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.028) 0:00:40.166 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.026) 0:00:40.192 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.043) 0:00:40.236 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.320) 0:00:40.556 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.045) 0:00:40.601 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.050) 0:00:40.652 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:39 +0000 (0:00:00.035) 0:00:40.687 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47 TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.606) 0:00:41.294 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.060) 0:00:41.354 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.024) 0:00:41.378 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.042) 0:00:41.421 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.052) 0:00:41.474 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.196) 0:00:41.670 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.042) 0:00:41.712 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.067) 0:00:41.780 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.078) 0:00:41.858 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.091) 0:00:41.949 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.023) 0:00:41.972 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:40 +0000 (0:00:00.076) 0:00:42.049 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:41 +0000 (0:00:00.838) 0:00:42.887 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.759) 0:00:43.647 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.022) 0:00:43.670 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.022) 0:00:43.692 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.038) 0:00:43.731 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.063) 0:00:43.795 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.021) 0:00:43.817 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.036) 0:00:43.853 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:42 +0000 (0:00:00.036) 0:00:43.890 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.260) 0:00:44.150 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.029) 0:00:44.179 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.033) 0:00:44.213 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.039) 0:00:44.253 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.440) 0:00:44.693 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.024) 0:00:44.717 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.025) 0:00:44.743 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 87586d1d-9105-4ac3-ac13-53b77f860f47 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.052) 0:00:44.795 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.033) 0:00:44.829 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove_profile.yml:3 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.139) 0:00:44.968 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:43 +0000 (0:00:00.058) 0:00:45.027 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:44 +0000 (0:00:00.105) 0:00:45.132 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:44 +0000 (0:00:00.037) 0:00:45.170 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:44 +0000 (0:00:00.062) 0:00:45.233 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:44 +0000 (0:00:00.049) 0:00:45.282 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:45 +0000 (0:00:00.889) 0:00:46.172 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:45 +0000 (0:00:00.872) 0:00:47.044 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.026) 0:00:47.071 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.031) 0:00:47.103 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.046) 0:00:47.149 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.132) 0:00:47.282 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.045) 0:00:47.327 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.043) 0:00:47.371 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.044) 0:00:47.416 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.306) 0:00:47.722 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.085) 0:00:47.808 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.068) 0:00:47.877 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:46 +0000 (0:00:00.041) 0:00:47.918 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.367) 0:00:48.286 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.111) 0:00:48.398 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.099) 0:00:48.497 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.090) 0:00:48.587 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.041) 0:00:48.629 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.290) 0:00:48.919 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.053) 0:00:48.972 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:47 +0000 (0:00:00.056) 0:00:49.028 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:48 +0000 (0:00:00.145) 0:00:49.174 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:48 +0000 (0:00:00.052) 0:00:49.226 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:48 +0000 (0:00:00.025) 0:00:49.252 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:48 +0000 (0:00:00.043) 0:00:49.296 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:49 +0000 (0:00:00.842) 0:00:50.139 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:49 +0000 (0:00:00.801) 0:00:50.940 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:49 +0000 (0:00:00.027) 0:00:50.968 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:49 +0000 (0:00:00.020) 0:00:50.988 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:49 +0000 (0:00:00.035) 0:00:51.023 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.045) 0:00:51.069 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.023) 0:00:51.093 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.026) 0:00:51.120 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.026) 0:00:51.147 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.260) 0:00:51.407 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.037) 0:00:51.444 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.033) 0:00:51.478 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.029) 0:00:51.507 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.405) 0:00:51.913 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.023) 0:00:51.936 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.024) 0:00:51.960 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:50 +0000 (0:00:00.065) 0:00:52.026 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.039) 0:00:52.065 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.136) 0:00:52.202 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.041) 0:00:52.243 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.047) 0:00:52.291 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.050) 0:00:52.341 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.158) 0:00:52.500 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.036) 0:00:52.537 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022122", "end": "2023-12-21 16:57:51.669153", "rc": 1, "start": "2023-12-21 16:57:51.647031" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.231) 0:00:52.768 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.038) 0:00:52.806 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.077) 0:00:52.883 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.037) 0:00:52.921 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.043) 0:00:52.964 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.025) 0:00:52.990 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 16:57:51 +0000 (0:00:00.034) 0:00:53.024 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.090) 0:00:53.114 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.055) 0:00:53.170 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.163) 0:00:53.333 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can take a profile down that is absent'] ************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.057) 0:00:53.391 ***** ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.049) 0:00:53.440 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.091) 0:00:53.531 ***** fatal: [sut]: 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.045590", "end": "2023-12-21 16:57:52.687352", "rc": 1, "start": "2023-12-21 16:57:52.641762" } STDERR: 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" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tests_states.yml:126 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.241) 0:00:53.773 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I will not get an error when I try to remove an absent profile] **** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:5 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.037) 0:00:53.811 ***** ok: [sut] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:9 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.030) 0:00:53.841 ***** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I will not get an error when I try to remove an absent profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml", "tasks/get_NetworkManager_NVR.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": true, "what": "tasks/assert_device_absent.yml" } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (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: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:21 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.075) 0:00:53.916 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.050) 0:00:53.967 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 21 December 2023 16:57:52 +0000 (0:00:00.047) 0:00:54.015 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003606", "end": "2023-12-21 16:57:53.108667", "rc": 0, "start": "2023-12-21 16:57:53.105061" } STDOUT: bond0 bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.253) 0:00:54.269 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.027) 0:00:54.296 ***** ok: [sut] => {} MSG: current_interfaces: ['bond0', 'bonding_masters', 'eth0', 'lo'] TASK [Setup] ******************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:24 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.064) 0:00:54.361 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:3 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.094) 0:00:54.455 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.065) 0:00:54.520 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.064) 0:00:54.584 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.078) 0:00:54.663 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.025) 0:00:54.688 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:53 +0000 (0:00:00.045) 0:00:54.734 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:54 +0000 (0:00:00.850) 0:00:55.584 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.867) 0:00:56.452 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.086) 0:00:56.539 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.092) 0:00:56.631 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.030) 0:00:56.661 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.163) 0:00:56.825 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.081) 0:00:56.906 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.041) 0:00:56.948 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:55 +0000 (0:00:00.056) 0:00:57.004 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.315) 0:00:57.320 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.055) 0:00:57.376 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.032) 0:00:57.408 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.069) 0:00:57.477 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e088b658-5121-430d-85cb-e72f847111bc TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.374) 0:00:57.852 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.029) 0:00:57.882 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e088b658-5121-430d-85cb-e72f847111bc" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.052) 0:00:57.934 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e088b658-5121-430d-85cb-e72f847111bc\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e088b658-5121-430d-85cb-e72f847111bc" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.041) 0:00:57.976 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:57:56 +0000 (0:00:00.052) 0:00:58.028 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/create_bridge_profile.yml:14 Thursday 21 December 2023 16:57:57 +0000 (0:00:00.304) 0:00:58.333 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e088b658-5121-430d-85cb-e72f847111bc\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, e088b658-5121-430d-85cb-e72f847111bc" ] } } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/activate_profile.yml:3 Thursday 21 December 2023 16:57:57 +0000 (0:00:00.065) 0:00:58.398 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:57:57 +0000 (0:00:00.057) 0:00:58.455 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:57:57 +0000 (0:00:00.062) 0:00:58.518 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:57:57 +0000 (0:00:00.038) 0:00:58.557 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:57:57 +0000 (0:00:00.027) 0:00:58.585 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:57:57 +0000 (0:00:00.024) 0:00:58.609 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:57:58 +0000 (0:00:00.842) 0:00:59.451 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.673) 0:01:00.125 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.023) 0:01:00.148 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.047) 0:01:00.195 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.024) 0:01:00.220 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.062) 0:01:00.282 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.025) 0:01:00.308 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.028) 0:01:00.336 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.064) 0:01:00.400 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.285) 0:01:00.686 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.083) 0:01:00.770 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.101) 0:01:00.872 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:57:59 +0000 (0:00:00.082) 0:01:00.954 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e088b658-5121-430d-85cb-e72f847111bc skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.326) 0:01:01.281 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.032) 0:01:01.313 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e088b658-5121-430d-85cb-e72f847111bc skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.047) 0:01:01.361 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e088b658-5121-430d-85cb-e72f847111bc skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, e088b658-5121-430d-85cb-e72f847111bc skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.024) 0:01:01.385 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.023) 0:01:01.409 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.173) 0:01:01.582 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.101) 0:01:01.683 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.064) 0:01:01.748 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.051) 0:01:01.800 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.087) 0:01:01.888 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:58:00 +0000 (0:00:00.060) 0:01:01.948 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:58:01 +0000 (0:00:00.889) 0:01:02.838 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.752) 0:01:03.591 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.033) 0:01:03.625 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.031) 0:01:03.657 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.044) 0:01:03.701 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.079) 0:01:03.781 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.027) 0:01:03.809 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.032) 0:01:03.841 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:58:02 +0000 (0:00:00.120) 0:01:03.962 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.306) 0:01:04.268 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.045) 0:01:04.314 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.030) 0:01:04.344 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.024) 0:01:04.369 ***** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.407) 0:01:04.776 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.022) 0:01:04.798 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.034) 0:01:04.833 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.053) 0:01:04.886 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:58:03 +0000 (0:00:00.057) 0:01:04.944 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:30 Thursday 21 December 2023 16:58:04 +0000 (0:00:00.153) 0:01:05.097 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove+down_profile.yml for sut TASK [Include network role] **************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/remove+down_profile.yml:3 Thursday 21 December 2023 16:58:04 +0000 (0:00:00.057) 0:01:05.155 ***** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 21 December 2023 16:58:04 +0000 (0:00:00.047) 0:01:05.202 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 21 December 2023 16:58:04 +0000 (0:00:00.073) 0:01:05.276 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 21 December 2023 16:58:04 +0000 (0:00:00.028) 0:01:05.304 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 21 December 2023 16:58:04 +0000 (0:00:00.022) 0:01:05.327 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 21 December 2023 16:58:04 +0000 (0:00:00.021) 0:01:05.349 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 21 December 2023 16:58:05 +0000 (0:00:00.827) 0:01:06.176 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 21 December 2023 16:58:05 +0000 (0:00:00.695) 0:01:06.872 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 21 December 2023 16:58:05 +0000 (0:00:00.040) 0:01:06.913 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 21 December 2023 16:58:05 +0000 (0:00:00.045) 0:01:06.959 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 21 December 2023 16:58:05 +0000 (0:00:00.038) 0:01:06.997 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 21 December 2023 16:58:05 +0000 (0:00:00.050) 0:01:07.047 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.030) 0:01:07.077 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.028) 0:01:07.106 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.055) 0:01:07.161 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.267) 0:01:07.429 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.058) 0:01:07.488 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.024) 0:01:07.512 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.024) 0:01:07.536 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.316) 0:01:07.853 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.023) 0:01:07.877 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.024) 0:01:07.901 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.056) 0:01:07.957 ***** skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 21 December 2023 16:58:06 +0000 (0:00:00.046) 0:01:08.004 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:36 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.205) 0:01:08.210 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml for sut included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut TASK [Include the task 'get_profile_stat.yml'] ********************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml:3 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.072) 0:01:08.283 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:3 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.038) 0:01:08.321 ***** ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:9 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.034) 0:01:08.356 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:17 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.250) 0:01:08.606 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:25 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.025) 0:01:08.632 ***** fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.020733", "end": "2023-12-21 16:58:07.719188", "rc": 1, "start": "2023-12-21 16:58:07.698455" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:35 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.159) 0:01:08.791 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:49 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.052) 0:01:08.844 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:56 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.050) 0:01:08.895 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:62 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.044) 0:01:08.939 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_profile_stat.yml:69 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.046) 0:01:08.986 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_profile_absent.yml:5 Thursday 21 December 2023 16:58:07 +0000 (0:00:00.042) 0:01:09.029 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_NetworkManager_NVR.yml:7 Thursday 21 December 2023 16:58:08 +0000 (0:00:00.030) 0:01:09.060 ***** ok: [sut] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.404928", "end": "2023-12-21 16:58:08.567393", "rc": 0, "start": "2023-12-21 16:58:08.162465" } STDOUT: NetworkManager-1.18.8-2.el7_9 TASK [Store NetworkManager version] ******************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_NetworkManager_NVR.yml:14 Thursday 21 December 2023 16:58:08 +0000 (0:00:00.610) 0:01:09.670 ***** ok: [sut] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.18.8-2.el7_9" }, "changed": false } TASK [Show NetworkManager version] ********************************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_NetworkManager_NVR.yml:18 Thursday 21 December 2023 16:58:08 +0000 (0:00:00.037) 0:01:09.707 ***** ok: [sut] => { "networkmanager_nvr": "NetworkManager-1.18.8-2.el7_9" } TASK [Conditional asserts] ***************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:42 Thursday 21 December 2023 16:58:08 +0000 (0:00:00.051) 0:01:09.758 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 21 December 2023 16:58:08 +0000 (0:00:00.063) 0:01:09.822 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 21 December 2023 16:58:08 +0000 (0:00:00.088) 0:01:09.910 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 21 December 2023 16:58:09 +0000 (0:00:00.168) 0:01:10.078 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:47 Thursday 21 December 2023 16:58:09 +0000 (0:00:00.058) 0:01:10.137 ***** ok: [sut] => {} MSG: +++++ Success in test 'I will not get an error when I try to remove an absent profile' +++++ TASK [Cleanup] ***************************************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/run_test.yml:66 Thursday 21 December 2023 16:58:09 +0000 (0:00:00.035) 0:01:10.172 ***** included: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** task path: /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/cleanup_profile+device.yml:3 Thursday 21 December 2023 16:58:09 +0000 (0:00:00.050) 0:01:10.223 ***** fatal: [sut]: 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.046380", "end": "2023-12-21 16:58:09.381166", "rc": 1, "start": "2023-12-21 16:58:09.334786" } STDERR: 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" MSG: non-zero return code ...ignoring META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=322 changed=10 unreachable=0 failed=0 skipped=246 rescued=0 ignored=11 Thursday 21 December 2023 16:58:09 +0000 (0:00:00.256) 0:01:10.479 ***** =============================================================================== linux-system-roles.network : Configure networking connection profiles --- 2.16s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Configure networking connection profiles --- 1.52s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Enable and start NetworkManager ------------ 1.50s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 Gather current interface info ------------------------------------------- 1.22s /WORKDIR/git-route_typeodyj10gt/tests/playbooks/tasks/get_current_interfaces.yml:3 linux-system-roles.network : Enable and start NetworkManager ------------ 1.19s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:85 linux-system-roles.network : Configure networking connection profiles --- 1.13s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:122 linux-system-roles.network : Re-test connectivity ----------------------- 0.99s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/main.yml:155 linux-system-roles.network : Check which services are running ----------- 0.95s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.93s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.89s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.89s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.88s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which packages are installed --------- 0.87s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Check which packages are installed --------- 0.87s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Check which services are running ----------- 0.85s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.85s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.84s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.84s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.84s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 0.84s /WORKDIR/git-route_typeodyj10gt/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---