[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:53:35 -0400 (0:00:00.007) 0:00:00.007 *********** [WARNING]: Platform linux on host managed_node1 is using the discovered Python interpreter at /usr/bin/python3.9, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed_node1] TASK [Include the task 'el_repo_setup.yml'] ************************************ Monday 22 July 2024 11:53:36 -0400 (0:00:01.034) 0:00:01.041 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:36 -0400 (0:00:00.017) 0:00:01.059 *********** ok: [managed_node1] TASK [Check if system is ostree] *********************************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.487) 0:00:01.546 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.417) 0:00:01.964 *********** ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.020) 0:00:01.984 *********** 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:53:37 -0400 (0:00:00.012) 0:00:01.997 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 9] *********************************************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.025) 0:00:02.022 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version in ['7', '8']", "skip_reason": "Conditional result was False" } TASK [Install yum-utils package] *********************************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.014) 0:00:02.037 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version in ['7', '8']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.011) 0:00:02.048 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version in ['7', '8']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.012) 0:00:02.060 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version in ['7', '8']", "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Monday 22 July 2024 11:53:37 -0400 (0:00:00.011) 0:00:02.072 *********** 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:53:38 -0400 (0:00:00.011) 0:00:02.083 *********** 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:53:38 -0400 (0:00:00.027) 0:00:02.111 *********** ok: [managed_node1] TASK [Include the task 'show_interfaces.yml'] ********************************** Monday 22 July 2024 11:53:38 -0400 (0:00:00.757) 0:00:02.869 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:38 -0400 (0:00:00.038) 0:00:02.907 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:38 -0400 (0:00:00.016) 0:00:02.923 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003337", "end": "2024-07-22 11:53:39.211560", "rc": 0, "start": "2024-07-22 11:53:39.208223" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:53:39 -0400 (0:00:00.415) 0:00:03.339 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:53:39 -0400 (0:00:00.017) 0:00:03.356 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:53:39 -0400 (0:00:00.016) 0:00:03.373 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:39 -0400 (0:00:00.045) 0:00:03.418 *********** 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:53:39 -0400 (0:00:00.012) 0:00:03.431 *********** 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:53:39 -0400 (0:00:00.012) 0:00:03.443 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:39 -0400 (0:00:00.018) 0:00:03.461 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:39 -0400 (0:00:00.019) 0:00:03.481 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003253", "end": "2024-07-22 11:53:39.690557", "rc": 0, "start": "2024-07-22 11:53:39.687304" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:53:39 -0400 (0:00:00.336) 0:00:03.818 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:53:39 -0400 (0:00:00.018) 0:00:03.836 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:53:39 -0400 (0:00:00.016) 0:00:03.853 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:53:40 -0400 (0:00:00.959) 0:00:04.812 *********** 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.009237", "end": "2024-07-22 11:53:41.035765", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2024-07-22 11:53:41.026528" } 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.003622", "end": "2024-07-22 11:53:41.387206", "item": "ip link set peerveth0 up", "rc": 0, "start": "2024-07-22 11:53:41.383584" } 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.005366", "end": "2024-07-22 11:53:41.713305", "item": "ip link set veth0 up", "rc": 0, "start": "2024-07-22 11:53:41.707939" } TASK [Set up veth as managed by NetworkManager] ******************************** Monday 22 July 2024 11:53:41 -0400 (0:00:01.028) 0:00:05.841 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:01.140471", "end": "2024-07-22 11:53:43.190958", "rc": 0, "start": "2024-07-22 11:53:42.050487" } TASK [Delete veth interface veth0] ********************************************* Monday 22 July 2024 11:53:43 -0400 (0:00:01.480) 0:00:07.322 *********** 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:53:43 -0400 (0:00:00.018) 0:00:07.341 *********** 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:53:43 -0400 (0:00:00.013) 0:00:07.354 *********** 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:53:43 -0400 (0:00:00.014) 0:00:07.369 *********** 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:53:43 -0400 (0:00:00.014) 0:00:07.384 *********** 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:53:43 -0400 (0:00:00.013) 0:00:07.397 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:43 -0400 (0:00:00.040) 0:00:07.438 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:43 -0400 (0:00:00.016) 0:00:07.455 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663621.03016, "block_size": 4096, "blocks": 0, "ctime": 1721663621.03016, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26595, "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": 1721663621.03016, "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:53:43 -0400 (0:00:00.333) 0:00:07.789 *********** 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:53:43 -0400 (0:00:00.017) 0:00:07.807 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 11:53:43 -0400 (0:00:00.014) 0:00:07.821 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:43 -0400 (0:00:00.024) 0:00:07.846 *********** 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:53:43 -0400 (0:00:00.021) 0:00:07.867 *********** 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:53:43 -0400 (0:00:00.016) 0:00:07.884 *********** 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:53:43 -0400 (0:00:00.020) 0:00:07.904 *********** 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:53:45 -0400 (0:00:01.627) 0:00:09.531 *********** 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:53:46 -0400 (0:00:01.077) 0:00:10.609 *********** 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:53:46 -0400 (0:00:00.034) 0:00:10.643 *********** 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:53:46 -0400 (0:00:00.034) 0:00:10.677 *********** 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:53:46 -0400 (0:00:00.032) 0:00:10.710 *********** 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:53:46 -0400 (0:00:00.044) 0:00:10.754 *********** 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:53:46 -0400 (0:00:00.033) 0:00:10.787 *********** 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:53:46 -0400 (0:00:00.043) 0:00:10.831 *********** 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:53:46 -0400 (0:00:00.124) 0:00:10.955 *********** 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:53:46 -0400 (0:00:00.037) 0:00:10.993 *********** 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:53:46 -0400 (0:00:00.032) 0:00:11.025 *********** 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:53:46 -0400 (0:00:00.043) 0:00:11.069 *********** 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:53:47 -0400 (0:00:00.736) 0:00:11.805 *********** 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:53:47 -0400 (0:00:00.044) 0:00:11.850 *********** 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:53:47 -0400 (0:00:00.032) 0:00:11.883 *********** 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:53:47 -0400 (0:00:00.029) 0:00:11.912 *********** 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, b725bb1a-44ee-4b68-905f-0152c5e1fede [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b725bb1a-44ee-4b68-905f-0152c5e1fede (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 11:53:48 -0400 (0:00:00.728) 0:00:12.641 *********** 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:53:48 -0400 (0:00:00.035) 0:00:12.676 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, b725bb1a-44ee-4b68-905f-0152c5e1fede", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b725bb1a-44ee-4b68-905f-0152c5e1fede (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 11:53:48 -0400 (0:00:00.032) 0:00:12.709 *********** 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, b725bb1a-44ee-4b68-905f-0152c5e1fede\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b725bb1a-44ee-4b68-905f-0152c5e1fede (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, b725bb1a-44ee-4b68-905f-0152c5e1fede", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, b725bb1a-44ee-4b68-905f-0152c5e1fede (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 11:53:48 -0400 (0:00:00.035) 0:00:12.744 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:53:48 -0400 (0:00:00.033) 0:00:12.777 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** Monday 22 July 2024 11:53:49 -0400 (0:00:00.447) 0:00:13.225 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:49 -0400 (0:00:00.075) 0:00:13.301 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:49 -0400 (0:00:00.079) 0:00:13.380 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663621.03016, "block_size": 4096, "blocks": 0, "ctime": 1721663621.03016, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 26595, "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": 1721663621.03016, "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:53:49 -0400 (0:00:00.357) 0:00:13.737 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** Monday 22 July 2024 11:53:49 -0400 (0:00:00.034) 0:00:13.771 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:49 -0400 (0:00:00.074) 0:00:13.846 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:49 -0400 (0:00:00.054) 0:00:13.901 *********** 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:53:49 -0400 (0:00:00.031) 0:00:13.932 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.352) 0:00:14.285 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.031) 0:00:14.316 *********** ok: [managed_node1] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.032258", "end": "2024-07-22 11:53:50.566431", "rc": 0, "start": "2024-07-22 11:53:50.534173" } STDOUT: veth0 /etc/NetworkManager/system-connections/veth0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 11:53:50 -0400 (0:00:00.394) 0:00:14.710 *********** 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:53:50 -0400 (0:00:00.035) 0:00:14.746 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.030) 0:00:14.776 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.029) 0:00:14.806 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.031) 0:00:14.838 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'veth0'] **************************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.029) 0:00:14.867 *********** 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:53:50 -0400 (0:00:00.035) 0:00:14.903 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.033) 0:00:14.937 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Monday 22 July 2024 11:53:50 -0400 (0:00:00.064) 0:00:15.001 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003314", "end": "2024-07-22 11:53:51.211121", "rc": 0, "start": "2024-07-22 11:53:51.207807" } STDOUT: default via 10.31.12.1 dev eth0 proto dhcp src 10.31.13.55 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.13.55 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:53:51 -0400 (0:00:00.354) 0:00:15.355 *********** [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:53:51 -0400 (0:00:00.035) 0:00:15.391 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003490", "end": "2024-07-22 11:53:51.601399", "rc": 0, "start": "2024-07-22 11:53:51.597909" } 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:53:51 -0400 (0:00:00.351) 0:00:15.742 *********** [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:53:51 -0400 (0:00:00.037) 0:00:15.779 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 11:53:51 -0400 (0:00:00.031) 0:00:15.811 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:51 -0400 (0:00:00.055) 0:00:15.866 *********** 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:53:51 -0400 (0:00:00.042) 0:00:15.909 *********** 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:53:51 -0400 (0:00:00.032) 0:00:15.942 *********** 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:53:51 -0400 (0:00:00.033) 0:00:15.976 *********** 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:53:53 -0400 (0:00:01.601) 0:00:17.577 *********** 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:53:54 -0400 (0:00:00.848) 0:00:18.425 *********** 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:53:54 -0400 (0:00:00.032) 0:00:18.458 *********** 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:53:54 -0400 (0:00:00.035) 0:00:18.494 *********** 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:53:54 -0400 (0:00:00.032) 0:00:18.526 *********** 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:53:54 -0400 (0:00:00.081) 0:00:18.607 *********** 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:53:54 -0400 (0:00:00.034) 0:00:18.642 *********** 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:53:54 -0400 (0:00:00.047) 0:00:18.689 *********** 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:53:54 -0400 (0:00:00.072) 0:00:18.762 *********** 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:53:54 -0400 (0:00:00.036) 0:00:18.799 *********** 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:53:54 -0400 (0:00:00.035) 0:00:18.835 *********** 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:53:54 -0400 (0:00:00.041) 0:00:18.876 *********** 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:53:55 -0400 (0:00:00.560) 0:00:19.437 *********** 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:53:55 -0400 (0:00:00.045) 0:00:19.482 *********** 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:53:55 -0400 (0:00:00.029) 0:00:19.512 *********** 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:53:55 -0400 (0:00:00.029) 0:00:19.541 *********** 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:53:56 -0400 (0:00:00.578) 0:00:20.120 *********** 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:53:56 -0400 (0:00:00.036) 0:00:20.157 *********** 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:53:56 -0400 (0:00:00.033) 0:00:20.190 *********** 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:53:56 -0400 (0:00:00.033) 0:00:20.223 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:53:56 -0400 (0:00:00.033) 0:00:20.256 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:53:56 -0400 (0:00:00.374) 0:00:20.630 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:56 -0400 (0:00:00.110) 0:00:20.741 *********** 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:53:56 -0400 (0:00:00.032) 0:00:20.774 *********** 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:53:56 -0400 (0:00:00.028) 0:00:20.802 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:56 -0400 (0:00:00.049) 0:00:20.852 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:56 -0400 (0:00:00.048) 0:00:20.900 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003404", "end": "2024-07-22 11:53:57.117634", "rc": 0, "start": "2024-07-22 11:53:57.114230" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:53:57 -0400 (0:00:00.361) 0:00:21.262 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:53:57 -0400 (0:00:00.034) 0:00:21.296 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:53:57 -0400 (0:00:00.032) 0:00:21.329 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:53:58 -0400 (0:00:00.866) 0:00:22.195 *********** 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:53:58 -0400 (0:00:00.041) 0:00:22.237 *********** 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:53:58 -0400 (0:00:00.030) 0:00:22.267 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.008461", "end": "2024-07-22 11:53:58.497676", "rc": 0, "start": "2024-07-22 11:53:58.489215" } TASK [Create dummy interface veth0] ******************************************** Monday 22 July 2024 11:53:58 -0400 (0:00:00.385) 0:00:22.652 *********** 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:53:58 -0400 (0:00:00.033) 0:00:22.685 *********** 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:53:58 -0400 (0:00:00.029) 0:00:22.715 *********** 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:53:58 -0400 (0:00:00.032) 0:00:22.747 *********** 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:53:58 -0400 (0:00:00.027) 0:00:22.775 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:53:58 -0400 (0:00:00.062) 0:00:22.837 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:58 -0400 (0:00:00.084) 0:00:22.922 *********** 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:53:58 -0400 (0:00:00.029) 0:00:22.951 *********** 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:53:58 -0400 (0:00:00.031) 0:00:22.983 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:58 -0400 (0:00:00.048) 0:00:23.032 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:53:59 -0400 (0:00:00.047) 0:00:23.080 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003269", "end": "2024-07-22 11:53:59.299508", "rc": 0, "start": "2024-07-22 11:53:59.296239" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:53:59 -0400 (0:00:00.366) 0:00:23.446 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:53:59 -0400 (0:00:00.034) 0:00:23.480 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:53:59 -0400 (0:00:00.032) 0:00:23.513 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:54:00 -0400 (0:00:00.873) 0:00:24.387 *********** 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.012283", "end": "2024-07-22 11:54:00.618017", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2024-07-22 11:54:00.605734" } 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.003678", "end": "2024-07-22 11:54:00.976111", "item": "ip link set peerveth0 up", "rc": 0, "start": "2024-07-22 11:54:00.972433" } 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.008450", "end": "2024-07-22 11:54:01.314975", "item": "ip link set veth0 up", "rc": 0, "start": "2024-07-22 11:54:01.306525" } TASK [Set up veth as managed by NetworkManager] ******************************** Monday 22 July 2024 11:54:01 -0400 (0:00:01.073) 0:00:25.461 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:01.022719", "end": "2024-07-22 11:54:02.706331", "rc": 0, "start": "2024-07-22 11:54:01.683612" } TASK [Delete veth interface veth0] ********************************************* Monday 22 July 2024 11:54:02 -0400 (0:00:01.391) 0:00:26.852 *********** 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:54:02 -0400 (0:00:00.033) 0:00:26.886 *********** 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:54:02 -0400 (0:00:00.030) 0:00:26.916 *********** 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:54:02 -0400 (0:00:00.030) 0:00:26.946 *********** 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:54:02 -0400 (0:00:00.062) 0:00:27.009 *********** 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:54:02 -0400 (0:00:00.029) 0:00:27.039 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:03 -0400 (0:00:00.057) 0:00:27.096 *********** 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:54:03 -0400 (0:00:00.041) 0:00:27.138 *********** 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:54:03 -0400 (0:00:00.033) 0:00:27.171 *********** 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:54:03 -0400 (0:00:00.035) 0:00:27.206 *********** 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:54:04 -0400 (0:00:01.630) 0:00:28.836 *********** 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:54:05 -0400 (0:00:00.852) 0:00:29.689 *********** 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:54:05 -0400 (0:00:00.034) 0:00:29.724 *********** 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:54:05 -0400 (0:00:00.035) 0:00:29.759 *********** 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:54:05 -0400 (0:00:00.033) 0:00:29.793 *********** 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:54:05 -0400 (0:00:00.046) 0:00:29.839 *********** 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:54:05 -0400 (0:00:00.038) 0:00:29.878 *********** 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:54:05 -0400 (0:00:00.042) 0:00:29.920 *********** 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:54:05 -0400 (0:00:00.071) 0:00:29.992 *********** 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:54:05 -0400 (0:00:00.071) 0:00:30.063 *********** 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:54:06 -0400 (0:00:00.033) 0:00:30.097 *********** 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:54:06 -0400 (0:00:00.044) 0:00:30.142 *********** 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:54:06 -0400 (0:00:00.551) 0:00:30.693 *********** 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:54:06 -0400 (0:00:00.047) 0:00:30.740 *********** 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:54:06 -0400 (0:00:00.029) 0:00:30.770 *********** 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:54:06 -0400 (0:00:00.031) 0:00:30.801 *********** 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, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9 [004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9 (not-active) TASK [fedora.linux_system_roles.network : Configure networking state] ********** Monday 22 July 2024 11:54:07 -0400 (0:00:00.575) 0:00:31.376 *********** 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:54:07 -0400 (0:00:00.037) 0:00:31.413 *********** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9 (not-active)" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** Monday 22 July 2024 11:54:07 -0400 (0:00:00.035) 0:00:31.449 *********** 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, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9 (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add connection veth0, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0, cdc7a021-b1fe-430c-9bc1-c4490c3b16a9 (not-active)" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** Monday 22 July 2024 11:54:07 -0400 (0:00:00.035) 0:00:31.485 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:54:07 -0400 (0:00:00.035) 0:00:31.520 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** Monday 22 July 2024 11:54:07 -0400 (0:00:00.364) 0:00:31.884 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:07 -0400 (0:00:00.080) 0:00:31.965 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:07 -0400 (0:00:00.048) 0:00:32.013 *********** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1721663640.6094398, "block_size": 4096, "blocks": 0, "ctime": 1721663640.6094398, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 27181, "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": 1721663640.6094398, "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:54:08 -0400 (0:00:00.391) 0:00:32.404 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** Monday 22 July 2024 11:54:08 -0400 (0:00:00.033) 0:00:32.437 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:08 -0400 (0:00:00.082) 0:00:32.520 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:08 -0400 (0:00:00.051) 0:00:32.571 *********** 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:54:08 -0400 (0:00:00.032) 0:00:32.604 *********** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Monday 22 July 2024 11:54:08 -0400 (0:00:00.350) 0:00:32.954 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Monday 22 July 2024 11:54:08 -0400 (0:00:00.030) 0:00:32.985 *********** ok: [managed_node1] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.023727", "end": "2024-07-22 11:54:09.216427", "rc": 0, "start": "2024-07-22 11:54:09.192700" } STDOUT: veth0 /etc/NetworkManager/system-connections/veth0.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Monday 22 July 2024 11:54:09 -0400 (0:00:00.377) 0:00:33.362 *********** 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:54:09 -0400 (0:00:00.034) 0:00:33.397 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Monday 22 July 2024 11:54:09 -0400 (0:00:00.032) 0:00:33.429 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** Monday 22 July 2024 11:54:09 -0400 (0:00:00.029) 0:00:33.459 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** Monday 22 July 2024 11:54:09 -0400 (0:00:00.031) 0:00:33.490 *********** skipping: [managed_node1] => { "changed": false, "false_condition": "profile_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [Assert that the profile is present - 'veth0'] **************************** Monday 22 July 2024 11:54:09 -0400 (0:00:00.029) 0:00:33.520 *********** 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:54:09 -0400 (0:00:00.036) 0:00:33.557 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** Monday 22 July 2024 11:54:09 -0400 (0:00:00.032) 0:00:33.590 *********** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** Monday 22 July 2024 11:54:09 -0400 (0:00:00.033) 0:00:33.623 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003848", "end": "2024-07-22 11:54:09.834913", "rc": 0, "start": "2024-07-22 11:54:09.831065" } STDOUT: default via 10.31.12.1 dev eth0 proto dhcp src 10.31.13.55 metric 100 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.13.55 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:54:09 -0400 (0:00:00.394) 0:00:34.017 *********** [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:54:09 -0400 (0:00:00.033) 0:00:34.051 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003506", "end": "2024-07-22 11:54:10.263916", "rc": 0, "start": "2024-07-22 11:54:10.260410" } 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:54:10 -0400 (0:00:00.359) 0:00:34.411 *********** [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:54:10 -0400 (0:00:00.036) 0:00:34.448 *********** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** Monday 22 July 2024 11:54:10 -0400 (0:00:00.032) 0:00:34.480 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:10 -0400 (0:00:00.057) 0:00:34.537 *********** 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:54:10 -0400 (0:00:00.043) 0:00:34.581 *********** 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:54:10 -0400 (0:00:00.036) 0:00:34.617 *********** 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:54:10 -0400 (0:00:00.034) 0:00:34.652 *********** 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:54:12 -0400 (0:00:01.666) 0:00:36.318 *********** 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:54:13 -0400 (0:00:00.865) 0:00:37.184 *********** 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:54:13 -0400 (0:00:00.034) 0:00:37.219 *********** 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:54:13 -0400 (0:00:00.037) 0:00:37.256 *********** 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:54:13 -0400 (0:00:00.034) 0:00:37.290 *********** 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:54:13 -0400 (0:00:00.047) 0:00:37.338 *********** 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:54:13 -0400 (0:00:00.074) 0:00:37.412 *********** 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:54:13 -0400 (0:00:00.046) 0:00:37.458 *********** 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:54:13 -0400 (0:00:00.075) 0:00:37.534 *********** 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:54:13 -0400 (0:00:00.034) 0:00:37.569 *********** 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:54:13 -0400 (0:00:00.033) 0:00:37.603 *********** 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:54:13 -0400 (0:00:00.045) 0:00:37.649 *********** 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:54:14 -0400 (0:00:00.548) 0:00:38.197 *********** 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:54:14 -0400 (0:00:00.046) 0:00:38.244 *********** 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:54:14 -0400 (0:00:00.029) 0:00:38.273 *********** 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:54:14 -0400 (0:00:00.032) 0:00:38.306 *********** 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:54:14 -0400 (0:00:00.577) 0:00:38.883 *********** 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:54:14 -0400 (0:00:00.035) 0:00:38.918 *********** 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:54:14 -0400 (0:00:00.034) 0:00:38.953 *********** 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:54:14 -0400 (0:00:00.032) 0:00:38.986 *********** skipping: [managed_node1] => { "false_condition": "network_state is defined" } TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** Monday 22 July 2024 11:54:14 -0400 (0:00:00.036) 0:00:39.022 *********** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** Monday 22 July 2024 11:54:15 -0400 (0:00:00.375) 0:00:39.397 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:15 -0400 (0:00:00.124) 0:00:39.522 *********** 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:54:15 -0400 (0:00:00.032) 0:00:39.554 *********** 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:54:15 -0400 (0:00:00.031) 0:00:39.585 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:15 -0400 (0:00:00.053) 0:00:39.638 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:15 -0400 (0:00:00.050) 0:00:39.689 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003404", "end": "2024-07-22 11:54:15.915857", "rc": 0, "start": "2024-07-22 11:54:15.912453" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** Monday 22 July 2024 11:54:15 -0400 (0:00:00.373) 0:00:40.062 *********** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Monday 22 July 2024 11:54:16 -0400 (0:00:00.034) 0:00:40.096 *********** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* Monday 22 July 2024 11:54:16 -0400 (0:00:00.033) 0:00:40.129 *********** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Monday 22 July 2024 11:54:16 -0400 (0:00:00.872) 0:00:41.002 *********** 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:54:16 -0400 (0:00:00.044) 0:00:41.047 *********** 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:54:16 -0400 (0:00:00.030) 0:00:41.077 *********** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.019482", "end": "2024-07-22 11:54:17.314649", "rc": 0, "start": "2024-07-22 11:54:17.295167" } TASK [Create dummy interface veth0] ******************************************** Monday 22 July 2024 11:54:17 -0400 (0:00:00.384) 0:00:41.462 *********** 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:54:17 -0400 (0:00:00.031) 0:00:41.494 *********** 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:54:17 -0400 (0:00:00.030) 0:00:41.524 *********** 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:54:17 -0400 (0:00:00.030) 0:00:41.555 *********** 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:54:17 -0400 (0:00:00.032) 0:00:41.587 *********** included: /var/ARTIFACTS/work-generala6wx5rxe/plans/general/tree/tmp.DPQdUb0Jq3/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:54:17 -0400 (0:00:00.122) 0:00:41.709 *********** 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.008058", "end": "2024-07-22 11:54:17.934315", "rc": 0, "start": "2024-07-22 11:54:17.926257" } 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:e5:f3:7b:5b brd ff:ff:ff:ff:ff:ff altname enX0 inet 10.31.13.55/22 brd 10.31.15.255 scope global dynamic noprefixroute eth0 valid_lft 3482sec preferred_lft 3482sec inet6 fe80::8ff:e5ff:fef3:7b5b/64 scope link valid_lft forever preferred_lft forever IP ROUTE default via 10.31.12.1 dev eth0 proto dhcp src 10.31.13.55 metric 100 10.31.12.0/22 dev eth0 proto kernel scope link src 10.31.13.55 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:54:18 -0400 (0:00:00.370) 0:00:42.080 *********** 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.241303", "end": "2024-07-22 11:54:18.539659", "rc": 0, "start": "2024-07-22 11:54:18.298356" } STDOUT: CHECK DNS AND CONNECTIVITY 2600:2701:4000:5211:dead:beef:fe:fed3 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.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 wildcard.fedoraproject.org mirrors.fedoraproject.org 2605:bc80:3010:600:dead:beef:cafe:fed9 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 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 2600:2701:4000:5211:dead:beef:fe:fed3 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 3177 0 --:--:-- --:--:-- --:--:-- 3210 % 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 2621 0 --:--:-- --:--:-- --:--:-- 2645 PLAY RECAP ********************************************************************* managed_node1 : ok=128 changed=4 unreachable=0 failed=0 skipped=114 rescued=0 ignored=0 Monday 22 July 2024 11:54:18 -0400 (0:00:00.657) 0:00:42.738 *********** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.67s fedora.linux_system_roles.network : Check which services are running ---- 1.63s fedora.linux_system_roles.network : Check which services are running ---- 1.63s fedora.linux_system_roles.network : Check which services are running ---- 1.60s Set up veth as managed by NetworkManager -------------------------------- 1.48s Set up veth as managed by NetworkManager -------------------------------- 1.39s fedora.linux_system_roles.network : Check which packages are installed --- 1.08s Create veth interface veth0 --------------------------------------------- 1.07s Gathering Facts --------------------------------------------------------- 1.03s Create veth interface veth0 --------------------------------------------- 1.03s Install iproute --------------------------------------------------------- 0.96s Install iproute --------------------------------------------------------- 0.87s Install iproute --------------------------------------------------------- 0.87s Install iproute --------------------------------------------------------- 0.87s fedora.linux_system_roles.network : Check which packages are installed --- 0.87s fedora.linux_system_roles.network : Check which packages are installed --- 0.85s fedora.linux_system_roles.network : Check which packages are installed --- 0.85s Gathering Facts --------------------------------------------------------- 0.76s fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.74s fedora.linux_system_roles.network : Configure networking connection profiles --- 0.73s