[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_ipv6.yml' with initscripts as provider] **** TASK [Gathering Facts] ********************************************************* Thursday 25 July 2024 07:24:22 -0400 (0:00:00.009) 0:00:00.009 ********* ok: [managed_node1] TASK [Include the task 'el_repo_setup.yml'] ************************************ Thursday 25 July 2024 07:24:23 -0400 (0:00:01.129) 0:00:01.138 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/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] *** Thursday 25 July 2024 07:24:23 -0400 (0:00:00.022) 0:00:01.161 ********* ok: [managed_node1] TASK [Check if system is ostree] *********************************************** Thursday 25 July 2024 07:24:24 -0400 (0:00:00.524) 0:00:01.686 ********* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** Thursday 25 July 2024 07:24:24 -0400 (0:00:00.474) 0:00:02.160 ********* ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** Thursday 25 July 2024 07:24:24 -0400 (0:00:00.026) 0:00:02.186 ********* 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'] ************************************** Thursday 25 July 2024 07:24:24 -0400 (0:00:00.016) 0:00:02.202 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 8] *********************************************************** Thursday 25 July 2024 07:24:25 -0400 (0:00:00.042) 0:00:02.245 ********* 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] *********************************************** Thursday 25 July 2024 07:24:25 -0400 (0:00:00.468) 0:00:02.714 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == '7'", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Thursday 25 July 2024 07:24:25 -0400 (0:00:00.016) 0:00:02.730 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == '7'", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Thursday 25 July 2024 07:24:25 -0400 (0:00:00.016) 0:00:02.747 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.239799", "end": "2024-07-25 07:24:26.053467", "rc": 0, "start": "2024-07-25 07:24:25.813668" } TASK [Enable EPEL 6] *********************************************************** Thursday 25 July 2024 07:24:26 -0400 (0:00:00.596) 0:00:03.344 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == '6'", "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Thursday 25 July 2024 07:24:26 -0400 (0:00:00.015) 0:00:03.359 ********* ok: [managed_node1] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [Play for testing IPv6 config] ******************************************** TASK [Gathering Facts] ********************************************************* Thursday 25 July 2024 07:24:26 -0400 (0:00:00.032) 0:00:03.391 ********* ok: [managed_node1] TASK [Include the task 'show_interfaces.yml'] ********************************** Thursday 25 July 2024 07:24:26 -0400 (0:00:00.805) 0:00:04.197 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Thursday 25 July 2024 07:24:26 -0400 (0:00:00.037) 0:00:04.234 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Thursday 25 July 2024 07:24:27 -0400 (0:00:00.037) 0:00:04.272 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003072", "end": "2024-07-25 07:24:27.353209", "rc": 0, "start": "2024-07-25 07:24:27.350137" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** Thursday 25 July 2024 07:24:27 -0400 (0:00:00.371) 0:00:04.644 ********* ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Thursday 25 July 2024 07:24:27 -0400 (0:00:00.036) 0:00:04.680 ********* ok: [managed_node1] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Include the task 'manage_test_interface.yml'] **************************** Thursday 25 July 2024 07:24:27 -0400 (0:00:00.035) 0:00:04.716 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** Thursday 25 July 2024 07:24:27 -0400 (0:00:00.047) 0:00:04.763 ********* 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"]] ********************************* Thursday 25 July 2024 07:24:27 -0400 (0:00:00.031) 0:00:04.794 ********* 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'] ********************************** Thursday 25 July 2024 07:24:27 -0400 (0:00:00.033) 0:00:04.828 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Thursday 25 July 2024 07:24:27 -0400 (0:00:00.038) 0:00:04.866 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Thursday 25 July 2024 07:24:27 -0400 (0:00:00.037) 0:00:04.904 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003144", "end": "2024-07-25 07:24:27.993332", "rc": 0, "start": "2024-07-25 07:24:27.990188" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** Thursday 25 July 2024 07:24:28 -0400 (0:00:00.379) 0:00:05.283 ********* ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Thursday 25 July 2024 07:24:28 -0400 (0:00:00.037) 0:00:05.321 ********* ok: [managed_node1] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Install iproute] ********************************************************* Thursday 25 July 2024 07:24:28 -0400 (0:00:00.039) 0:00:05.360 ********* ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: iproute TASK [Create veth interface veth0] ********************************************* Thursday 25 July 2024 07:24:31 -0400 (0:00:03.108) 0:00:08.469 ********* 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.012748", "end": "2024-07-25 07:24:31.567995", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2024-07-25 07:24:31.555247" } 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.003864", "end": "2024-07-25 07:24:31.950641", "item": "ip link set peerveth0 up", "rc": 0, "start": "2024-07-25 07:24:31.946777" } 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.004056", "end": "2024-07-25 07:24:32.296141", "item": "ip link set veth0 up", "rc": 0, "start": "2024-07-25 07:24:32.292085" } TASK [Set up veth as managed by NetworkManager] ******************************** Thursday 25 July 2024 07:24:32 -0400 (0:00:01.119) 0:00:09.588 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.019753", "end": "2024-07-25 07:24:32.684792", "rc": 0, "start": "2024-07-25 07:24:32.665039" } TASK [Delete veth interface veth0] ********************************************* Thursday 25 July 2024 07:24:32 -0400 (0:00:00.388) 0:00:09.977 ********* 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] ******************************************** Thursday 25 July 2024 07:24:32 -0400 (0:00:00.033) 0:00:10.010 ********* 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] ******************************************** Thursday 25 July 2024 07:24:32 -0400 (0:00:00.034) 0:00:10.044 ********* 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] ********************************************** Thursday 25 July 2024 07:24:32 -0400 (0:00:00.033) 0:00:10.078 ********* 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] ********************************************** Thursday 25 July 2024 07:24:32 -0400 (0:00:00.034) 0:00:10.113 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Set up gateway ip on veth peer] ****************************************** Thursday 25 July 2024 07:24:32 -0400 (0:00:00.032) 0:00:10.145 ********* ok: [managed_node1] => { "changed": false, "cmd": "ip netns add ns1\nip link set peerveth0 netns ns1\nip netns exec ns1 ip -6 addr add 2001:db8::1/32 dev peerveth0\nip netns exec ns1 ip link set peerveth0 up\n", "delta": "0:00:00.035110", "end": "2024-07-25 07:24:33.259599", "rc": 0, "start": "2024-07-25 07:24:33.224489" } TASK [TEST: I can configure an interface with static ipv6 config] ************** Thursday 25 July 2024 07:24:33 -0400 (0:00:00.404) 0:00:10.550 ********* ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Thursday 25 July 2024 07:24:33 -0400 (0:00:00.034) 0:00:10.585 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/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] *** Thursday 25 July 2024 07:24:33 -0400 (0:00:00.048) 0:00:10.633 ********* 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] *********** Thursday 25 July 2024 07:24:33 -0400 (0:00:00.036) 0:00:10.669 ********* 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] *** Thursday 25 July 2024 07:24:33 -0400 (0:00:00.036) 0:00:10.706 ********* 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] **** Thursday 25 July 2024 07:24:33 -0400 (0:00:00.036) 0:00:10.743 ********* 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] *** Thursday 25 July 2024 07:24:35 -0400 (0:00:01.764) 0:00:12.507 ********* 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] ************** Thursday 25 July 2024 07:24:37 -0400 (0:00:01.812) 0:00:14.320 ********* ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.055) 0:00:14.375 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "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] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.050) 0:00:14.426 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.051) 0:00:14.477 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version | int > 9", "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] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.051) 0:00:14.529 ********* 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] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.068) 0:00:14.597 ********* 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] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.051) 0:00:14.648 ********* 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] ******************** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.063) 0:00:14.712 ********* 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] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.178) 0:00:14.890 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.052) 0:00:14.943 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.051) 0:00:14.994 ********* 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] ***** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.067) 0:00:15.062 ********* skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.052) 0:00:15.115 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_provider == \"nm\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Thursday 25 July 2024 07:24:37 -0400 (0:00:00.050) 0:00:15.165 ********* ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Thursday 25 July 2024 07:24:38 -0400 (0:00:00.858) 0:00:16.023 ********* ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-279943vepz2t_/tmpdgr31y40" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Thursday 25 July 2024 07:24:39 -0400 (0:00:00.403) 0:00:16.427 ********* changed: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "ip": { "address": [ "2001:db8::2/32", "2001:db8::3/32", "2001:db8::4/32" ], "auto6": false, "dhcp4": false, "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0' [004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified) [005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\n"', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Thursday 25 July 2024 07:24:43 -0400 (0:00:03.888) 0:00:20.316 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Thursday 25 July 2024 07:24:43 -0400 (0:00:00.054) 0:00:20.370 ********* ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Thursday 25 July 2024 07:24:43 -0400 (0:00:00.055) 0:00:20.426 ********* 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/32", "2001:db8::3/32", "2001:db8::4/32" ], "auto6": false, "dhcp4": false, "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)\n[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Thursday 25 July 2024 07:24:43 -0400 (0:00:00.055) 0:00:20.481 ********* skipping: [managed_node1] => { "false_condition": "network_state != {}" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Thursday 25 July 2024 07:24:43 -0400 (0:00:00.054) 0:00:20.536 ********* ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** Thursday 25 July 2024 07:24:43 -0400 (0:00:00.514) 0:00:21.050 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/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'] ******************************* Thursday 25 July 2024 07:24:43 -0400 (0:00:00.132) 0:00:21.182 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface veth0] ******************************************** Thursday 25 July 2024 07:24:44 -0400 (0:00:00.074) 0:00:21.257 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721906671.558788, "block_size": 4096, "blocks": 0, "ctime": 1721906671.558788, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 55172, "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": 1721906671.558788, "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'] ************************** Thursday 25 July 2024 07:24:44 -0400 (0:00:00.392) 0:00:21.649 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** Thursday 25 July 2024 07:24:44 -0400 (0:00:00.056) 0:00:21.706 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/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'] ********************************* Thursday 25 July 2024 07:24:44 -0400 (0:00:00.094) 0:00:21.800 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/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] ************ Thursday 25 July 2024 07:24:44 -0400 (0:00:00.082) 0:00:21.882 ********* 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] ******************************************************* Thursday 25 July 2024 07:24:44 -0400 (0:00:00.058) 0:00:21.940 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721906679.8437374, "block_size": 4096, "blocks": 8, "ctime": 1721906679.8247373, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2301241, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1721906679.8247373, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 253, "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] ******************** Thursday 25 July 2024 07:24:45 -0400 (0:00:00.385) 0:00:22.326 ********* ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Thursday 25 July 2024 07:24:45 -0400 (0:00:00.054) 0:00:22.381 ********* fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.017509", "end": "2024-07-25 07:24:45.479688", "rc": 1, "start": "2024-07-25 07:24:45.462179" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Thursday 25 July 2024 07:24:45 -0400 (0:00:00.406) 0:00:22.788 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "nm_profile_exists.rc == 0", "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Thursday 25 July 2024 07:24:45 -0400 (0:00:00.054) 0:00:22.842 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.002966", "end": "2024-07-25 07:24:45.924377", "rc": 0, "start": "2024-07-25 07:24:45.921411" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Thursday 25 July 2024 07:24:45 -0400 (0:00:00.390) 0:00:23.232 ********* ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** Thursday 25 July 2024 07:24:46 -0400 (0:00:00.061) 0:00:23.294 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.006231", "end": "2024-07-25 07:24:46.381198", "rc": 0, "start": "2024-07-25 07:24:46.374967" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** Thursday 25 July 2024 07:24:46 -0400 (0:00:00.397) 0:00:23.691 ********* ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'veth0'] **************************** Thursday 25 July 2024 07:24:46 -0400 (0:00:00.153) 0:00:23.844 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** Thursday 25 July 2024 07:24:46 -0400 (0:00:00.059) 0:00:23.904 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** Thursday 25 July 2024 07:24:46 -0400 (0:00:00.058) 0:00:23.962 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Get ip address information] ********************************************** Thursday 25 July 2024 07:24:46 -0400 (0:00:00.059) 0:00:24.021 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "addr", "show", "veth0" ], "delta": "0:00:00.003465", "end": "2024-07-25 07:24:47.107324", "rc": 0, "start": "2024-07-25 07:24:47.103859" } STDOUT: 120: veth0@if119: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether f6:d5:21:8a:a5:36 brd ff:ff:ff:ff:ff:ff link-netns ns1 inet6 2001:db8::4/32 scope global valid_lft forever preferred_lft forever inet6 2001:db8::3/32 scope global valid_lft forever preferred_lft forever inet6 2001:db8::2/32 scope global valid_lft forever preferred_lft forever inet6 fe80::f4d5:21ff:fe8a:a536/64 scope link valid_lft forever preferred_lft forever TASK [Show ip_addr] ************************************************************ Thursday 25 July 2024 07:24:47 -0400 (0:00:00.398) 0:00:24.420 ********* ok: [managed_node1] => { "ip_addr.stdout": "120: veth0@if119: mtu 1500 qdisc noqueue state UP group default qlen 1000\n link/ether f6:d5:21:8a:a5:36 brd ff:ff:ff:ff:ff:ff link-netns ns1\n inet6 2001:db8::4/32 scope global \n valid_lft forever preferred_lft forever\n inet6 2001:db8::3/32 scope global \n valid_lft forever preferred_lft forever\n inet6 2001:db8::2/32 scope global \n valid_lft forever preferred_lft forever\n inet6 fe80::f4d5:21ff:fe8a:a536/64 scope link \n valid_lft forever preferred_lft forever" } TASK [Assert ipv6 addresses are correctly set] ********************************* Thursday 25 July 2024 07:24:47 -0400 (0:00:00.054) 0:00:24.475 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Thursday 25 July 2024 07:24:47 -0400 (0:00:00.061) 0:00:24.536 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.005748", "end": "2024-07-25 07:24:47.620798", "rc": 0, "start": "2024-07-25 07:24:47.615050" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/32 dev veth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev veth0 proto kernel metric 256 pref medium default via 2001:db8::1 dev veth0 metric 1 pref medium TASK [Show ipv6_route] ********************************************************* Thursday 25 July 2024 07:24:47 -0400 (0:00:00.394) 0:00:24.931 ********* ok: [managed_node1] => { "ipv6_route.stdout": "::1 dev lo proto kernel metric 256 pref medium\n2001:db8::/32 dev veth0 proto kernel metric 256 pref medium\nfe80::/64 dev eth0 proto kernel metric 256 pref medium\nfe80::/64 dev veth0 proto kernel metric 256 pref medium\ndefault via 2001:db8::1 dev veth0 metric 1 pref medium" } TASK [Assert default ipv6 route is set] **************************************** Thursday 25 July 2024 07:24:47 -0400 (0:00:00.054) 0:00:24.986 ********* [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 [Ensure ping6 command is present] ***************************************** Thursday 25 July 2024 07:24:47 -0400 (0:00:00.059) 0:00:25.045 ********* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: iputils TASK [Test gateway can be pinged] ********************************************** Thursday 25 July 2024 07:24:50 -0400 (0:00:02.712) 0:00:27.758 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ping6", "-c1", "2001:db8::1" ], "delta": "0:00:00.004232", "end": "2024-07-25 07:24:50.839913", "rc": 0, "start": "2024-07-25 07:24:50.835681" } STDOUT: PING 2001:db8::1(2001:db8::1) 56 data bytes 64 bytes from 2001:db8::1: icmp_seq=1 ttl=64 time=0.042 ms --- 2001:db8::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.042/0.042/0.042/0.000 ms TASK [TEARDOWN: remove profiles.] ********************************************** Thursday 25 July 2024 07:24:50 -0400 (0:00:00.390) 0:00:28.149 ********* ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Thursday 25 July 2024 07:24:50 -0400 (0:00:00.057) 0:00:28.206 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/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] *** Thursday 25 July 2024 07:24:51 -0400 (0:00:00.083) 0:00:28.289 ********* 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] *********** Thursday 25 July 2024 07:24:51 -0400 (0:00:00.061) 0:00:28.351 ********* 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] *** Thursday 25 July 2024 07:24:51 -0400 (0:00:00.099) 0:00:28.451 ********* 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] **** Thursday 25 July 2024 07:24:51 -0400 (0:00:00.056) 0:00:28.507 ********* 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] *** Thursday 25 July 2024 07:24:52 -0400 (0:00:01.668) 0:00:30.175 ********* 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] ************** Thursday 25 July 2024 07:24:54 -0400 (0:00:01.505) 0:00:31.681 ********* ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.056) 0:00:31.738 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "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] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.053) 0:00:31.791 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.052) 0:00:31.843 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version | int > 9", "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] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.055) 0:00:31.899 ********* 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] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.067) 0:00:31.967 ********* 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] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.051) 0:00:32.019 ********* 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] ******************** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.067) 0:00:32.086 ********* 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] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.102) 0:00:32.188 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** Thursday 25 July 2024 07:24:54 -0400 (0:00:00.051) 0:00:32.240 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** Thursday 25 July 2024 07:24:55 -0400 (0:00:00.055) 0:00:32.296 ********* 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] ***** Thursday 25 July 2024 07:24:55 -0400 (0:00:00.108) 0:00:32.404 ********* skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** Thursday 25 July 2024 07:24:55 -0400 (0:00:00.052) 0:00:32.457 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_provider == \"nm\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** Thursday 25 July 2024 07:24:55 -0400 (0:00:00.053) 0:00:32.510 ********* ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** Thursday 25 July 2024 07:24:55 -0400 (0:00:00.585) 0:00:33.096 ********* ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-279943vepz2t_/tmpfpeesmsj" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** Thursday 25 July 2024 07:24:56 -0400 (0:00:00.397) 0:00:33.493 ********* 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": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active) [004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0' TASK [fedora.linux_system_roles.network : Configure networking state] ********** Thursday 25 July 2024 07:24:56 -0400 (0:00:00.618) 0:00:34.112 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "network_state != {}", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** Thursday 25 July 2024 07:24:56 -0400 (0:00:00.053) 0:00:34.165 ********* ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Thursday 25 July 2024 07:24:56 -0400 (0:00:00.056) 0:00:34.222 ********* 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)\n[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Thursday 25 July 2024 07:24:57 -0400 (0:00:00.061) 0:00:34.283 ********* skipping: [managed_node1] => { "false_condition": "network_state != {}" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Thursday 25 July 2024 07:24:57 -0400 (0:00:00.053) 0:00:34.337 ********* ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** Thursday 25 July 2024 07:24:57 -0400 (0:00:00.407) 0:00:34.744 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** Thursday 25 July 2024 07:24:57 -0400 (0:00:00.099) 0:00:34.843 ********* 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"]] ********************************* Thursday 25 July 2024 07:24:57 -0400 (0:00:00.051) 0:00:34.895 ********* 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'] ********************************** Thursday 25 July 2024 07:24:57 -0400 (0:00:00.052) 0:00:34.947 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** Thursday 25 July 2024 07:24:57 -0400 (0:00:00.116) 0:00:35.063 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* Thursday 25 July 2024 07:24:57 -0400 (0:00:00.074) 0:00:35.138 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003086", "end": "2024-07-25 07:24:58.223722", "rc": 0, "start": "2024-07-25 07:24:58.220636" } STDOUT: bonding_masters eth0 lo veth0 TASK [Set current_interfaces] ************************************************** Thursday 25 July 2024 07:24:58 -0400 (0:00:00.398) 0:00:35.536 ********* ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Thursday 25 July 2024 07:24:58 -0400 (0:00:00.056) 0:00:35.593 ********* ok: [managed_node1] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'veth0'] TASK [Install iproute] ********************************************************* Thursday 25 July 2024 07:24:58 -0400 (0:00:00.055) 0:00:35.648 ********* ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: iproute TASK [Create veth interface veth0] ********************************************* Thursday 25 July 2024 07:25:01 -0400 (0:00:02.729) 0:00:38.377 ********* 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] ******************************** Thursday 25 July 2024 07:25:01 -0400 (0:00:00.071) 0:00:38.449 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'veth' and state == 'present'", "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Thursday 25 July 2024 07:25:01 -0400 (0:00:00.053) 0:00:38.503 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.008514", "end": "2024-07-25 07:25:01.596091", "rc": 0, "start": "2024-07-25 07:25:01.587577" } TASK [Create dummy interface veth0] ******************************************** Thursday 25 July 2024 07:25:01 -0400 (0:00:00.405) 0:00:38.908 ********* 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] ******************************************** Thursday 25 July 2024 07:25:01 -0400 (0:00:00.053) 0:00:38.962 ********* 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] ********************************************** Thursday 25 July 2024 07:25:01 -0400 (0:00:00.053) 0:00:39.016 ********* 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] ********************************************** Thursday 25 July 2024 07:25:01 -0400 (0:00:00.056) 0:00:39.073 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "type == 'tap' and state == 'absent' and interface in current_interfaces", "skip_reason": "Conditional result was False" } TASK [Clean up namespace] ****************************************************** Thursday 25 July 2024 07:25:01 -0400 (0:00:00.053) 0:00:39.126 ********* ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "netns", "delete", "ns1" ], "delta": "0:00:00.008606", "end": "2024-07-25 07:25:02.221931", "rc": 0, "start": "2024-07-25 07:25:02.213325" } TASK [Verify network state restored to default] ******************************** Thursday 25 July 2024 07:25:02 -0400 (0:00:00.406) 0:00:39.533 ********* included: /var/ARTIFACTS/work-generall2i0jng_/plans/general/tree/tmp.H9WEn4Rmyz/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml for managed_node1 TASK [Check routes and DNS] **************************************************** Thursday 25 July 2024 07:25:02 -0400 (0:00:00.142) 0:00:39.675 ********* 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.008123", "end": "2024-07-25 07:25:02.766629", "rc": 0, "start": "2024-07-25 07:25:02.758506" } 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:c3:14:ae:f5 brd ff:ff:ff:ff:ff:ff inet 10.31.15.36/22 brd 10.31.15.255 scope global dynamic noprefixroute eth0 valid_lft 1945sec preferred_lft 1945sec inet6 fe80::8ff:c3ff:fe14:aef5/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.36 metric 100 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.15.36 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] ************************************* Thursday 25 July 2024 07:25:02 -0400 (0:00:00.400) 0:00:40.076 ********* 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.210831", "end": "2024-07-25 07:25:03.377117", "rc": 0, "start": "2024-07-25 07:25:03.166286" } STDOUT: CHECK DNS AND CONNECTIVITY 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 2620:52:3:1:dead:beef:cafe:fed6 wildcard.fedoraproject.org mirrors.fedoraproject.org 2600:1f14:fad:5c02:7c8a:72d0:1c58:c189 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 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 1967 0 --:--:-- --:--:-- --:--:-- 1967 % 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 13857 0 --:--:-- --:--:-- --:--:-- 13857 PLAY RECAP ********************************************************************* managed_node1 : ok=84 changed=2 unreachable=0 failed=0 skipped=54 rescued=0 ignored=1 Thursday 25 July 2024 07:25:03 -0400 (0:00:00.672) 0:00:40.748 ********* =============================================================================== fedora.linux_system_roles.network : Configure networking connection profiles --- 3.89s Install iproute --------------------------------------------------------- 3.11s Install iproute --------------------------------------------------------- 2.73s Ensure ping6 command is present ----------------------------------------- 2.71s fedora.linux_system_roles.network : Check which packages are installed --- 1.81s fedora.linux_system_roles.network : Check which services are running ---- 1.76s fedora.linux_system_roles.network : Check which services are running ---- 1.67s fedora.linux_system_roles.network : Check which packages are installed --- 1.51s Gathering Facts --------------------------------------------------------- 1.13s Create veth interface veth0 --------------------------------------------- 1.12s fedora.linux_system_roles.network : Enable network service -------------- 0.86s Gathering Facts --------------------------------------------------------- 0.81s Verify DNS and network connectivity ------------------------------------- 0.67s fedora.linux_system_roles.network : Configure networking connection profiles --- 0.62s Enable EPEL 8 ----------------------------------------------------------- 0.60s fedora.linux_system_roles.network : Enable network service -------------- 0.59s Gather the minimum subset of ansible_facts required by the network role test --- 0.52s fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.51s Check if system is ostree ----------------------------------------------- 0.47s Create EPEL 8 ----------------------------------------------------------- 0.47s