[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. No config file found; using defaults running playbook inside collection fedora.linux_system_roles PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with nm as provider] ***** TASK [Gathering Facts] ********************************************************* Monday 22 July 2024 11:54:56 -0400 (0:00:00.008) 0:00:00.008 *********** ok: [managed_node1] TASK [Include the task 'el_repo_setup.yml'] ************************************ Monday 22 July 2024 11:54:57 -0400 (0:00:01.045) 0:00:01.053 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:54:57 -0400 (0:00:00.017) 0:00:01.071 *********** ok: [managed_node1] TASK [Check if system is ostree] *********************************************** Monday 22 July 2024 11:54:57 -0400 (0:00:00.501) 0:00:01.572 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** Monday 22 July 2024 11:54:58 -0400 (0:00:00.428) 0:00:02.001 *********** ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** Monday 22 July 2024 11:54:58 -0400 (0:00:00.022) 0:00:02.023 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == '6'", "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** Monday 22 July 2024 11:54:58 -0400 (0:00:00.013) 0:00:02.037 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 8] *********************************************************** Monday 22 July 2024 11:54:58 -0400 (0:00:00.036) 0:00:02.073 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Install yum-utils package] *********************************************** Monday 22 July 2024 11:54:58 -0400 (0:00:00.437) 0:00:02.511 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == '7'", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Monday 22 July 2024 11:54:58 -0400 (0:00:00.014) 0:00:02.525 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == '7'", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Monday 22 July 2024 11:54:58 -0400 (0:00:00.016) 0:00:02.542 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.232836", "end": "2024-07-22 11:54:59.345080", "rc": 0, "start": "2024-07-22 11:54:59.112244" } TASK [Enable EPEL 6] *********************************************************** Monday 22 July 2024 11:54:59 -0400 (0:00:00.576) 0:00:03.119 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == '6'", "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Monday 22 July 2024 11:54:59 -0400 (0:00:00.013) 0:00:03.132 *********** ok: [managed_node1] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [Play for testing auto_gateway setting] *********************************** TASK [Gathering Facts] ********************************************************* Monday 22 July 2024 11:54:59 -0400 (0:00:00.028) 0:00:03.161 *********** ok: [managed_node1] TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 11:55:00 -0400 (0:00:00.750) 0:00:03.911 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:00 -0400 (0:00:00.038) 0:00:03.950 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:00 -0400 (0:00:00.018) 0:00:03.968 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003181", "end": "2024-07-22 11:55:00.533094", "rc": 0, "start": "2024-07-22 11:55:00.529913" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:55:00 -0400 (0:00:00.340) 0:00:04.309 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:55:00 -0400 (0:00:00.017) 0:00:04.326 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:55:00 -0400 (0:00:00.018) 0:00:04.345 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** Monday 22 July 2024 11:55:00 -0400 (0:00:00.044) 0:00:04.389 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 22 July 2024 11:55:00 -0400 (0:00:00.016) 0:00:04.405 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 11:55:00 -0400 (0:00:00.013) 0:00:04.419 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:00 -0400 (0:00:00.020) 0:00:04.440 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:00 -0400 (0:00:00.020) 0:00:04.461 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003158", "end": "2024-07-22 11:55:01.021937", "rc": 0, "start": "2024-07-22 11:55:01.018779" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:55:01 -0400 (0:00:00.335) 0:00:04.796 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:55:01 -0400 (0:00:00.018) 0:00:04.815 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:55:01 -0400 (0:00:00.018) 0:00:04.834 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:55:04 -0400 (0:00:02.968) 0:00:07.802 *********** ok: [managed_node1] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.010466", "end": "2024-07-22 11:55:04.375942", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2024-07-22 11:55:04.365476" } ok: [managed_node1] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.003725", "end": "2024-07-22 11:55:04.739887", "item": "ip link set peerveth0 up", "rc": 0, "start": "2024-07-22 11:55:04.736162" } ok: [managed_node1] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.003771", "end": "2024-07-22 11:55:05.066156", "item": "ip link set veth0 up", "rc": 0, "start": "2024-07-22 11:55:05.062385" } TASK [Set up veth as managed by NetworkManager] ******************************** Monday 22 July 2024 11:55:05 -0400 (0:00:01.035) 0:00:08.838 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.021309", "end": "2024-07-22 11:55:05.421530", "rc": 0, "start": "2024-07-22 11:55:05.400221" } TASK [Delete veth interface veth0] ********************************************* Monday 22 July 2024 11:55:05 -0400 (0:00:00.355) 0:00:09.193 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'veth' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:05 -0400 (0:00:00.020) 0:00:09.214 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:05 -0400 (0:00:00.016) 0:00:09.230 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 22 July 2024 11:55:05 -0400 (0:00:00.015) 0:00:09.246 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 22 July 2024 11:55:05 -0400 (0:00:00.016) 0:00:09.262 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Include the task 'assert_device_present.yml'] **************************** Monday 22 July 2024 11:55:05 -0400 (0:00:00.014) 0:00:09.277 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml for managed_node1 TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 11:55:05 -0400 (0:00:00.043) 0:00:09.321 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface veth0] ******************************************** Monday 22 July 2024 11:55:05 -0400 (0:00:00.019) 0:00:09.341 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663704.3688874, "block_size": 4096, "blocks": 0, "ctime": 1721663704.3688874, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26027, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1721663704.3688874, "nlink": 1, "path": "/sys/class/net/veth0", "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 - 'veth0'] ************************** Monday 22 July 2024 11:55:05 -0400 (0:00:00.348) 0:00:09.689 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ Monday 22 July 2024 11:55:05 -0400 (0:00:00.018) 0:00:09.707 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 11:55:06 -0400 (0:00:00.018) 0:00:09.726 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:06 -0400 (0:00:00.026) 0:00:09.752 *********** 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 11:55:06 -0400 (0:00:00.029) 0:00:09.781 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 11:55:06 -0400 (0:00:00.021) 0:00:09.803 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 11:55:06 -0400 (0:00:00.021) 0:00:09.825 *********** 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 11:55:07 -0400 (0:00:01.717) 0:00:11.543 *********** 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 11:55:09 -0400 (0:00:01.707) 0:00:13.250 *********** ok: [managed_node1] => {} MSG: Using network provider: nm 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 11:55:09 -0400 (0:00:00.036) 0:00:13.286 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:09 -0400 (0:00:00.035) 0:00:13.322 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:09 -0400 (0:00:00.039) 0:00:13.361 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "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 11:55:09 -0400 (0:00:00.056) 0:00:13.418 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "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 11:55:09 -0400 (0:00:00.044) 0:00:13.463 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 11:55:09 -0400 (0:00:00.138) 0:00:13.601 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "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 11:55:09 -0400 (0:00:00.086) 0:00:13.687 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 11:55:09 -0400 (0:00:00.036) 0:00:13.724 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 11:55:10 -0400 (0:00:00.039) 0:00:13.763 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 11:55:10 -0400 (0:00:00.057) 0:00:13.821 *********** 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 : Enable and start wpa_supplicant] ***** Monday 22 July 2024 11:55:10 -0400 (0:00:00.775) 0:00:14.597 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 11:55:10 -0400 (0:00:00.057) 0:00:14.654 *********** 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 : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 11:55:10 -0400 (0:00:00.033) 0:00:14.688 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 11:55:10 -0400 (0:00:00.033) 0:00:14.721 *********** changed: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1", "route_metric4": 65535 }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 11:55:11 -0400 (0:00:00.739) 0:00:15.461 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 11:55:11 -0400 (0:00:00.039) 0:00:15.500 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 11:55:11 -0400 (0:00:00.035) 0:00:15.536 *********** ok: [managed_node1] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": true, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1", "route_metric4": 65535 }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 83b126f6-c8f9-4b60-9794-2308d2bec22b (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 11:55:11 -0400 (0:00:00.039) 0:00:15.575 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:55:11 -0400 (0:00:00.036) 0:00:15.611 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** Monday 22 July 2024 11:55:12 -0400 (0:00:00.466) 0:00:16.078 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml for managed_node1 TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 11:55:12 -0400 (0:00:00.123) 0:00:16.201 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface veth0] ******************************************** Monday 22 July 2024 11:55:12 -0400 (0:00:00.052) 0:00:16.253 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663704.3688874, "block_size": 4096, "blocks": 0, "ctime": 1721663704.3688874, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26027, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1721663704.3688874, "nlink": 1, "path": "/sys/class/net/veth0", "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 - 'veth0'] ************************** Monday 22 July 2024 11:55:12 -0400 (0:00:00.360) 0:00:16.613 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** Monday 22 July 2024 11:55:12 -0400 (0:00:00.037) 0:00:16.651 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:13 -0400 (0:00:00.079) 0:00:16.730 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:13 -0400 (0:00:00.058) 0:00:16.788 *********** 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 11:55:13 -0400 (0:00:00.036) 0:00:16.825 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663711.642885, "block_size": 4096, "blocks": 8, "ctime": 1721663711.6068842, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2301881, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721663711.6068842, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 396, "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 11:55:13 -0400 (0:00:00.353) 0:00:17.179 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 11:55:13 -0400 (0:00:00.036) 0:00:17.215 *********** ok: [managed_node1] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.018279", "end": "2024-07-22 11:55:13.804887", "rc": 0, "start": "2024-07-22 11:55:13.786608" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 11:55:13 -0400 (0:00:00.377) 0:00:17.593 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Monday 22 July 2024 11:55:13 -0400 (0:00:00.037) 0:00:17.631 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Monday 22 July 2024 11:55:13 -0400 (0:00:00.036) 0:00:17.667 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** Monday 22 July 2024 11:55:14 -0400 (0:00:00.081) 0:00:17.748 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** Monday 22 July 2024 11:55:14 -0400 (0:00:00.035) 0:00:17.783 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'veth0'] **************************** Monday 22 July 2024 11:55:14 -0400 (0:00:00.034) 0:00:17.817 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** Monday 22 July 2024 11:55:14 -0400 (0:00:00.039) 0:00:17.857 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** Monday 22 July 2024 11:55:14 -0400 (0:00:00.036) 0:00:17.894 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Monday 22 July 2024 11:55:14 -0400 (0:00:00.038) 0:00:17.933 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003620", "end": "2024-07-22 11:55:14.503298", "rc": 0, "start": "2024-07-22 11:55:14.499678" } STDOUT: default via 10.31.12.1 dev eth0 proto dhcp src 10.31.15.26 metric 100 default via 203.0.113.1 dev veth0 proto static metric 65535 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.15.26 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 65535 TASK [Assert default ipv4 route is present] ************************************ Monday 22 July 2024 11:55:14 -0400 (0:00:00.358) 0:00:18.291 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: "default via 203.0.113.1 dev {{ interface }}" in ipv4_routes.stdout ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Monday 22 July 2024 11:55:14 -0400 (0:00:00.038) 0:00:18.330 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003658", "end": "2024-07-22 11:55:14.900969", "rc": 0, "start": "2024-07-22 11:55:14.897311" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev veth0 proto kernel metric 1024 pref medium default via 2001:db8::1 dev veth0 proto static metric 101 pref medium TASK [Assert default ipv6 route is present] ************************************ Monday 22 July 2024 11:55:14 -0400 (0:00:00.360) 0:00:18.691 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: "default via 2001:db8::1 dev {{ interface }}" in ipv6_route.stdout ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Monday 22 July 2024 11:55:15 -0400 (0:00:00.035) 0:00:18.726 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 11:55:15 -0400 (0:00:00.035) 0:00:18.762 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:15 -0400 (0:00:00.057) 0:00:18.820 *********** 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 11:55:15 -0400 (0:00:00.053) 0:00:18.874 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 11:55:15 -0400 (0:00:00.036) 0:00:18.910 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 11:55:15 -0400 (0:00:00.038) 0:00:18.948 *********** 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 11:55:16 -0400 (0:00:01.655) 0:00:20.604 *********** 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 11:55:18 -0400 (0:00:01.557) 0:00:22.161 *********** ok: [managed_node1] => {} MSG: Using network provider: nm 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 11:55:18 -0400 (0:00:00.034) 0:00:22.196 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:18 -0400 (0:00:00.040) 0:00:22.236 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:18 -0400 (0:00:00.036) 0:00:22.273 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "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 11:55:18 -0400 (0:00:00.056) 0:00:22.330 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "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 11:55:18 -0400 (0:00:00.048) 0:00:22.378 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 11:55:18 -0400 (0:00:00.056) 0:00:22.435 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "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 11:55:18 -0400 (0:00:00.081) 0:00:22.517 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 11:55:18 -0400 (0:00:00.039) 0:00:22.556 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 11:55:18 -0400 (0:00:00.039) 0:00:22.596 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 11:55:18 -0400 (0:00:00.054) 0:00:22.650 *********** 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 : Enable and start wpa_supplicant] ***** Monday 22 July 2024 11:55:19 -0400 (0:00:00.556) 0:00:23.207 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 11:55:19 -0400 (0:00:00.055) 0:00:23.262 *********** 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 : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 11:55:19 -0400 (0:00:00.030) 0:00:23.292 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 11:55:19 -0400 (0:00:00.082) 0:00:23.375 *********** changed: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 11:55:20 -0400 (0:00:00.566) 0:00:23.942 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 11:55:20 -0400 (0:00:00.037) 0:00:23.980 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 11:55:20 -0400 (0:00:00.036) 0:00:24.016 *********** ok: [managed_node1] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 11:55:20 -0400 (0:00:00.039) 0:00:24.055 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:55:20 -0400 (0:00:00.038) 0:00:24.094 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:55:20 -0400 (0:00:00.367) 0:00:24.461 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** Monday 22 July 2024 11:55:20 -0400 (0:00:00.081) 0:00:24.543 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 22 July 2024 11:55:20 -0400 (0:00:00.034) 0:00:24.578 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 11:55:20 -0400 (0:00:00.030) 0:00:24.609 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:20 -0400 (0:00:00.052) 0:00:24.662 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:20 -0400 (0:00:00.052) 0:00:24.714 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003086", "end": "2024-07-22 11:55:21.281196", "rc": 0, "start": "2024-07-22 11:55:21.278110" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:55:21 -0400 (0:00:00.405) 0:00:25.120 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:55:21 -0400 (0:00:00.034) 0:00:25.154 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:55:21 -0400 (0:00:00.037) 0:00:25.191 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:55:24 -0400 (0:00:02.683) 0:00:27.875 *********** skipping: [managed_node1] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => { "changed": false } MSG: All items skipped TASK [Set up veth as managed by NetworkManager] ******************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.045) 0:00:27.921 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'veth' and state == 'present'", "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Monday 22 July 2024 11:55:24 -0400 (0:00:00.032) 0:00:27.954 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.009709", "end": "2024-07-22 11:55:24.529085", "rc": 0, "start": "2024-07-22 11:55:24.519376" } TASK [Create dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.365) 0:00:28.319 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.033) 0:00:28.352 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.033) 0:00:28.386 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.034) 0:00:28.420 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** Monday 22 July 2024 11:55:24 -0400 (0:00:00.032) 0:00:28.452 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.037) 0:00:28.490 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.084) 0:00:28.574 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 22 July 2024 11:55:24 -0400 (0:00:00.033) 0:00:28.608 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 11:55:24 -0400 (0:00:00.034) 0:00:28.643 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:25 -0400 (0:00:00.104) 0:00:28.747 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:25 -0400 (0:00:00.054) 0:00:28.801 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003206", "end": "2024-07-22 11:55:25.373654", "rc": 0, "start": "2024-07-22 11:55:25.370448" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:55:25 -0400 (0:00:00.366) 0:00:29.168 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:55:25 -0400 (0:00:00.037) 0:00:29.206 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:55:25 -0400 (0:00:00.037) 0:00:29.244 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:55:28 -0400 (0:00:02.678) 0:00:31.922 *********** ok: [managed_node1] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.007157", "end": "2024-07-22 11:55:28.500141", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2024-07-22 11:55:28.492984" } ok: [managed_node1] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.003877", "end": "2024-07-22 11:55:28.866241", "item": "ip link set peerveth0 up", "rc": 0, "start": "2024-07-22 11:55:28.862364" } ok: [managed_node1] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.003728", "end": "2024-07-22 11:55:29.187358", "item": "ip link set veth0 up", "rc": 0, "start": "2024-07-22 11:55:29.183630" } TASK [Set up veth as managed by NetworkManager] ******************************** Monday 22 July 2024 11:55:29 -0400 (0:00:01.057) 0:00:32.979 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.019846", "end": "2024-07-22 11:55:29.567945", "rc": 0, "start": "2024-07-22 11:55:29.548099" } TASK [Delete veth interface veth0] ********************************************* Monday 22 July 2024 11:55:29 -0400 (0:00:00.379) 0:00:33.359 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'veth' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:29 -0400 (0:00:00.034) 0:00:33.394 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:29 -0400 (0:00:00.033) 0:00:33.427 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 22 July 2024 11:55:29 -0400 (0:00:00.034) 0:00:33.462 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 22 July 2024 11:55:29 -0400 (0:00:00.033) 0:00:33.495 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 11:55:29 -0400 (0:00:00.033) 0:00:33.528 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:29 -0400 (0:00:00.059) 0:00:33.588 *********** 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 11:55:29 -0400 (0:00:00.052) 0:00:33.640 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 11:55:30 -0400 (0:00:00.086) 0:00:33.727 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 11:55:30 -0400 (0:00:00.038) 0:00:33.766 *********** 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 11:55:31 -0400 (0:00:01.652) 0:00:35.418 *********** 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 11:55:33 -0400 (0:00:01.450) 0:00:36.868 *********** ok: [managed_node1] => {} MSG: Using network provider: nm 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 11:55:33 -0400 (0:00:00.036) 0:00:36.905 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:33 -0400 (0:00:00.039) 0:00:36.944 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:33 -0400 (0:00:00.041) 0:00:36.986 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "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 11:55:33 -0400 (0:00:00.057) 0:00:37.043 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "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 11:55:33 -0400 (0:00:00.048) 0:00:37.092 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 11:55:33 -0400 (0:00:00.057) 0:00:37.150 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "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 11:55:33 -0400 (0:00:00.084) 0:00:37.234 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 11:55:33 -0400 (0:00:00.040) 0:00:37.274 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 11:55:33 -0400 (0:00:00.040) 0:00:37.315 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 11:55:33 -0400 (0:00:00.056) 0:00:37.371 *********** 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 : Enable and start wpa_supplicant] ***** Monday 22 July 2024 11:55:34 -0400 (0:00:00.665) 0:00:38.037 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 11:55:34 -0400 (0:00:00.057) 0:00:38.094 *********** 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 : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 11:55:34 -0400 (0:00:00.035) 0:00:38.129 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 11:55:34 -0400 (0:00:00.032) 0:00:38.162 *********** changed: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 11:55:35 -0400 (0:00:00.576) 0:00:38.738 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 11:55:35 -0400 (0:00:00.037) 0:00:38.776 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 11:55:35 -0400 (0:00:00.039) 0:00:38.815 *********** ok: [managed_node1] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/64", "203.0.113.2/24" ], "auto6": false, "auto_gateway": false, "dhcp4": false, "gateway4": "203.0.113.1", "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, 7bc6d772-c116-42ad-85bb-c032bc842e08 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 11:55:35 -0400 (0:00:00.036) 0:00:38.852 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:55:35 -0400 (0:00:00.036) 0:00:38.888 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** Monday 22 July 2024 11:55:35 -0400 (0:00:00.372) 0:00:39.261 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml for managed_node1 TASK [Include the task 'get_interface_stat.yml'] ******************************* Monday 22 July 2024 11:55:35 -0400 (0:00:00.080) 0:00:39.342 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface veth0] ******************************************** Monday 22 July 2024 11:55:35 -0400 (0:00:00.053) 0:00:39.396 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663728.49642, "block_size": 4096, "blocks": 0, "ctime": 1721663728.49642, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26613, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1721663728.49642, "nlink": 1, "path": "/sys/class/net/veth0", "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 - 'veth0'] ************************** Monday 22 July 2024 11:55:36 -0400 (0:00:00.355) 0:00:39.751 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** Monday 22 July 2024 11:55:36 -0400 (0:00:00.084) 0:00:39.835 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:36 -0400 (0:00:00.088) 0:00:39.924 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:36 -0400 (0:00:00.057) 0:00:39.981 *********** 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 11:55:36 -0400 (0:00:00.035) 0:00:40.017 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663734.9173443, "block_size": 4096, "blocks": 8, "ctime": 1721663734.8843436, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2301881, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721663734.8843436, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 323, "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 11:55:36 -0400 (0:00:00.354) 0:00:40.371 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 11:55:36 -0400 (0:00:00.036) 0:00:40.408 *********** ok: [managed_node1] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.018007", "end": "2024-07-22 11:55:36.991754", "rc": 0, "start": "2024-07-22 11:55:36.973747" } STDOUT: veth0 /etc/sysconfig/network-scripts/ifcfg-veth0 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 11:55:37 -0400 (0:00:00.373) 0:00:40.781 *********** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true, "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Monday 22 July 2024 11:55:37 -0400 (0:00:00.039) 0:00:40.821 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Monday 22 July 2024 11:55:37 -0400 (0:00:00.034) 0:00:40.855 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** Monday 22 July 2024 11:55:37 -0400 (0:00:00.035) 0:00:40.891 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** Monday 22 July 2024 11:55:37 -0400 (0:00:00.034) 0:00:40.925 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc != 0", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'veth0'] **************************** Monday 22 July 2024 11:55:37 -0400 (0:00:00.036) 0:00:40.962 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** Monday 22 July 2024 11:55:37 -0400 (0:00:00.039) 0:00:41.001 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** Monday 22 July 2024 11:55:37 -0400 (0:00:00.037) 0:00:41.039 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Monday 22 July 2024 11:55:37 -0400 (0:00:00.090) 0:00:41.129 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003545", "end": "2024-07-22 11:55:37.701015", "rc": 0, "start": "2024-07-22 11:55:37.697470" } STDOUT: default via 10.31.12.1 dev eth0 proto dhcp src 10.31.15.26 metric 100 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.15.26 metric 100 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 metric 101 TASK [Assert default ipv4 route is absent] ************************************* Monday 22 July 2024 11:55:37 -0400 (0:00:00.356) 0:00:41.486 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: "default via 203.0.113.1 dev {{ interface }}" not in ipv4_routes.stdout ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Monday 22 July 2024 11:55:37 -0400 (0:00:00.037) 0:00:41.523 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003604", "end": "2024-07-22 11:55:38.091825", "rc": 0, "start": "2024-07-22 11:55:38.088221" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 101 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev peerveth0 proto kernel metric 256 pref medium fe80::/64 dev veth0 proto kernel metric 1024 pref medium TASK [Assert default ipv6 route is absent] ************************************* Monday 22 July 2024 11:55:38 -0400 (0:00:00.357) 0:00:41.881 *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: "default via 2001:db8::1 dev {{ interface }}" not in ipv6_route.stdout ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Monday 22 July 2024 11:55:38 -0400 (0:00:00.038) 0:00:41.920 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 11:55:38 -0400 (0:00:00.035) 0:00:41.955 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:38 -0400 (0:00:00.059) 0:00:42.015 *********** 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 11:55:38 -0400 (0:00:00.055) 0:00:42.071 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** Monday 22 July 2024 11:55:38 -0400 (0:00:00.040) 0:00:42.112 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not __network_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** Monday 22 July 2024 11:55:38 -0400 (0:00:00.038) 0:00:42.150 *********** 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 11:55:40 -0400 (0:00:01.693) 0:00:43.844 *********** 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 11:55:41 -0400 (0:00:01.473) 0:00:45.317 *********** ok: [managed_node1] => {} MSG: Using network provider: nm 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 11:55:41 -0400 (0:00:00.036) 0:00:45.354 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:41 -0400 (0:00:00.099) 0:00:45.453 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "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 11:55:41 -0400 (0:00:00.037) 0:00:45.490 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "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 11:55:41 -0400 (0:00:00.063) 0:00:45.553 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version | int < 8", "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 11:55:41 -0400 (0:00:00.048) 0:00:45.602 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** Monday 22 July 2024 11:55:41 -0400 (0:00:00.056) 0:00:45.659 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "not network_packages is subset(ansible_facts.packages.keys())", "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 11:55:42 -0400 (0:00:00.092) 0:00:45.751 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Monday 22 July 2024 11:55:42 -0400 (0:00:00.038) 0:00:45.790 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Monday 22 July 2024 11:55:42 -0400 (0:00:00.038) 0:00:45.828 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wireless_connections_defined or __network_team_connections_defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** Monday 22 July 2024 11:55:42 -0400 (0:00:00.060) 0:00:45.889 *********** 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 : Enable and start wpa_supplicant] ***** Monday 22 July 2024 11:55:42 -0400 (0:00:00.571) 0:00:46.461 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "__network_wpa_supplicant_required", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Monday 22 July 2024 11:55:42 -0400 (0:00:00.054) 0:00:46.515 *********** 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 : Ensure initscripts network file dependency is present] *** Monday 22 July 2024 11:55:42 -0400 (0:00:00.034) 0:00:46.550 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_provider == \"initscripts\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Monday 22 July 2024 11:55:42 -0400 (0:00:00.035) 0:00:46.585 *********** changed: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 11:55:43 -0400 (0:00:00.587) 0:00:47.173 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "network_state is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Monday 22 July 2024 11:55:43 -0400 (0:00:00.040) 0:00:47.213 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 11:55:43 -0400 (0:00:00.039) 0:00:47.252 *********** ok: [managed_node1] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 11:55:43 -0400 (0:00:00.036) 0:00:47.289 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:55:43 -0400 (0:00:00.099) 0:00:47.388 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:55:44 -0400 (0:00:00.377) 0:00:47.765 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** Monday 22 July 2024 11:55:44 -0400 (0:00:00.089) 0:00:47.855 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "state not in [\"present\", \"absent\"]", "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Monday 22 July 2024 11:55:44 -0400 (0:00:00.032) 0:00:47.887 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type not in [\"dummy\", \"tap\", \"veth\"]", "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 11:55:44 -0400 (0:00:00.033) 0:00:47.921 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:44 -0400 (0:00:00.054) 0:00:47.976 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/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 11:55:44 -0400 (0:00:00.052) 0:00:48.029 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003264", "end": "2024-07-22 11:55:44.604699", "rc": 0, "start": "2024-07-22 11:55:44.601435" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:55:44 -0400 (0:00:00.366) 0:00:48.395 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:55:44 -0400 (0:00:00.036) 0:00:48.431 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:55:44 -0400 (0:00:00.037) 0:00:48.468 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:55:47 -0400 (0:00:02.722) 0:00:51.191 *********** skipping: [managed_node1] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "false_condition": "type == 'veth' and state == 'present' and interface not in current_interfaces", "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => { "changed": false } MSG: All items skipped TASK [Set up veth as managed by NetworkManager] ******************************** Monday 22 July 2024 11:55:47 -0400 (0:00:00.044) 0:00:51.236 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'veth' and state == 'present'", "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Monday 22 July 2024 11:55:47 -0400 (0:00:00.086) 0:00:51.323 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.009571", "end": "2024-07-22 11:55:47.907368", "rc": 0, "start": "2024-07-22 11:55:47.897797" } TASK [Create dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:47 -0400 (0:00:00.376) 0:00:51.699 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Monday 22 July 2024 11:55:48 -0400 (0:00:00.034) 0:00:51.733 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'dummy' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Monday 22 July 2024 11:55:48 -0400 (0:00:00.035) 0:00:51.769 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'present' and interface not in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Monday 22 July 2024 11:55:48 -0400 (0:00:00.036) 0:00:51.805 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Verify network state restored to default] ******************************** Monday 22 July 2024 11:55:48 -0400 (0:00:00.031) 0:00:51.837 *********** included: /var/ARTIFACTS/work-generaly3i9cwcr/plans/general/tree/tmp.lGaAsXqXql/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml for managed_node1 TASK [Check routes and DNS] **************************************************** Monday 22 July 2024 11:55:48 -0400 (0:00:00.090) 0:00:51.927 *********** 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.008355", "end": "2024-07-22 11:55:48.504937", "rc": 0, "start": "2024-07-22 11:55:48.496582" } 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 0a:ff:c7:69:6a:a1 brd ff:ff:ff:ff:ff:ff inet 10.31.15.26/22 brd 10.31.15.255 scope global dynamic noprefixroute eth0 valid_lft 3389sec preferred_lft 3389sec inet6 fe80::8ff:c7ff:fe69:6aa1/64 scope link valid_lft forever preferred_lft forever IP ROUTE default via 10.31.12.1 dev eth0 proto dhcp src 10.31.15.26 metric 100 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.15.26 metric 100 IP -6 ROUTE ::1 dev lo proto kernel metric 256 pref medium fe80::/64 dev eth0 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 11:55:48 -0400 (0:00:00.367) 0:00:52.294 *********** 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.076984", "end": "2024-07-22 11:55:48.955150", "rc": 0, "start": "2024-07-22 11:55:48.878166" } STDOUT: CHECK DNS AND CONNECTIVITY 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: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 2604:1580:fe00:0:dead:beef:cafe:fed1 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 2600:2701:4000:5211:dead:beef:fe:fed3 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 2605:bc80:3010:600:dead:beef:cafe:fed9 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 11296 0 --:--:-- --:--:-- --:--:-- 11296 % 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 10777 0 --:--:-- --:--:-- --:--:-- 11192 PLAY RECAP ********************************************************************* managed_node1 : ok=132 changed=4 unreachable=0 failed=0 skipped=110 rescued=0 ignored=0 Monday 22 July 2024 11:55:49 -0400 (0:00:00.505) 0:00:52.800 *********** =============================================================================== Install iproute --------------------------------------------------------- 2.97s Install iproute --------------------------------------------------------- 2.72s Install iproute --------------------------------------------------------- 2.68s Install iproute --------------------------------------------------------- 2.68s fedora.linux_system_roles.network : Check which services are running ---- 1.72s fedora.linux_system_roles.network : Check which packages are installed --- 1.71s fedora.linux_system_roles.network : Check which services are running ---- 1.69s fedora.linux_system_roles.network : Check which services are running ---- 1.66s fedora.linux_system_roles.network : Check which services are running ---- 1.65s fedora.linux_system_roles.network : Check which packages are installed --- 1.56s fedora.linux_system_roles.network : Check which packages are installed --- 1.47s fedora.linux_system_roles.network : Check which packages are installed --- 1.45s Create veth interface veth0 --------------------------------------------- 1.06s Gathering Facts --------------------------------------------------------- 1.05s Create veth interface veth0 --------------------------------------------- 1.04s fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.78s Gathering Facts --------------------------------------------------------- 0.75s fedora.linux_system_roles.network : Configure networking connection profiles --- 0.74s fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.67s fedora.linux_system_roles.network : Configure networking connection profiles --- 0.59s