Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* Monday 22 July 2024 12:22:45 -0400 (0:00:00.021) 0:00:00.021 *********** ok: [managed_node1] TASK [Include the task 'el_repo_setup.yml'] ************************************ Monday 22 July 2024 12:22:46 -0400 (0:00:00.971) 0:00:00.993 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml for managed_node1 TASK [Gather the minimum subset of ansible_facts required by the network role test] *** Monday 22 July 2024 12:22:47 -0400 (0:00:00.088) 0:00:01.082 *********** ok: [managed_node1] TASK [Check if system is ostree] *********************************************** Monday 22 July 2024 12:22:47 -0400 (0:00:00.403) 0:00:01.485 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** Monday 22 July 2024 12:22:47 -0400 (0:00:00.434) 0:00:01.919 *********** ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** Monday 22 July 2024 12:22:47 -0400 (0:00:00.046) 0:00:01.966 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** Monday 22 July 2024 12:22:47 -0400 (0:00:00.044) 0:00:02.011 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 7] *********************************************************** Monday 22 July 2024 12:22:48 -0400 (0:00:00.076) 0:00:02.087 *********** ok: [managed_node1] => { "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] *********************************************** Monday 22 July 2024 12:22:48 -0400 (0:00:00.385) 0:00:02.472 *********** ok: [managed_node1] => { "changed": false, "rc": 0, "results": [ "yum-utils-1.1.31-54.el7_8.noarch providing yum-utils is already installed" ] } TASK [Enable EPEL 7] *********************************************************** Monday 22 July 2024 12:22:49 -0400 (0:00:00.750) 0:00:03.223 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "yum-config-manager", "--enable", "epel" ], "delta": "0:00:00.167935", "end": "2024-07-22 12:22:49.583777", "rc": 0, "start": "2024-07-22 12:22:49.415842" } STDOUT: Loaded plugins: fastestmirror ================================== repo: epel ================================== [epel] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7 baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7/epel check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = True enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7/epel/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7/epel/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 hdrdir = /var/cache/yum/x86_64/7/epel/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64&infra=stock&content=centos minrate = 0 mirrorlist = mirrorlist_expire = 86400 name = Extra Packages for Enterprise Linux 7 - x86_64 old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7/epel pkgdir = /var/cache/yum/x86_64/7/epel/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = sslclientcert = sslclientkey = sslverify = True throttle = 0 timeout = 30.0 ui_id = epel/x86_64 ui_repoid_vars = releasever, basearch username = TASK [Enable EPEL 8] *********************************************************** Monday 22 July 2024 12:22:49 -0400 (0:00:00.462) 0:00:03.686 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Monday 22 July 2024 12:22:49 -0400 (0:00:00.026) 0:00:03.712 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Monday 22 July 2024 12:22:49 -0400 (0:00:00.023) 0:00:03.736 *********** ok: [managed_node1] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [Play for testing states] ************************************************* TASK [Gathering Facts] ********************************************************* Monday 22 July 2024 12:22:49 -0400 (0:00:00.025) 0:00:03.761 *********** ok: [managed_node1] TASK [Show playbook name] ****************************************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.595) 0:00:04.357 *********** ok: [managed_node1] => {} MSG: this is: playbooks/tests_states.yml TASK [Include the task 'run_test.yml'] ***************************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.027) 0:00:04.384 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 TASK [TEST: I can create a profile] ******************************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.043) 0:00:04.428 *********** ok: [managed_node1] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.027) 0:00:04.455 *********** ok: [managed_node1] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [managed_node1] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [managed_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [managed_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": false, "what": "tasks/assert_device_present.yml" } ] } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.087) 0:00:04.543 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.036) 0:00:04.579 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:22:50 -0400 (0:00:00.036) 0:00:04.615 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003295", "end": "2024-07-22 12:22:50.805962", "rc": 0, "start": "2024-07-22 12:22:50.802667" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.294) 0:00:04.909 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:22:50 -0400 (0:00:00.027) 0:00:04.937 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:22:50 -0400 (0:00:00.029) 0:00:04.966 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/delete_interface.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_absent.yml for managed_node1 TASK [Remove test interface if necessary] ************************************** Monday 22 July 2024 12:22:50 -0400 (0:00:00.054) 0:00:05.021 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.007658", "end": "2024-07-22 12:22:51.223077", "rc": 1, "start": "2024-07-22 12:22:51.215419" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:22:51 -0400 (0:00:00.305) 0:00:05.326 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface statebr] ****************************************** Monday 22 July 2024 12:22:51 -0400 (0:00:00.039) 0:00:05.366 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* Monday 22 July 2024 12:22:51 -0400 (0:00:00.295) 0:00:05.661 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** Monday 22 July 2024 12:22:51 -0400 (0:00:00.032) 0:00:05.693 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bridge_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:22:51 -0400 (0:00:00.047) 0:00:05.741 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:22:51 -0400 (0:00:00.148) 0:00:05.889 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:22:51 -0400 (0:00:00.053) 0:00:05.943 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:22:51 -0400 (0:00:00.030) 0:00:05.974 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:22:51 -0400 (0:00:00.025) 0:00:05.999 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:22:51 -0400 (0:00:00.029) 0:00:06.029 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:22:52 -0400 (0:00:00.985) 0:00:07.014 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:22:54 -0400 (0:00:01.447) 0:00:08.462 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:22:54 -0400 (0:00:00.068) 0:00:08.530 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:22:54 -0400 (0:00:00.067) 0:00:08.597 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:22:54 -0400 (0:00:00.066) 0:00:08.664 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:22:54 -0400 (0:00:00.071) 0:00:08.736 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:22:54 -0400 (0:00:00.074) 0:00:08.810 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:22:54 -0400 (0:00:00.070) 0:00:08.881 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:22:54 -0400 (0:00:00.116) 0:00:08.998 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:22:55 -0400 (0:00:00.065) 0:00:09.063 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:22:55 -0400 (0:00:00.070) 0:00:09.134 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:22:55 -0400 (0:00:00.115) 0:00:09.250 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:22:55 -0400 (0:00:00.070) 0:00:09.321 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:22:55 -0400 (0:00:00.067) 0:00:09.388 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:22:56 -0400 (0:00:00.718) 0:00:10.106 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpIX_cZN" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:22:56 -0400 (0:00:00.353) 0:00:10.460 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:22:57 -0400 (0:00:00.785) 0:00:11.246 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:22:57 -0400 (0:00:00.065) 0:00:11.311 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:22:57 -0400 (0:00:00.073) 0:00:11.385 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:22:57 -0400 (0:00:00.072) 0:00:11.457 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:22:57 -0400 (0:00:00.066) 0:00:11.524 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:22:57 -0400 (0:00:00.478) 0:00:12.003 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:22:58 -0400 (0:00:00.070) 0:00:12.073 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed_node1 TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:22:58 -0400 (0:00:00.176) 0:00:12.249 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:22:58 -0400 (0:00:00.124) 0:00:12.374 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:22:58 -0400 (0:00:00.071) 0:00:12.446 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665377.0980635, "block_size": 4096, "blocks": 8, "ctime": 1721665377.0980635, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 21754, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721665377.0980635, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 127, "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] ******************** Monday 22 July 2024 12:22:58 -0400 (0:00:00.344) 0:00:12.790 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:22:58 -0400 (0:00:00.071) 0:00:12.862 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022401", "end": "2024-07-22 12:22:59.074153", "rc": 1, "start": "2024-07-22 12:22:59.051752" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:22:59 -0400 (0:00:00.353) 0:00:13.216 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Monday 22 July 2024 12:22:59 -0400 (0:00:00.069) 0:00:13.285 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003177", "end": "2024-07-22 12:22:59.480945", "rc": 0, "start": "2024-07-22 12:22:59.477768" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Monday 22 July 2024 12:22:59 -0400 (0:00:00.340) 0:00:13.625 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** Monday 22 July 2024 12:22:59 -0400 (0:00:00.079) 0:00:13.705 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.004574", "end": "2024-07-22 12:22:59.910219", "rc": 0, "start": "2024-07-22 12:22:59.905645" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* Monday 22 July 2024 12:23:00 -0400 (0:00:00.350) 0:00:14.055 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** Monday 22 July 2024 12:23:00 -0400 (0:00:00.080) 0:00:14.135 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* Monday 22 July 2024 12:23:00 -0400 (0:00:00.073) 0:00:14.209 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** Monday 22 July 2024 12:23:00 -0400 (0:00:00.074) 0:00:14.283 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:23:00 -0400 (0:00:00.119) 0:00:14.403 *********** skipping: [managed_node1] => (item={u'what': u'tasks/assert_device_present.yml', u'condition': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "condition": false, "what": "tasks/assert_device_present.yml" }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can create a profile'] ******************************** Monday 22 July 2024 12:23:00 -0400 (0:00:00.076) 0:00:14.479 *********** ok: [managed_node1] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [Cleanup] ***************************************************************** Monday 22 July 2024 12:23:00 -0400 (0:00:00.069) 0:00:14.549 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed_node1 TASK [Cleanup profile and device] ********************************************** Monday 22 July 2024 12:23:00 -0400 (0:00:00.129) 0:00:14.678 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.047300", "end": "2024-07-22 12:23:00.928854", "rc": 1, "start": "2024-07-22 12:23:00.881554" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** Monday 22 July 2024 12:23:01 -0400 (0:00:00.390) 0:00:15.068 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 TASK [TEST: I can create a profile without autoconnect] ************************ Monday 22 July 2024 12:23:01 -0400 (0:00:00.120) 0:00:15.189 *********** ok: [managed_node1] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** Monday 22 July 2024 12:23:01 -0400 (0:00:00.070) 0:00:15.259 *********** ok: [managed_node1] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile without autoconnect" } ok: [managed_node1] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [managed_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile_no_autoconnect.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_absent.yml", "tasks/assert_profile_present.yml" ] } ok: [managed_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:23:01 -0400 (0:00:00.135) 0:00:15.395 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:23:01 -0400 (0:00:00.118) 0:00:15.514 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:23:01 -0400 (0:00:00.117) 0:00:15.632 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:01.004585", "end": "2024-07-22 12:23:02.833197", "rc": 0, "start": "2024-07-22 12:23:01.828612" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:23:02 -0400 (0:00:01.341) 0:00:16.973 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:23:02 -0400 (0:00:00.070) 0:00:17.043 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:23:03 -0400 (0:00:00.073) 0:00:17.117 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/delete_interface.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_absent.yml for managed_node1 TASK [Remove test interface if necessary] ************************************** Monday 22 July 2024 12:23:03 -0400 (0:00:00.134) 0:00:17.252 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.006832", "end": "2024-07-22 12:23:03.464811", "rc": 1, "start": "2024-07-22 12:23:03.457979" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:23:03 -0400 (0:00:00.353) 0:00:17.605 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface statebr] ****************************************** Monday 22 July 2024 12:23:03 -0400 (0:00:00.119) 0:00:17.724 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* Monday 22 July 2024 12:23:04 -0400 (0:00:00.349) 0:00:18.074 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Test] ******************************************************************** Monday 22 July 2024 12:23:04 -0400 (0:00:00.071) 0:00:18.145 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:04 -0400 (0:00:00.130) 0:00:18.276 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:04 -0400 (0:00:00.137) 0:00:18.414 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:04 -0400 (0:00:00.181) 0:00:18.595 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:04 -0400 (0:00:00.087) 0:00:18.683 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:04 -0400 (0:00:00.070) 0:00:18.753 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:04 -0400 (0:00:00.069) 0:00:18.823 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:05 -0400 (0:00:00.893) 0:00:19.716 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:23:06 -0400 (0:00:01.170) 0:00:20.886 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:23:06 -0400 (0:00:00.071) 0:00:20.958 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:23:07 -0400 (0:00:00.118) 0:00:21.076 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:07 -0400 (0:00:00.069) 0:00:21.146 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:07 -0400 (0:00:00.069) 0:00:21.215 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:07 -0400 (0:00:00.079) 0:00:21.295 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:23:07 -0400 (0:00:00.073) 0:00:21.368 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:23:07 -0400 (0:00:00.121) 0:00:21.490 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:23:07 -0400 (0:00:00.069) 0:00:21.560 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:07 -0400 (0:00:00.067) 0:00:21.627 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:23:07 -0400 (0:00:00.075) 0:00:21.702 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:23:07 -0400 (0:00:00.070) 0:00:21.773 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:23:07 -0400 (0:00:00.069) 0:00:21.842 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:23:08 -0400 (0:00:00.471) 0:00:22.314 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpqulCPv" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:23:08 -0400 (0:00:00.352) 0:00:22.666 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:23:09 -0400 (0:00:00.598) 0:00:23.264 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:23:09 -0400 (0:00:00.122) 0:00:23.386 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:23:09 -0400 (0:00:00.071) 0:00:23.458 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:23:09 -0400 (0:00:00.074) 0:00:23.532 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:23:09 -0400 (0:00:00.069) 0:00:23.601 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:23:09 -0400 (0:00:00.354) 0:00:23.956 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:23:09 -0400 (0:00:00.072) 0:00:24.029 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_absent.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed_node1 TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:23:10 -0400 (0:00:00.141) 0:00:24.171 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface statebr] ****************************************** Monday 22 July 2024 12:23:10 -0400 (0:00:00.119) 0:00:24.290 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'statebr'] ************************* Monday 22 July 2024 12:23:10 -0400 (0:00:00.334) 0:00:24.625 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:23:10 -0400 (0:00:00.071) 0:00:24.696 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:23:10 -0400 (0:00:00.125) 0:00:24.822 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:23:10 -0400 (0:00:00.070) 0:00:24.892 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665389.1171906, "block_size": 4096, "blocks": 8, "ctime": 1721665389.1171906, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 21754, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721665389.1171906, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 126, "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] ******************** Monday 22 July 2024 12:23:11 -0400 (0:00:00.335) 0:00:25.228 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:23:11 -0400 (0:00:00.121) 0:00:25.349 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022488", "end": "2024-07-22 12:23:11.570427", "rc": 1, "start": "2024-07-22 12:23:11.547939" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:23:11 -0400 (0:00:00.364) 0:00:25.713 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Monday 22 July 2024 12:23:11 -0400 (0:00:00.072) 0:00:25.786 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003173", "end": "2024-07-22 12:23:11.995317", "rc": 0, "start": "2024-07-22 12:23:11.992144" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Monday 22 July 2024 12:23:12 -0400 (0:00:00.358) 0:00:26.145 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** Monday 22 July 2024 12:23:12 -0400 (0:00:00.081) 0:00:26.226 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003211", "end": "2024-07-22 12:23:12.431818", "rc": 0, "start": "2024-07-22 12:23:12.428607" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* Monday 22 July 2024 12:23:12 -0400 (0:00:00.353) 0:00:26.579 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** Monday 22 July 2024 12:23:12 -0400 (0:00:00.079) 0:00:26.659 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* Monday 22 July 2024 12:23:12 -0400 (0:00:00.076) 0:00:26.735 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** Monday 22 July 2024 12:23:12 -0400 (0:00:00.073) 0:00:26.809 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:23:12 -0400 (0:00:00.072) 0:00:26.882 *********** TASK [Success in test 'I can create a profile without autoconnect'] ************ Monday 22 July 2024 12:23:12 -0400 (0:00:00.066) 0:00:26.949 *********** ok: [managed_node1] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [Cleanup] ***************************************************************** Monday 22 July 2024 12:23:12 -0400 (0:00:00.074) 0:00:27.023 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed_node1 TASK [Cleanup profile and device] ********************************************** Monday 22 July 2024 12:23:13 -0400 (0:00:00.131) 0:00:27.154 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.049341", "end": "2024-07-22 12:23:13.399418", "rc": 1, "start": "2024-07-22 12:23:13.350077" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [Include the task 'run_test.yml'] ***************************************** Monday 22 July 2024 12:23:13 -0400 (0:00:00.439) 0:00:27.594 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 TASK [TEST: I can activate an existing profile] ******************************** Monday 22 July 2024 12:23:13 -0400 (0:00:00.123) 0:00:27.717 *********** ok: [managed_node1] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** Monday 22 July 2024 12:23:13 -0400 (0:00:00.071) 0:00:27.789 *********** ok: [managed_node1] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can activate an existing profile" } ok: [managed_node1] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml" ] } ok: [managed_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/activate_profile.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_present.yml" ] } ok: [managed_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:23:13 -0400 (0:00:00.133) 0:00:27.922 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:23:13 -0400 (0:00:00.120) 0:00:28.043 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:23:14 -0400 (0:00:00.117) 0:00:28.161 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003222", "end": "2024-07-22 12:23:14.361092", "rc": 0, "start": "2024-07-22 12:23:14.357870" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:23:14 -0400 (0:00:00.349) 0:00:28.510 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:23:14 -0400 (0:00:00.070) 0:00:28.581 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:23:14 -0400 (0:00:00.072) 0:00:28.653 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bridge_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:14 -0400 (0:00:00.125) 0:00:28.779 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:14 -0400 (0:00:00.126) 0:00:28.905 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:15 -0400 (0:00:00.190) 0:00:29.095 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:15 -0400 (0:00:00.087) 0:00:29.183 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:15 -0400 (0:00:00.071) 0:00:29.254 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:15 -0400 (0:00:00.069) 0:00:29.324 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:16 -0400 (0:00:00.888) 0:00:30.212 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:23:17 -0400 (0:00:01.182) 0:00:31.395 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:23:17 -0400 (0:00:00.074) 0:00:31.469 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:23:17 -0400 (0:00:00.068) 0:00:31.538 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:17 -0400 (0:00:00.116) 0:00:31.654 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:17 -0400 (0:00:00.072) 0:00:31.726 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:17 -0400 (0:00:00.078) 0:00:31.805 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:23:17 -0400 (0:00:00.076) 0:00:31.881 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:23:17 -0400 (0:00:00.119) 0:00:32.001 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:23:18 -0400 (0:00:00.072) 0:00:32.073 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:18 -0400 (0:00:00.070) 0:00:32.144 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:23:18 -0400 (0:00:00.075) 0:00:32.219 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:23:18 -0400 (0:00:00.070) 0:00:32.290 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:23:18 -0400 (0:00:00.068) 0:00:32.358 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:23:18 -0400 (0:00:00.476) 0:00:32.835 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpbyiG6W" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:23:19 -0400 (0:00:00.357) 0:00:33.193 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:23:19 -0400 (0:00:00.548) 0:00:33.742 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:23:19 -0400 (0:00:00.069) 0:00:33.811 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:23:19 -0400 (0:00:00.128) 0:00:33.940 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:23:19 -0400 (0:00:00.073) 0:00:34.014 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:23:20 -0400 (0:00:00.072) 0:00:34.086 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:23:20 -0400 (0:00:00.336) 0:00:34.423 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Test] ******************************************************************** Monday 22 July 2024 12:23:20 -0400 (0:00:00.072) 0:00:34.495 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/activate_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:20 -0400 (0:00:00.128) 0:00:34.624 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:20 -0400 (0:00:00.140) 0:00:34.765 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:20 -0400 (0:00:00.136) 0:00:34.901 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:20 -0400 (0:00:00.093) 0:00:34.994 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:21 -0400 (0:00:00.071) 0:00:35.066 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:21 -0400 (0:00:00.068) 0:00:35.134 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:22 -0400 (0:00:00.939) 0:00:36.073 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:23:23 -0400 (0:00:01.175) 0:00:37.248 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.075) 0:00:37.323 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.068) 0:00:37.392 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.073) 0:00:37.465 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.069) 0:00:37.535 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.077) 0:00:37.612 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:23:23 -0400 (0:00:00.074) 0:00:37.687 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.122) 0:00:37.809 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.071) 0:00:37.881 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:23 -0400 (0:00:00.068) 0:00:37.950 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:23:24 -0400 (0:00:00.129) 0:00:38.079 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:23:24 -0400 (0:00:00.071) 0:00:38.151 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:23:24 -0400 (0:00:00.071) 0:00:38.222 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:23:24 -0400 (0:00:00.468) 0:00:38.691 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpVbSPua" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:23:24 -0400 (0:00:00.346) 0:00:39.038 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err='' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:23:25 -0400 (0:00:00.769) 0:00:39.808 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:23:25 -0400 (0:00:00.067) 0:00:39.876 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:23:25 -0400 (0:00:00.077) 0:00:39.953 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:23:25 -0400 (0:00:00.073) 0:00:40.027 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:23:26 -0400 (0:00:00.069) 0:00:40.096 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:23:26 -0400 (0:00:00.340) 0:00:40.437 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml for managed_node1 TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:23:26 -0400 (0:00:00.138) 0:00:40.575 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface statebr] ****************************************** Monday 22 July 2024 12:23:26 -0400 (0:00:00.172) 0:00:40.748 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665405.5953643, "block_size": 4096, "blocks": 0, "ctime": 1721665405.5923643, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 18192, "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": 1721665405.5923643, "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'] ************************ Monday 22 July 2024 12:23:27 -0400 (0:00:00.347) 0:00:41.095 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:23:27 -0400 (0:00:00.073) 0:00:41.169 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:23:27 -0400 (0:00:00.128) 0:00:41.297 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:23:27 -0400 (0:00:00.071) 0:00:41.368 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665405.4333627, "block_size": 4096, "blocks": 8, "ctime": 1721665399.5953012, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 21754, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721665399.5953012, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 127, "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] ******************** Monday 22 July 2024 12:23:27 -0400 (0:00:00.344) 0:00:41.712 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:23:27 -0400 (0:00:00.073) 0:00:41.786 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.024207", "end": "2024-07-22 12:23:28.002455", "rc": 1, "start": "2024-07-22 12:23:27.978248" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:23:28 -0400 (0:00:00.362) 0:00:42.148 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Monday 22 July 2024 12:23:28 -0400 (0:00:00.073) 0:00:42.221 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003220", "end": "2024-07-22 12:23:28.436151", "rc": 0, "start": "2024-07-22 12:23:28.432931" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Monday 22 July 2024 12:23:28 -0400 (0:00:00.359) 0:00:42.581 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** Monday 22 July 2024 12:23:28 -0400 (0:00:00.082) 0:00:42.664 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-statebr" ], "delta": "0:00:00.003310", "end": "2024-07-22 12:23:28.873468", "rc": 0, "start": "2024-07-22 12:23:28.870158" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* Monday 22 July 2024 12:23:28 -0400 (0:00:00.357) 0:00:43.022 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'statebr'] ************************** Monday 22 July 2024 12:23:29 -0400 (0:00:00.132) 0:00:43.154 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'statebr'] ********* Monday 22 July 2024 12:23:29 -0400 (0:00:00.075) 0:00:43.229 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in statebr] *************** Monday 22 July 2024 12:23:29 -0400 (0:00:00.077) 0:00:43.306 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:23:29 -0400 (0:00:00.074) 0:00:43.381 *********** TASK [Success in test 'I can activate an existing profile'] ******************** Monday 22 July 2024 12:23:29 -0400 (0:00:00.064) 0:00:43.446 *********** ok: [managed_node1] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [Cleanup] ***************************************************************** Monday 22 July 2024 12:23:29 -0400 (0:00:00.071) 0:00:43.517 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed_node1 TASK [Cleanup profile and device] ********************************************** Monday 22 July 2024 12:23:29 -0400 (0:00:00.132) 0:00:43.650 *********** ok: [managed_node1] => { "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.052943", "end": "2024-07-22 12:23:29.902061", "rc": 0, "start": "2024-07-22 12:23:29.849118" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [Include the task 'run_test.yml'] ***************************************** Monday 22 July 2024 12:23:29 -0400 (0:00:00.399) 0:00:44.050 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 TASK [TEST: I can remove an existing profile without taking it down] *********** Monday 22 July 2024 12:23:30 -0400 (0:00:00.124) 0:00:44.174 *********** ok: [managed_node1] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** Monday 22 July 2024 12:23:30 -0400 (0:00:00.072) 0:00:44.247 *********** ok: [managed_node1] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can remove an existing profile without taking it down" } ok: [managed_node1] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml" ] } ok: [managed_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove_profile.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_absent.yml" ] } ok: [managed_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:23:30 -0400 (0:00:00.133) 0:00:44.381 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:23:30 -0400 (0:00:00.120) 0:00:44.501 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:23:30 -0400 (0:00:00.116) 0:00:44.618 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003263", "end": "2024-07-22 12:23:30.832636", "rc": 0, "start": "2024-07-22 12:23:30.829373" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:23:30 -0400 (0:00:00.365) 0:00:44.983 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:23:31 -0400 (0:00:00.070) 0:00:45.054 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:23:31 -0400 (0:00:00.073) 0:00:45.127 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bridge_profile.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/activate_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:31 -0400 (0:00:00.137) 0:00:45.264 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:31 -0400 (0:00:00.123) 0:00:45.388 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:31 -0400 (0:00:00.139) 0:00:45.527 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:31 -0400 (0:00:00.091) 0:00:45.619 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:31 -0400 (0:00:00.072) 0:00:45.691 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:31 -0400 (0:00:00.068) 0:00:45.759 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:32 -0400 (0:00:00.903) 0:00:46.663 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:23:33 -0400 (0:00:01.218) 0:00:47.881 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:23:33 -0400 (0:00:00.074) 0:00:47.956 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:23:33 -0400 (0:00:00.069) 0:00:48.025 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:34 -0400 (0:00:00.070) 0:00:48.096 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:34 -0400 (0:00:00.070) 0:00:48.166 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:34 -0400 (0:00:00.077) 0:00:48.244 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:23:34 -0400 (0:00:00.077) 0:00:48.322 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:23:34 -0400 (0:00:00.121) 0:00:48.443 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:23:34 -0400 (0:00:00.071) 0:00:48.514 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:34 -0400 (0:00:00.068) 0:00:48.583 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:23:34 -0400 (0:00:00.075) 0:00:48.659 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:23:34 -0400 (0:00:00.073) 0:00:48.732 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:23:34 -0400 (0:00:00.119) 0:00:48.852 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:23:35 -0400 (0:00:00.476) 0:00:49.328 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpPB7vlN" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:23:35 -0400 (0:00:00.360) 0:00:49.689 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:23:36 -0400 (0:00:00.547) 0:00:50.236 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:23:36 -0400 (0:00:00.068) 0:00:50.305 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:23:36 -0400 (0:00:00.071) 0:00:50.376 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:23:36 -0400 (0:00:00.074) 0:00:50.451 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:23:36 -0400 (0:00:00.070) 0:00:50.522 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:23:36 -0400 (0:00:00.337) 0:00:50.859 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:36 -0400 (0:00:00.071) 0:00:50.931 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:37 -0400 (0:00:00.123) 0:00:51.055 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:37 -0400 (0:00:00.185) 0:00:51.241 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:37 -0400 (0:00:00.090) 0:00:51.332 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:37 -0400 (0:00:00.070) 0:00:51.403 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:37 -0400 (0:00:00.070) 0:00:51.473 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:38 -0400 (0:00:00.901) 0:00:52.375 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:23:39 -0400 (0:00:01.177) 0:00:53.553 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:23:39 -0400 (0:00:00.075) 0:00:53.629 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:23:39 -0400 (0:00:00.121) 0:00:53.750 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:39 -0400 (0:00:00.067) 0:00:53.818 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:39 -0400 (0:00:00.072) 0:00:53.890 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:39 -0400 (0:00:00.073) 0:00:53.964 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:23:39 -0400 (0:00:00.076) 0:00:54.041 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:23:40 -0400 (0:00:00.121) 0:00:54.162 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:23:40 -0400 (0:00:00.067) 0:00:54.230 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:40 -0400 (0:00:00.070) 0:00:54.301 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:23:40 -0400 (0:00:00.073) 0:00:54.374 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:23:40 -0400 (0:00:00.070) 0:00:54.445 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:23:40 -0400 (0:00:00.071) 0:00:54.516 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:23:40 -0400 (0:00:00.466) 0:00:54.983 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpQW9qP7" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:23:41 -0400 (0:00:00.364) 0:00:55.347 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err='' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:23:42 -0400 (0:00:00.764) 0:00:56.112 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:23:42 -0400 (0:00:00.123) 0:00:56.235 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:23:42 -0400 (0:00:00.072) 0:00:56.307 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:23:42 -0400 (0:00:00.075) 0:00:56.383 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:23:42 -0400 (0:00:00.068) 0:00:56.452 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** Monday 22 July 2024 12:23:42 -0400 (0:00:00.329) 0:00:56.782 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:42 -0400 (0:00:00.126) 0:00:56.908 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:42 -0400 (0:00:00.137) 0:00:57.045 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:43 -0400 (0:00:00.140) 0:00:57.185 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:43 -0400 (0:00:00.087) 0:00:57.273 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:43 -0400 (0:00:00.072) 0:00:57.346 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:43 -0400 (0:00:00.067) 0:00:57.413 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:44 -0400 (0:00:00.955) 0:00:58.369 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:23:45 -0400 (0:00:01.170) 0:00:59.540 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:23:45 -0400 (0:00:00.075) 0:00:59.616 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:23:45 -0400 (0:00:00.068) 0:00:59.684 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:45 -0400 (0:00:00.072) 0:00:59.756 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:45 -0400 (0:00:00.072) 0:00:59.829 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:45 -0400 (0:00:00.078) 0:00:59.908 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:23:45 -0400 (0:00:00.075) 0:00:59.983 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:23:46 -0400 (0:00:00.120) 0:01:00.103 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:23:46 -0400 (0:00:00.074) 0:01:00.177 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:46 -0400 (0:00:00.069) 0:01:00.247 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:23:46 -0400 (0:00:00.126) 0:01:00.374 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:23:46 -0400 (0:00:00.073) 0:01:00.447 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:23:46 -0400 (0:00:00.070) 0:01:00.517 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:23:46 -0400 (0:00:00.468) 0:01:00.985 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpNUx1az" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:23:47 -0400 (0:00:00.356) 0:01:01.342 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:23:47 -0400 (0:00:00.557) 0:01:01.899 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:23:47 -0400 (0:00:00.070) 0:01:01.970 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:23:47 -0400 (0:00:00.071) 0:01:02.042 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:23:48 -0400 (0:00:00.074) 0:01:02.117 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:23:48 -0400 (0:00:00.073) 0:01:02.190 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:23:48 -0400 (0:00:00.340) 0:01:02.530 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_absent.yml for managed_node1 TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 12:23:48 -0400 (0:00:00.140) 0:01:02.671 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface statebr] ****************************************** Monday 22 July 2024 12:23:48 -0400 (0:00:00.176) 0:01:02.848 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721665421.8985362, "block_size": 4096, "blocks": 0, "ctime": 1721665421.8975363, "dev": 18, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 18192, "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": 1721665421.8975363, "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'] ************************ Monday 22 July 2024 12:23:49 -0400 (0:00:00.346) 0:01:03.194 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:23:49 -0400 (0:00:00.075) 0:01:03.270 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:23:49 -0400 (0:00:00.123) 0:01:03.394 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:23:49 -0400 (0:00:00.073) 0:01:03.467 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 12:23:49 -0400 (0:00:00.344) 0:01:03.811 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:23:49 -0400 (0:00:00.068) 0:01:03.879 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.022040", "end": "2024-07-22 12:23:50.097109", "rc": 1, "start": "2024-07-22 12:23:50.075069" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:23:50 -0400 (0:00:00.360) 0:01:04.240 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Monday 22 July 2024 12:23:50 -0400 (0:00:00.071) 0:01:04.312 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Monday 22 July 2024 12:23:50 -0400 (0:00:00.070) 0:01:04.383 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** Monday 22 July 2024 12:23:50 -0400 (0:00:00.070) 0:01:04.453 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* Monday 22 July 2024 12:23:50 -0400 (0:00:00.071) 0:01:04.524 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** Monday 22 July 2024 12:23:50 -0400 (0:00:00.127) 0:01:04.652 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:23:50 -0400 (0:00:00.077) 0:01:04.729 *********** TASK [Success in test 'I can remove an existing profile without taking it down'] *** Monday 22 July 2024 12:23:50 -0400 (0:00:00.122) 0:01:04.852 *********** ok: [managed_node1] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [Cleanup] ***************************************************************** Monday 22 July 2024 12:23:50 -0400 (0:00:00.071) 0:01:04.923 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed_node1 TASK [Cleanup profile and device] ********************************************** Monday 22 July 2024 12:23:51 -0400 (0:00:00.133) 0:01:05.057 *********** ok: [managed_node1] => { "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.050259", "end": "2024-07-22 12:23:51.306996", "rc": 0, "start": "2024-07-22 12:23:51.256737" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [Include the task 'run_test.yml'] ***************************************** Monday 22 July 2024 12:23:51 -0400 (0:00:00.392) 0:01:05.449 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 TASK [TEST: I can take a profile down that is absent] ************************** Monday 22 July 2024 12:23:51 -0400 (0:00:00.124) 0:01:05.574 *********** ok: [managed_node1] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** Monday 22 July 2024 12:23:51 -0400 (0:00:00.071) 0:01:05.646 *********** ok: [managed_node1] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can take a profile down that is absent" } ok: [managed_node1] => (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: [managed_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml" ] } ok: [managed_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": false, "what": "tasks/assert_device_absent.yml" } ] } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:23:51 -0400 (0:00:00.135) 0:01:05.782 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:23:51 -0400 (0:00:00.119) 0:01:05.901 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:23:51 -0400 (0:00:00.118) 0:01:06.020 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003240", "end": "2024-07-22 12:23:52.215565", "rc": 0, "start": "2024-07-22 12:23:52.212325" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:23:52 -0400 (0:00:00.342) 0:01:06.363 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:23:52 -0400 (0:00:00.076) 0:01:06.440 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:23:52 -0400 (0:00:00.075) 0:01:06.515 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bridge_profile.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/activate_profile.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:52 -0400 (0:00:00.197) 0:01:06.712 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:52 -0400 (0:00:00.124) 0:01:06.837 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:52 -0400 (0:00:00.138) 0:01:06.975 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:53 -0400 (0:00:00.090) 0:01:07.066 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:53 -0400 (0:00:00.073) 0:01:07.139 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:53 -0400 (0:00:00.068) 0:01:07.207 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:54 -0400 (0:00:00.895) 0:01:08.102 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:23:55 -0400 (0:00:01.297) 0:01:09.400 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:23:55 -0400 (0:00:00.073) 0:01:09.474 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:23:55 -0400 (0:00:00.071) 0:01:09.545 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:55 -0400 (0:00:00.072) 0:01:09.617 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:55 -0400 (0:00:00.071) 0:01:09.689 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:55 -0400 (0:00:00.076) 0:01:09.765 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:23:55 -0400 (0:00:00.077) 0:01:09.842 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:23:55 -0400 (0:00:00.121) 0:01:09.964 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:23:55 -0400 (0:00:00.070) 0:01:10.035 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:23:56 -0400 (0:00:00.072) 0:01:10.107 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:23:56 -0400 (0:00:00.075) 0:01:10.183 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:23:56 -0400 (0:00:00.069) 0:01:10.252 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:23:56 -0400 (0:00:00.070) 0:01:10.322 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:23:56 -0400 (0:00:00.476) 0:01:10.799 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmp7qvTnQ" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:23:57 -0400 (0:00:00.398) 0:01:11.198 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:23:57 -0400 (0:00:00.551) 0:01:11.749 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:23:57 -0400 (0:00:00.068) 0:01:11.817 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:23:57 -0400 (0:00:00.076) 0:01:11.894 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:23:57 -0400 (0:00:00.073) 0:01:11.967 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:23:57 -0400 (0:00:00.073) 0:01:12.041 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:23:58 -0400 (0:00:00.332) 0:01:12.374 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** Monday 22 July 2024 12:23:58 -0400 (0:00:00.077) 0:01:12.452 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:23:58 -0400 (0:00:00.122) 0:01:12.574 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:23:58 -0400 (0:00:00.134) 0:01:12.708 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:23:58 -0400 (0:00:00.089) 0:01:12.797 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:23:58 -0400 (0:00:00.071) 0:01:12.869 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:23:58 -0400 (0:00:00.070) 0:01:12.939 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:23:59 -0400 (0:00:00.986) 0:01:13.925 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:24:01 -0400 (0:00:01.201) 0:01:15.127 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.073) 0:01:15.200 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.072) 0:01:15.272 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.074) 0:01:15.347 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.070) 0:01:15.418 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.078) 0:01:15.496 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:24:01 -0400 (0:00:00.077) 0:01:15.574 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.178) 0:01:15.752 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.072) 0:01:15.824 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:01 -0400 (0:00:00.071) 0:01:15.896 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:24:01 -0400 (0:00:00.078) 0:01:15.974 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:24:01 -0400 (0:00:00.071) 0:01:16.046 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:24:02 -0400 (0:00:00.071) 0:01:16.117 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:24:02 -0400 (0:00:00.494) 0:01:16.611 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmp7Foolx" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:24:02 -0400 (0:00:00.362) 0:01:16.974 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err='' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:24:03 -0400 (0:00:00.768) 0:01:17.742 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:24:03 -0400 (0:00:00.069) 0:01:17.812 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:24:03 -0400 (0:00:00.074) 0:01:17.887 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:24:03 -0400 (0:00:00.073) 0:01:17.960 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:24:03 -0400 (0:00:00.070) 0:01:18.031 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Monday 22 July 2024 12:24:04 -0400 (0:00:00.389) 0:01:18.420 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:24:04 -0400 (0:00:00.123) 0:01:18.544 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:24:04 -0400 (0:00:00.138) 0:01:18.682 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:24:04 -0400 (0:00:00.091) 0:01:18.773 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:24:04 -0400 (0:00:00.071) 0:01:18.844 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:24:04 -0400 (0:00:00.068) 0:01:18.913 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:24:05 -0400 (0:00:00.901) 0:01:19.815 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:24:07 -0400 (0:00:01.300) 0:01:21.116 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.078) 0:01:21.194 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.071) 0:01:21.265 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.068) 0:01:21.334 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.072) 0:01:21.406 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.078) 0:01:21.485 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:24:07 -0400 (0:00:00.075) 0:01:21.561 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.121) 0:01:21.682 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.068) 0:01:21.751 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:07 -0400 (0:00:00.071) 0:01:21.823 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:24:07 -0400 (0:00:00.076) 0:01:21.899 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:24:07 -0400 (0:00:00.071) 0:01:21.970 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:24:07 -0400 (0:00:00.068) 0:01:22.039 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:24:08 -0400 (0:00:00.473) 0:01:22.513 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpvPUkr2" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:24:08 -0400 (0:00:00.406) 0:01:22.920 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:24:09 -0400 (0:00:00.550) 0:01:23.470 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:24:09 -0400 (0:00:00.070) 0:01:23.541 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:24:09 -0400 (0:00:00.075) 0:01:23.616 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:24:09 -0400 (0:00:00.074) 0:01:23.690 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:24:09 -0400 (0:00:00.070) 0:01:23.761 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** Monday 22 July 2024 12:24:10 -0400 (0:00:00.335) 0:01:24.097 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove+down_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:24:10 -0400 (0:00:00.130) 0:01:24.227 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:24:10 -0400 (0:00:00.141) 0:01:24.369 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:24:10 -0400 (0:00:00.135) 0:01:24.505 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:24:10 -0400 (0:00:00.091) 0:01:24.597 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:24:10 -0400 (0:00:00.071) 0:01:24.668 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:24:10 -0400 (0:00:00.127) 0:01:24.796 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:24:11 -0400 (0:00:00.908) 0:01:25.705 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:24:12 -0400 (0:00:01.201) 0:01:26.906 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:24:12 -0400 (0:00:00.073) 0:01:26.979 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:24:12 -0400 (0:00:00.072) 0:01:27.051 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:13 -0400 (0:00:00.070) 0:01:27.122 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:13 -0400 (0:00:00.076) 0:01:27.198 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:13 -0400 (0:00:00.078) 0:01:27.276 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:24:13 -0400 (0:00:00.126) 0:01:27.403 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:24:13 -0400 (0:00:00.124) 0:01:27.527 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:24:13 -0400 (0:00:00.069) 0:01:27.597 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:13 -0400 (0:00:00.074) 0:01:27.672 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:24:13 -0400 (0:00:00.075) 0:01:27.747 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:24:13 -0400 (0:00:00.071) 0:01:27.818 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:24:13 -0400 (0:00:00.072) 0:01:27.891 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:24:14 -0400 (0:00:00.470) 0:01:28.362 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmp_zAUA6" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:24:14 -0400 (0:00:00.351) 0:01:28.714 *********** ok: [managed_node1] => { "_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": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:24:15 -0400 (0:00:00.547) 0:01:29.261 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:24:15 -0400 (0:00:00.068) 0:01:29.330 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:24:15 -0400 (0:00:00.074) 0:01:29.404 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:24:15 -0400 (0:00:00.073) 0:01:29.478 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:24:15 -0400 (0:00:00.070) 0:01:29.548 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:24:15 -0400 (0:00:00.390) 0:01:29.939 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_absent.yml for managed_node1 TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:24:16 -0400 (0:00:00.130) 0:01:30.070 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:24:16 -0400 (0:00:00.127) 0:01:30.197 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:24:16 -0400 (0:00:00.072) 0:01:30.270 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 12:24:16 -0400 (0:00:00.337) 0:01:30.608 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:24:16 -0400 (0:00:00.073) 0:01:30.681 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023453", "end": "2024-07-22 12:24:16.900457", "rc": 1, "start": "2024-07-22 12:24:16.877004" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:24:16 -0400 (0:00:00.364) 0:01:31.046 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Monday 22 July 2024 12:24:17 -0400 (0:00:00.073) 0:01:31.120 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Monday 22 July 2024 12:24:17 -0400 (0:00:00.069) 0:01:31.190 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** Monday 22 July 2024 12:24:17 -0400 (0:00:00.072) 0:01:31.263 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* Monday 22 July 2024 12:24:17 -0400 (0:00:00.072) 0:01:31.335 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** Monday 22 July 2024 12:24:17 -0400 (0:00:00.072) 0:01:31.408 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:24:17 -0400 (0:00:00.077) 0:01:31.485 *********** skipping: [managed_node1] => (item={u'what': u'tasks/assert_device_absent.yml', u'condition': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "condition": false, "what": "tasks/assert_device_absent.yml" }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I can take a profile down that is absent'] ************** Monday 22 July 2024 12:24:17 -0400 (0:00:00.079) 0:01:31.565 *********** ok: [managed_node1] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [Cleanup] ***************************************************************** Monday 22 July 2024 12:24:17 -0400 (0:00:00.132) 0:01:31.698 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed_node1 TASK [Cleanup profile and device] ********************************************** Monday 22 July 2024 12:24:17 -0400 (0:00:00.132) 0:01:31.830 *********** ok: [managed_node1] => { "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.049781", "end": "2024-07-22 12:24:18.083015", "rc": 0, "start": "2024-07-22 12:24:18.033234" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [Include the task 'run_test.yml'] ***************************************** Monday 22 July 2024 12:24:18 -0400 (0:00:00.396) 0:01:32.226 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/run_test.yml for managed_node1 TASK [TEST: I will not get an error when I try to remove an absent profile] **** Monday 22 July 2024 12:24:18 -0400 (0:00:00.123) 0:01:32.350 *********** ok: [managed_node1] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** Monday 22 July 2024 12:24:18 -0400 (0:00:00.073) 0:01:32.423 *********** ok: [managed_node1] => (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: [managed_node1] => (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: [managed_node1] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [managed_node1] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml", "tasks/get_NetworkManager_NVR.yml" ] } ok: [managed_node1] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "condition": false, "what": "tasks/assert_device_absent.yml" } ] } ok: [managed_node1] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [managed_node1] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml", "tasks/check_network_dns.yml" ] } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 12:24:18 -0400 (0:00:00.136) 0:01:32.560 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Monday 22 July 2024 12:24:18 -0400 (0:00:00.119) 0:01:32.680 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Monday 22 July 2024 12:24:18 -0400 (0:00:00.118) 0:01:32.798 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003259", "end": "2024-07-22 12:24:19.011500", "rc": 0, "start": "2024-07-22 12:24:19.008241" } STDOUT: bond0 bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 12:24:19 -0400 (0:00:00.356) 0:01:33.154 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bond0", "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 12:24:19 -0400 (0:00:00.075) 0:01:33.230 *********** ok: [managed_node1] => {} MSG: current_interfaces: [u'bond0', u'bonding_masters', u'eth0', u'lo', u'rpltstbr', u'team0'] TASK [Setup] ******************************************************************* Monday 22 July 2024 12:24:19 -0400 (0:00:00.070) 0:01:33.301 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/create_bridge_profile.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/activate_profile.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove+down_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:24:19 -0400 (0:00:00.210) 0:01:33.511 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:24:19 -0400 (0:00:00.123) 0:01:33.635 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:24:19 -0400 (0:00:00.136) 0:01:33.771 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:24:19 -0400 (0:00:00.090) 0:01:33.864 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:24:19 -0400 (0:00:00.069) 0:01:33.933 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:24:19 -0400 (0:00:00.068) 0:01:34.002 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:24:20 -0400 (0:00:00.896) 0:01:34.899 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:24:22 -0400 (0:00:01.309) 0:01:36.208 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.077) 0:01:36.285 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.069) 0:01:36.354 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.071) 0:01:36.426 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.069) 0:01:36.496 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.081) 0:01:36.577 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:24:22 -0400 (0:00:00.074) 0:01:36.652 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.124) 0:01:36.776 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.072) 0:01:36.849 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:22 -0400 (0:00:00.068) 0:01:36.917 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:24:22 -0400 (0:00:00.080) 0:01:36.998 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:24:23 -0400 (0:00:00.069) 0:01:37.068 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:24:23 -0400 (0:00:00.071) 0:01:37.139 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:24:23 -0400 (0:00:00.491) 0:01:37.630 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpvvnBGh" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:24:24 -0400 (0:00:00.427) 0:01:38.058 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:24:24 -0400 (0:00:00.558) 0:01:38.616 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:24:24 -0400 (0:00:00.071) 0:01:38.687 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:24:24 -0400 (0:00:00.078) 0:01:38.766 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:24:24 -0400 (0:00:00.074) 0:01:38.840 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:24:24 -0400 (0:00:00.072) 0:01:38.913 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Monday 22 July 2024 12:24:25 -0400 (0:00:00.333) 0:01:39.246 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add ifcfg-rh profile 'statebr'" ] } } TASK [Include network role] **************************************************** Monday 22 July 2024 12:24:25 -0400 (0:00:00.074) 0:01:39.320 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:24:25 -0400 (0:00:00.124) 0:01:39.445 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:24:25 -0400 (0:00:00.137) 0:01:39.583 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:24:25 -0400 (0:00:00.094) 0:01:39.677 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:24:25 -0400 (0:00:00.068) 0:01:39.745 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:24:25 -0400 (0:00:00.071) 0:01:39.816 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:24:26 -0400 (0:00:00.993) 0:01:40.810 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:24:27 -0400 (0:00:01.183) 0:01:41.994 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.076) 0:01:42.070 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.072) 0:01:42.142 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.070) 0:01:42.213 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.072) 0:01:42.285 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.081) 0:01:42.367 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:24:28 -0400 (0:00:00.075) 0:01:42.442 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.174) 0:01:42.617 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.070) 0:01:42.687 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:28 -0400 (0:00:00.071) 0:01:42.759 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:24:28 -0400 (0:00:00.077) 0:01:42.836 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:24:28 -0400 (0:00:00.071) 0:01:42.908 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:24:28 -0400 (0:00:00.070) 0:01:42.978 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:24:29 -0400 (0:00:00.475) 0:01:43.454 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpTZs655" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:24:29 -0400 (0:00:00.365) 0:01:43.820 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active) [003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err='' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:24:30 -0400 (0:00:00.773) 0:01:44.593 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:24:30 -0400 (0:00:00.072) 0:01:44.665 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:24:30 -0400 (0:00:00.074) 0:01:44.740 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)\n[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr (not-active)", "[003] #0, state:up persistent_state:present, 'statebr': call 'ifup statebr': rc=0, out='', err=''" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:24:30 -0400 (0:00:00.074) 0:01:44.814 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:24:30 -0400 (0:00:00.071) 0:01:44.885 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Monday 22 July 2024 12:24:31 -0400 (0:00:00.397) 0:01:45.283 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:24:31 -0400 (0:00:00.124) 0:01:45.407 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:24:31 -0400 (0:00:00.139) 0:01:45.547 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:24:31 -0400 (0:00:00.093) 0:01:45.641 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:24:31 -0400 (0:00:00.070) 0:01:45.712 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:24:31 -0400 (0:00:00.073) 0:01:45.785 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:24:32 -0400 (0:00:00.906) 0:01:46.692 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:24:33 -0400 (0:00:01.317) 0:01:48.009 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.078) 0:01:48.087 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.070) 0:01:48.158 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.071) 0:01:48.229 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.073) 0:01:48.303 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.078) 0:01:48.382 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:24:34 -0400 (0:00:00.077) 0:01:48.459 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.121) 0:01:48.581 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.072) 0:01:48.653 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:34 -0400 (0:00:00.072) 0:01:48.726 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:24:34 -0400 (0:00:00.077) 0:01:48.803 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:24:34 -0400 (0:00:00.072) 0:01:48.875 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:24:34 -0400 (0:00:00.068) 0:01:48.944 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:24:35 -0400 (0:00:00.471) 0:01:49.416 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmp9tLCgo" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:24:35 -0400 (0:00:00.435) 0:01:49.851 *********** changed: [managed_node1] => { "_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": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:24:36 -0400 (0:00:00.567) 0:01:50.419 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:24:36 -0400 (0:00:00.067) 0:01:50.486 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:24:36 -0400 (0:00:00.077) 0:01:50.564 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': down connection statebr skipped because not active", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-statebr'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:24:36 -0400 (0:00:00.074) 0:01:50.638 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:24:36 -0400 (0:00:00.071) 0:01:50.709 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Test] ******************************************************************** Monday 22 July 2024 12:24:37 -0400 (0:00:00.348) 0:01:51.058 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/remove+down_profile.yml for managed_node1 TASK [Include network role] **************************************************** Monday 22 July 2024 12:24:37 -0400 (0:00:00.129) 0:01:51.187 *********** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 12:24:37 -0400 (0:00:00.124) 0:01:51.311 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for managed_node1 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** Monday 22 July 2024 12:24:37 -0400 (0:00:00.138) 0:01:51.450 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check if system is ostree] *********** Monday 22 July 2024 12:24:37 -0400 (0:00:00.094) 0:01:51.544 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 12:24:37 -0400 (0:00:00.068) 0:01:51.613 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 12:24:37 -0400 (0:00:00.131) 0:01:51.744 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** Monday 22 July 2024 12:24:38 -0400 (0:00:00.893) 0:01:52.638 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** Monday 22 July 2024 12:24:39 -0400 (0:00:01.182) 0:01:53.820 *********** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Monday 22 July 2024 12:24:39 -0400 (0:00:00.074) 0:01:53.895 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Monday 22 July 2024 12:24:39 -0400 (0:00:00.072) 0:01:53.967 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:39 -0400 (0:00:00.069) 0:01:54.036 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:40 -0400 (0:00:00.075) 0:01:54.112 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:40 -0400 (0:00:00.077) 0:01:54.189 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 12:24:40 -0400 (0:00:00.130) 0:01:54.319 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** Monday 22 July 2024 12:24:40 -0400 (0:00:00.124) 0:01:54.444 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 12:24:40 -0400 (0:00:00.070) 0:01:54.515 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 12:24:40 -0400 (0:00:00.072) 0:01:54.588 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 12:24:40 -0400 (0:00:00.077) 0:01:54.665 *********** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Monday 22 July 2024 12:24:40 -0400 (0:00:00.071) 0:01:54.736 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 12:24:40 -0400 (0:00:00.073) 0:01:54.810 *********** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 12:24:41 -0400 (0:00:00.477) 0:01:55.287 *********** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-24044LKbvjn/tmpDxP0fY" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 12:24:41 -0400 (0:00:00.364) 0:01:55.652 *********** ok: [managed_node1] => { "_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": "initscripts" } }, "changed": false } STDERR: [003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist [004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 12:24:42 -0400 (0:00:00.538) 0:01:56.190 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 12:24:42 -0400 (0:00:00.067) 0:01:56.258 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 12:24:42 -0400 (0:00:00.074) 0:01:56.332 *********** ok: [managed_node1] => { "__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": "initscripts" } }, "changed": false, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist\n[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'statebr': ifcfg file '/etc/sysconfig/network-scripts/ifcfg-statebr' does not exist", "[004] #0, state:down persistent_state:absent, 'statebr': delete ifcfg-rh files for 'statebr' (no files present)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 12:24:42 -0400 (0:00:00.077) 0:01:56.409 *********** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 12:24:42 -0400 (0:00:00.068) 0:01:56.478 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Asserts] ***************************************************************** Monday 22 July 2024 12:24:42 -0400 (0:00:00.367) 0:01:56.846 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_absent.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_NetworkManager_NVR.yml for managed_node1 TASK [Include the task 'get_profile_stat.yml'] ********************************* Monday 22 July 2024 12:24:42 -0400 (0:00:00.141) 0:01:56.987 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml for managed_node1 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Monday 22 July 2024 12:24:43 -0400 (0:00:00.130) 0:01:57.118 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false, "lsr_net_profile_fingerprint": false }, "changed": false } TASK [Stat profile file] ******************************************************* Monday 22 July 2024 12:24:43 -0400 (0:00:00.071) 0:01:57.190 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 12:24:43 -0400 (0:00:00.333) 0:01:57.523 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 12:24:43 -0400 (0:00:00.070) 0:01:57.594 *********** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.026508", "end": "2024-07-22 12:24:43.820511", "rc": 1, "start": "2024-07-22 12:24:43.794003" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 12:24:43 -0400 (0:00:00.373) 0:01:57.967 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Monday 22 July 2024 12:24:43 -0400 (0:00:00.073) 0:01:58.040 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Monday 22 July 2024 12:24:44 -0400 (0:00:00.073) 0:01:58.114 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-statebr] **************************** Monday 22 July 2024 12:24:44 -0400 (0:00:00.072) 0:01:58.186 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-statebr] ************************* Monday 22 July 2024 12:24:44 -0400 (0:00:00.073) 0:01:58.260 *********** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that the profile is absent - 'statebr'] *************************** Monday 22 July 2024 12:24:44 -0400 (0:00:00.070) 0:01:58.330 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** Monday 22 July 2024 12:24:44 -0400 (0:00:00.078) 0:01:58.408 *********** [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. ok: [managed_node1] => { "changed": false, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:00.616058", "end": "2024-07-22 12:24:45.217421", "rc": 0, "start": "2024-07-22 12:24:44.601363" } STDOUT: NetworkManager-1.18.8-2.el7_9 TASK [Store NetworkManager version] ******************************************** Monday 22 July 2024 12:24:45 -0400 (0:00:00.954) 0:01:59.362 *********** ok: [managed_node1] => { "ansible_facts": { "networkmanager_nvr": "NetworkManager-1.18.8-2.el7_9" }, "changed": false } TASK [Show NetworkManager version] ********************************************* Monday 22 July 2024 12:24:45 -0400 (0:00:00.072) 0:01:59.435 *********** ok: [managed_node1] => { "networkmanager_nvr": "NetworkManager-1.18.8-2.el7_9" } TASK [Conditional asserts] ***************************************************** Monday 22 July 2024 12:24:45 -0400 (0:00:00.071) 0:01:59.507 *********** skipping: [managed_node1] => (item={u'what': u'tasks/assert_device_absent.yml', u'condition': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "condition": false, "what": "tasks/assert_device_absent.yml" }, "skip_reason": "Conditional result was False" } TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** Monday 22 July 2024 12:24:45 -0400 (0:00:00.081) 0:01:59.589 *********** ok: [managed_node1] => {} MSG: +++++ Success in test 'I will not get an error when I try to remove an absent profile' +++++ TASK [Cleanup] ***************************************************************** Monday 22 July 2024 12:24:45 -0400 (0:00:00.072) 0:01:59.661 *********** included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/cleanup_profile+device.yml for managed_node1 included: /var/ARTIFACTS/work-generalf9zchfe2/plans/general/tree/tmp.ogkfs9ZVSj/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml for managed_node1 TASK [Cleanup profile and device] ********************************************** Monday 22 July 2024 12:24:45 -0400 (0:00:00.146) 0:01:59.808 *********** ok: [managed_node1] => { "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.054683", "end": "2024-07-22 12:24:46.070020", "rc": 0, "start": "2024-07-22 12:24:46.015337" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. TASK [Check routes and DNS] **************************************************** Monday 22 July 2024 12:24:46 -0400 (0:00:00.405) 0:02:00.213 *********** ok: [managed_node1] => { "changed": false, "cmd": "set -euo pipefail\necho IP\nip a\necho IP ROUTE\nip route\necho IP -6 ROUTE\nip -6 route\necho RESOLV\nif [ -f /etc/resolv.conf ]; then\n cat /etc/resolv.conf\nelse\n echo NO /etc/resolv.conf\n ls -alrtF /etc/resolv.* || :\nfi\n", "delta": "0:00:00.006791", "end": "2024-07-22 12:24:46.414777", "rc": 0, "start": "2024-07-22 12:24:46.407986" } STDOUT: IP 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: mtu 9001 qdisc mq state UP group default qlen 1000 link/ether 0e:d1:5c:a8:50:8d brd ff:ff:ff:ff:ff:ff inet 10.31.42.215/22 brd 10.31.43.255 scope global noprefixroute dynamic eth0 valid_lft 2877sec preferred_lft 2877sec inet6 fe80::cd1:5cff:fea8:508d/64 scope link valid_lft forever preferred_lft forever 10: bond0: mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether fe:be:f5:64:d7:d4 brd ff:ff:ff:ff:ff:ff 18: team0: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 0e:7c:c5:5d:56:de brd ff:ff:ff:ff:ff:ff 60: rpltstbr: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 32:33:7b:4b:58:3e brd ff:ff:ff:ff:ff:ff inet 192.0.2.72/31 brd 192.0.2.73 scope global noprefixroute rpltstbr valid_lft forever preferred_lft forever inet6 fe80::3033:7bff:fe4b:583e/64 scope link valid_lft forever preferred_lft forever IP ROUTE default via 10.31.40.1 dev eth0 proto dhcp metric 100 10.31.40.0/22 dev eth0 proto kernel scope link src 10.31.42.215 metric 100 192.0.2.72/31 dev rpltstbr proto kernel scope link src 192.0.2.72 metric 425 IP -6 ROUTE unreachable ::/96 dev lo metric 1024 error -113 pref medium unreachable ::ffff:0.0.0.0/96 dev lo metric 1024 error -113 pref medium unreachable 2002:a00::/24 dev lo metric 1024 error -113 pref medium unreachable 2002:7f00::/24 dev lo metric 1024 error -113 pref medium unreachable 2002:a9fe::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:ac10::/28 dev lo metric 1024 error -113 pref medium unreachable 2002:c0a8::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:e000::/19 dev lo metric 1024 error -113 pref medium unreachable 3ffe:ffff::/32 dev lo metric 1024 error -113 pref medium fe80::/64 dev eth0 proto kernel metric 256 mtu 9001 pref medium fe80::/64 dev rpltstbr proto kernel metric 256 pref medium RESOLV # Generated by NetworkManager search us-east-1.aws.redhat.com nameserver 10.29.169.13 nameserver 10.29.170.12 nameserver 10.2.32.1 TASK [Verify DNS and network connectivity] ************************************* Monday 22 July 2024 12:24:46 -0400 (0:00:00.349) 0:02:00.563 *********** ok: [managed_node1] => { "changed": false, "cmd": "set -euo pipefail\necho CHECK DNS AND CONNECTIVITY\nfor host in mirrors.fedoraproject.org mirrors.centos.org; do\n if ! getent hosts \"$host\"; then\n echo FAILED to lookup host \"$host\"\n exit 1\n fi\n if ! curl -o /dev/null https://\"$host\"; then\n echo FAILED to contact host \"$host\"\n exit 1\n fi\ndone\n", "delta": "0:00:00.393756", "end": "2024-07-22 12:24:47.180852", "rc": 0, "start": "2024-07-22 12:24:46.787096" } STDOUT: CHECK DNS AND CONNECTIVITY 2600:1f14:fad:5c02:7c8a:72d0:1c58:c189 wildcard.fedoraproject.org mirrors.fedoraproject.org 2600:2701:4000:5211:dead:beef:fe:fed3 wildcard.fedoraproject.org mirrors.fedoraproject.org 2605:bc80:3010:600:dead:beef:cafe:fed9 wildcard.fedoraproject.org mirrors.fedoraproject.org 2620:52:3:1:dead:beef:cafe:fed6 wildcard.fedoraproject.org mirrors.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 wildcard.fedoraproject.org mirrors.fedoraproject.org 2600:2701:4000:5211:dead:beef:fe:fed3 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2600:1f14:fad:5c02:7c8a:72d0:1c58:c189 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2605:bc80:3010:600:dead:beef:cafe:fed9 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2620:52:3:1:dead:beef:cafe:fed6 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org STDERR: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 305 100 305 0 0 1399 0 --:--:-- --:--:-- --:--:-- 1405 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 291 100 291 0 0 1877 0 --:--:-- --:--:-- --:--:-- 1889 PLAY RECAP ********************************************************************* managed_node1 : ok=337 changed=13 unreachable=0 failed=0 skipped=270 rescued=0 ignored=10 Monday 22 July 2024 12:24:47 -0400 (0:00:00.719) 0:02:01.283 *********** =============================================================================== fedora.linux_system_roles.network : Check which packages are installed --- 1.45s Gather current interface info ------------------------------------------- 1.34s fedora.linux_system_roles.network : Check which packages are installed --- 1.32s fedora.linux_system_roles.network : Check which packages are installed --- 1.31s fedora.linux_system_roles.network : Check which packages are installed --- 1.30s fedora.linux_system_roles.network : Check which packages are installed --- 1.30s fedora.linux_system_roles.network : Check which packages are installed --- 1.22s fedora.linux_system_roles.network : Check which packages are installed --- 1.20s fedora.linux_system_roles.network : Check which packages are installed --- 1.20s fedora.linux_system_roles.network : Check which packages are installed --- 1.18s fedora.linux_system_roles.network : Check which packages are installed --- 1.18s fedora.linux_system_roles.network : Check which packages are installed --- 1.18s fedora.linux_system_roles.network : Check which packages are installed --- 1.18s fedora.linux_system_roles.network : Check which packages are installed --- 1.18s fedora.linux_system_roles.network : Check which packages are installed --- 1.17s fedora.linux_system_roles.network : Check which packages are installed --- 1.17s fedora.linux_system_roles.network : Check which services are running ---- 0.99s fedora.linux_system_roles.network : Check which services are running ---- 0.99s fedora.linux_system_roles.network : Check which services are running ---- 0.99s Gathering Facts --------------------------------------------------------- 0.97s