ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_auto_gateway_initscripts.yml *********************************** 2 plays in /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tests_auto_gateway_initscripts.yml PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tests_auto_gateway_initscripts.yml:5 Wednesday 31 July 2024 09:14:09 -0400 (0:00:00.020) 0:00:00.020 ******** ok: [managed_node1] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tests_auto_gateway_initscripts.yml:8 Wednesday 31 July 2024 09:14:10 -0400 (0:00:00.910) 0:00:00.930 ******** included: /tmp/tmp.Dj2DHDaCMk/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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:3 Wednesday 31 July 2024 09:14:10 -0400 (0:00:00.020) 0:00:00.951 ******** ok: [managed_node1] TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:17 Wednesday 31 July 2024 09:14:11 -0400 (0:00:00.502) 0:00:01.453 ******** ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:22 Wednesday 31 July 2024 09:14:11 -0400 (0:00:00.438) 0:00:01.891 ******** ok: [managed_node1] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:26 Wednesday 31 July 2024 09:14:11 -0400 (0:00:00.035) 0:00:01.927 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/el_repo_setup.yml:51 Wednesday 31 July 2024 09:14:11 -0400 (0:00:00.032) 0:00:01.960 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml for managed_node1 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:8 Wednesday 31 July 2024 09:14:11 -0400 (0:00:00.056) 0:00:02.016 ******** ok: [managed_node1] => { "attempts": 1, "changed": false, "cmd": [ "rpm", "-iv", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "rc": 0 } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists TASK [Install yum-utils package] *********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:24 Wednesday 31 July 2024 09:14:12 -0400 (0:00:00.434) 0:00:02.451 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:30 Wednesday 31 July 2024 09:14:12 -0400 (0:00:00.019) 0:00:02.470 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:35 Wednesday 31 July 2024 09:14:12 -0400 (0:00:00.019) 0:00:02.490 ******** [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ok: [managed_node1] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.248862", "end": "2024-07-31 09:14:12.914169", "rc": 0, "start": "2024-07-31 09:14:12.665307" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tasks/enable_epel.yml:40 Wednesday 31 July 2024 09:14:12 -0400 (0:00:00.602) 0:00:03.092 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tests_auto_gateway_initscripts.yml:10 Wednesday 31 July 2024 09:14:12 -0400 (0:00:00.017) 0:00:03.110 ******** ok: [managed_node1] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for testing auto_gateway setting] *********************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:3 Wednesday 31 July 2024 09:14:13 -0400 (0:00:00.019) 0:00:03.129 ******** ok: [managed_node1] META: ran handlers TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:9 Wednesday 31 July 2024 09:14:13 -0400 (0:00:00.628) 0:00:03.757 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 31 July 2024 09:14:13 -0400 (0:00:00.045) 0:00:03.803 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 31 July 2024 09:14:13 -0400 (0:00:00.023) 0:00:03.826 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002881", "end": "2024-07-31 09:14:14.002860", "rc": 0, "start": "2024-07-31 09:14:13.999979" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.353) 0:00:04.180 ******** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.021) 0:00:04.201 ******** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:11 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.019) 0:00:04.221 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:3 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.055) 0:00:04.276 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:8 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.019) 0:00:04.296 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:13 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.019) 0:00:04.315 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.026) 0:00:04.341 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.025) 0:00:04.367 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002827", "end": "2024-07-31 09:14:14.543764", "rc": 0, "start": "2024-07-31 09:14:14.540937" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.354) 0:00:04.721 ******** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.021) 0:00:04.742 ******** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 Wednesday 31 July 2024 09:14:14 -0400 (0:00:00.054) 0:00:04.797 ******** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:27 Wednesday 31 July 2024 09:14:17 -0400 (0:00:02.906) 0:00:07.704 ******** 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.012656", "end": "2024-07-31 09:14:17.907350", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2024-07-31 09:14:17.894694" } 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.003435", "end": "2024-07-31 09:14:18.293214", "item": "ip link set peerveth0 up", "rc": 0, "start": "2024-07-31 09:14:18.289779" } 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.003648", "end": "2024-07-31 09:14:18.636431", "item": "ip link set veth0 up", "rc": 0, "start": "2024-07-31 09:14:18.632783" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:35 Wednesday 31 July 2024 09:14:18 -0400 (0:00:01.111) 0:00:08.816 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.290901", "end": "2024-07-31 09:14:19.282451", "rc": 0, "start": "2024-07-31 09:14:18.991550" } TASK [Delete veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:43 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.646) 0:00:09.462 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:49 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.021) 0:00:09.484 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:54 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.021) 0:00:09.505 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:60 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.021) 0:00:09.526 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:65 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.021) 0:00:09.548 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:15 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.019) 0:00:09.568 ******** included: /tmp/tmp.Dj2DHDaCMk/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'] ******************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.052) 0:00:09.620 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.025) 0:00:09.646 ******** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722431657.898193, "block_size": 4096, "blocks": 0, "ctime": 1722431657.898193, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 24851, "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": 1722431657.898193, "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'] ************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.358) 0:00:10.005 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:17 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.023) 0:00:10.028 ******** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.020) 0:00:10.048 ******** included: /tmp/tmp.Dj2DHDaCMk/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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.035) 0:00:10.084 ******** 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] *********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.021) 0:00:10.105 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 31 July 2024 09:14:19 -0400 (0:00:00.018) 0:00:10.124 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 31 July 2024 09:14:20 -0400 (0:00:00.020) 0:00:10.144 ******** 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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 31 July 2024 09:14:21 -0400 (0:00:01.699) 0:00:11.843 ******** 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] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 31 July 2024 09:14:23 -0400 (0:00:01.757) 0:00:13.601 ******** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 31 July 2024 09:14:23 -0400 (0:00:00.039) 0:00:13.640 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 31 July 2024 09:14:23 -0400 (0:00:00.037) 0:00:13.678 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 31 July 2024 09:14:23 -0400 (0:00:00.037) 0:00:13.716 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 31 July 2024 09:14:23 -0400 (0:00:00.038) 0:00:13.754 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 31 July 2024 09:14:23 -0400 (0:00:00.046) 0:00:13.801 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 31 July 2024 09:14:23 -0400 (0:00:00.037) 0:00:13.838 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 31 July 2024 09:14:23 -0400 (0:00:00.044) 0:00:13.882 ******** changed: [managed_node1] => { "attempts": 1, "changed": true, "rc": 0, "results": [ "Installed: network-scripts-team-1.31-4.el8.x86_64", "Installed: network-scripts-10.00.18-1.el8.x86_64" ] } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 31 July 2024 09:14:27 -0400 (0:00:04.099) 0:00:17.981 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 31 July 2024 09:14:27 -0400 (0:00:00.037) 0:00:18.019 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 31 July 2024 09:14:27 -0400 (0:00:00.037) 0:00:18.057 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 31 July 2024 09:14:27 -0400 (0:00:00.042) 0:00:18.099 ******** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 31 July 2024 09:14:28 -0400 (0:00:00.037) 0:00:18.137 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 31 July 2024 09:14:28 -0400 (0:00:00.036) 0:00:18.174 ******** changed: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 31 July 2024 09:14:29 -0400 (0:00:01.063) 0:00:19.238 ******** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-10822za6k64b6/tmp2xujw3uh" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 31 July 2024 09:14:29 -0400 (0:00:00.391) 0:00:19.629 ******** 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": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0' [004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified) [005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\n"', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 31 July 2024 09:14:36 -0400 (0:00:06.892) 0:00:26.521 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 31 July 2024 09:14:36 -0400 (0:00:00.037) 0:00:26.559 ******** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 31 July 2024 09:14:36 -0400 (0:00:00.039) 0:00:26.599 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)\n[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 31 July 2024 09:14:36 -0400 (0:00:00.039) 0:00:26.638 ******** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 31 July 2024 09:14:36 -0400 (0:00:00.064) 0:00:26.702 ******** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:42 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.443) 0:00:27.146 ******** included: /tmp/tmp.Dj2DHDaCMk/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'] ******************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.086) 0:00:27.233 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.060) 0:00:27.293 ******** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722431657.898193, "block_size": 4096, "blocks": 0, "ctime": 1722431657.898193, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 24851, "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": 1722431657.898193, "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'] ************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.371) 0:00:27.664 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:44 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.040) 0:00:27.705 ******** included: /tmp/tmp.Dj2DHDaCMk/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'] ********************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.088) 0:00:27.794 ******** included: /tmp/tmp.Dj2DHDaCMk/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] ************ task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.063) 0:00:27.857 ******** 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] ******************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:9 Wednesday 31 July 2024 09:14:37 -0400 (0:00:00.079) 0:00:27.937 ******** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722431670.1174436, "block_size": 4096, "blocks": 8, "ctime": 1722431670.1164436, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2301244, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1722431670.1164436, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:17 Wednesday 31 July 2024 09:14:38 -0400 (0:00:00.372) 0:00:28.310 ******** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:25 Wednesday 31 July 2024 09:14:38 -0400 (0:00:00.040) 0:00:28.350 ******** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.019008", "end": "2024-07-31 09:14:38.544839", "rc": 1, "start": "2024-07-31 09:14:38.525831" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:35 Wednesday 31 July 2024 09:14:38 -0400 (0:00:00.389) 0:00:28.740 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 31 July 2024 09:14:38 -0400 (0:00:00.040) 0:00:28.781 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.002502", "end": "2024-07-31 09:14:38.964410", "rc": 0, "start": "2024-07-31 09:14:38.961908" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:56 Wednesday 31 July 2024 09:14:39 -0400 (0:00:00.379) 0:00:29.161 ******** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:62 Wednesday 31 July 2024 09:14:39 -0400 (0:00:00.047) 0:00:29.208 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.002390", "end": "2024-07-31 09:14:39.390288", "rc": 0, "start": "2024-07-31 09:14:39.387898" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:69 Wednesday 31 July 2024 09:14:39 -0400 (0:00:00.378) 0:00:29.586 ******** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'veth0'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:5 Wednesday 31 July 2024 09:14:39 -0400 (0:00:00.047) 0:00:29.633 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:10 Wednesday 31 July 2024 09:14:39 -0400 (0:00:00.043) 0:00:29.676 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:15 Wednesday 31 July 2024 09:14:39 -0400 (0:00:00.041) 0:00:29.718 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:48 Wednesday 31 July 2024 09:14:39 -0400 (0:00:00.074) 0:00:29.793 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003119", "end": "2024-07-31 09:14:39.971674", "rc": 0, "start": "2024-07-31 09:14:39.968555" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp src 10.31.8.160 metric 100 default via 203.0.113.1 dev veth0 metric 65535 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.8.160 metric 100 169.254.0.0/16 dev veth0 scope link metric 1014 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 TASK [Assert default ipv4 route is present] ************************************ task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:52 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.373) 0:00:30.166 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:57 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.040) 0:00:30.207 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003053", "end": "2024-07-31 09:14:40.382818", "rc": 0, "start": "2024-07-31 09:14:40.379765" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 256 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 256 pref medium default via 2001:db8::1 dev veth0 metric 1 pref medium TASK [Assert default ipv6 route is present] ************************************ task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:61 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.370) 0:00:30.578 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEARDOWN: remove profiles.] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:67 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.036) 0:00:30.614 ******** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.037) 0:00:30.652 ******** included: /tmp/tmp.Dj2DHDaCMk/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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.066) 0:00:30.719 ******** 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] *********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.046) 0:00:30.765 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.037) 0:00:30.803 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 31 July 2024 09:14:40 -0400 (0:00:00.037) 0:00:30.841 ******** 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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 31 July 2024 09:14:42 -0400 (0:00:01.626) 0:00:32.468 ******** 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] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 31 July 2024 09:14:43 -0400 (0:00:01.494) 0:00:33.962 ******** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 31 July 2024 09:14:43 -0400 (0:00:00.040) 0:00:34.002 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 31 July 2024 09:14:43 -0400 (0:00:00.039) 0:00:34.042 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 31 July 2024 09:14:43 -0400 (0:00:00.037) 0:00:34.079 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.070) 0:00:34.150 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.047) 0:00:34.197 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.037) 0:00:34.235 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.044) 0:00:34.280 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.076) 0:00:34.356 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.038) 0:00:34.395 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.038) 0:00:34.433 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.044) 0:00:34.478 ******** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.037) 0:00:34.516 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.037) 0:00:34.554 ******** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 31 July 2024 09:14:44 -0400 (0:00:00.540) 0:00:35.094 ******** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-10822za6k64b6/tmpmdmsl271" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 31 July 2024 09:14:45 -0400 (0:00:00.379) 0:00:35.473 ******** changed: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active) [004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.657) 0:00:36.130 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.037) 0:00:36.168 ******** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.041) 0:00:36.209 ******** ok: [managed_node1] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)\n[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.041) 0:00:36.251 ******** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.038) 0:00:36.289 ******** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:79 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.364) 0:00:36.653 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:3 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.093) 0:00:36.747 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:8 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.038) 0:00:36.786 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:13 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.037) 0:00:36.823 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.060) 0:00:36.884 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 31 July 2024 09:14:46 -0400 (0:00:00.105) 0:00:36.989 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002641", "end": "2024-07-31 09:14:47.166623", "rc": 0, "start": "2024-07-31 09:14:47.163982" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 31 July 2024 09:14:47 -0400 (0:00:00.372) 0:00:37.361 ******** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 Wednesday 31 July 2024 09:14:47 -0400 (0:00:00.040) 0:00:37.402 ******** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 Wednesday 31 July 2024 09:14:47 -0400 (0:00:00.039) 0:00:37.441 ******** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:27 Wednesday 31 July 2024 09:14:50 -0400 (0:00:02.717) 0:00:40.159 ******** skipping: [managed_node1] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "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, "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, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:35 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.056) 0:00:40.215 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:43 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.039) 0:00:40.255 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.014556", "end": "2024-07-31 09:14:50.448251", "rc": 0, "start": "2024-07-31 09:14:50.433695" } TASK [Create dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:49 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.389) 0:00:40.645 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:54 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.039) 0:00:40.684 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:60 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.040) 0:00:40.725 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:65 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.039) 0:00:40.764 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEST: I can configure an interface with auto_gateway disabled] *********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:83 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.039) 0:00:40.803 ******** ok: [managed_node1] => {} MSG: ################################################## TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:87 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.038) 0:00:40.842 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:3 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.095) 0:00:40.938 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:8 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.036) 0:00:40.975 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:13 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.038) 0:00:41.013 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 31 July 2024 09:14:50 -0400 (0:00:00.059) 0:00:41.073 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 31 July 2024 09:14:51 -0400 (0:00:00.058) 0:00:41.132 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002652", "end": "2024-07-31 09:14:51.312147", "rc": 0, "start": "2024-07-31 09:14:51.309495" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 31 July 2024 09:14:51 -0400 (0:00:00.410) 0:00:41.543 ******** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 Wednesday 31 July 2024 09:14:51 -0400 (0:00:00.040) 0:00:41.584 ******** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 Wednesday 31 July 2024 09:14:51 -0400 (0:00:00.039) 0:00:41.624 ******** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:27 Wednesday 31 July 2024 09:14:54 -0400 (0:00:02.727) 0:00:44.351 ******** 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.010450", "end": "2024-07-31 09:14:54.544022", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2024-07-31 09:14:54.533572" } 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.003619", "end": "2024-07-31 09:14:54.928214", "item": "ip link set peerveth0 up", "rc": 0, "start": "2024-07-31 09:14:54.924595" } 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.003269", "end": "2024-07-31 09:14:55.266685", "item": "ip link set veth0 up", "rc": 0, "start": "2024-07-31 09:14:55.263416" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:35 Wednesday 31 July 2024 09:14:55 -0400 (0:00:01.112) 0:00:45.464 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.022381", "end": "2024-07-31 09:14:55.663524", "rc": 0, "start": "2024-07-31 09:14:55.641143" } TASK [Delete veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:43 Wednesday 31 July 2024 09:14:55 -0400 (0:00:00.396) 0:00:45.860 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:49 Wednesday 31 July 2024 09:14:55 -0400 (0:00:00.040) 0:00:45.901 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:54 Wednesday 31 July 2024 09:14:55 -0400 (0:00:00.075) 0:00:45.976 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:60 Wednesday 31 July 2024 09:14:55 -0400 (0:00:00.038) 0:00:46.015 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:65 Wednesday 31 July 2024 09:14:55 -0400 (0:00:00.040) 0:00:46.055 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 31 July 2024 09:14:55 -0400 (0:00:00.039) 0:00:46.094 ******** included: /tmp/tmp.Dj2DHDaCMk/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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 31 July 2024 09:14:56 -0400 (0:00:00.067) 0:00:46.162 ******** 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] *********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 31 July 2024 09:14:56 -0400 (0:00:00.046) 0:00:46.208 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 31 July 2024 09:14:56 -0400 (0:00:00.037) 0:00:46.245 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 31 July 2024 09:14:56 -0400 (0:00:00.036) 0:00:46.282 ******** 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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 31 July 2024 09:14:57 -0400 (0:00:01.608) 0:00:47.890 ******** 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] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 31 July 2024 09:14:59 -0400 (0:00:01.546) 0:00:49.437 ******** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.039) 0:00:49.476 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.038) 0:00:49.514 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.037) 0:00:49.551 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.038) 0:00:49.590 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.046) 0:00:49.636 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.037) 0:00:49.674 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.047) 0:00:49.721 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.116) 0:00:49.838 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.037) 0:00:49.875 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.038) 0:00:49.913 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.045) 0:00:49.958 ******** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.037) 0:00:49.996 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 31 July 2024 09:14:59 -0400 (0:00:00.038) 0:00:50.035 ******** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 31 July 2024 09:15:00 -0400 (0:00:00.542) 0:00:50.578 ******** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-10822za6k64b6/tmp9no2t8mx" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 31 July 2024 09:15:00 -0400 (0:00:00.382) 0:00:50.960 ******** 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": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0' [004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified) [005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\n"', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 31 July 2024 09:15:07 -0400 (0:00:06.691) 0:00:57.652 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 31 July 2024 09:15:07 -0400 (0:00:00.077) 0:00:57.729 ******** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 31 July 2024 09:15:07 -0400 (0:00:00.040) 0:00:57.770 ******** 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": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)\n[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 31 July 2024 09:15:07 -0400 (0:00:00.042) 0:00:57.812 ******** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 31 July 2024 09:15:07 -0400 (0:00:00.037) 0:00:57.850 ******** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:108 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.366) 0:00:58.216 ******** included: /tmp/tmp.Dj2DHDaCMk/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'] ******************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.093) 0:00:58.310 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml for managed_node1 TASK [Get stat for interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.060) 0:00:58.370 ******** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722431694.5365999, "block_size": 4096, "blocks": 0, "ctime": 1722431694.5365999, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 25437, "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": 1722431694.5365999, "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'] ************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_device_present.yml:5 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.375) 0:00:58.745 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Include the task 'assert_profile_present.yml'] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:110 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.042) 0:00:58.788 ******** included: /tmp/tmp.Dj2DHDaCMk/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'] ********************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.139) 0:00:58.928 ******** included: /tmp/tmp.Dj2DHDaCMk/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] ************ task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.063) 0:00:58.991 ******** 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] ******************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:9 Wednesday 31 July 2024 09:15:08 -0400 (0:00:00.040) 0:00:59.032 ******** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722431701.2781577, "block_size": 4096, "blocks": 8, "ctime": 1722431701.2601578, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2301236, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1722431701.2601578, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 263, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:17 Wednesday 31 July 2024 09:15:09 -0400 (0:00:00.373) 0:00:59.406 ******** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:25 Wednesday 31 July 2024 09:15:09 -0400 (0:00:00.041) 0:00:59.447 ******** fatal: [managed_node1]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.019665", "end": "2024-07-31 09:15:09.646066", "rc": 1, "start": "2024-07-31 09:15:09.626401" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:35 Wednesday 31 July 2024 09:15:09 -0400 (0:00:00.395) 0:00:59.842 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 31 July 2024 09:15:09 -0400 (0:00:00.039) 0:00:59.882 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.002667", "end": "2024-07-31 09:15:10.066943", "rc": 0, "start": "2024-07-31 09:15:10.064276" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:56 Wednesday 31 July 2024 09:15:10 -0400 (0:00:00.381) 0:01:00.264 ******** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [Get the fingerprint comment in ifcfg-veth0] ****************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:62 Wednesday 31 July 2024 09:15:10 -0400 (0:00:00.047) 0:01:00.312 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "grep", "^# system_role:network", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.002743", "end": "2024-07-31 09:15:10.499959", "rc": 0, "start": "2024-07-31 09:15:10.497216" } STDOUT: # system_role:network TASK [Verify the fingerprint comment in ifcfg-veth0] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_profile_stat.yml:69 Wednesday 31 July 2024 09:15:10 -0400 (0:00:00.385) 0:01:00.697 ******** ok: [managed_node1] => { "ansible_facts": { "lsr_net_profile_fingerprint": true }, "changed": false } TASK [Assert that the profile is present - 'veth0'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:5 Wednesday 31 July 2024 09:15:10 -0400 (0:00:00.093) 0:01:00.791 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the ansible managed comment is present in 'veth0'] *********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:10 Wednesday 31 July 2024 09:15:10 -0400 (0:00:00.042) 0:01:00.834 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Assert that the fingerprint comment is present in veth0] ***************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/assert_profile_present.yml:15 Wednesday 31 July 2024 09:15:10 -0400 (0:00:00.043) 0:01:00.878 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Show ipv4 routes] ******************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:114 Wednesday 31 July 2024 09:15:10 -0400 (0:00:00.041) 0:01:00.919 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "route" ], "delta": "0:00:00.003346", "end": "2024-07-31 09:15:11.101241", "rc": 0, "start": "2024-07-31 09:15:11.097895" } STDOUT: default via 10.31.8.1 dev eth0 proto dhcp src 10.31.8.160 metric 100 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.8.160 metric 100 169.254.0.0/16 dev veth0 scope link metric 1016 203.0.113.0/24 dev veth0 proto kernel scope link src 203.0.113.2 TASK [Assert default ipv4 route is absent] ************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:118 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.379) 0:01:01.299 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:123 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.041) 0:01:01.341 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003423", "end": "2024-07-31 09:15:11.519040", "rc": 0, "start": "2024-07-31 09:15:11.515617" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/64 dev veth0 proto kernel metric 256 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 256 pref medium default via 2001:db8::1 dev veth0 metric 1 pref medium TASK [Assert default ipv6 route is absent] ************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:127 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.374) 0:01:01.715 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [TEARDOWN: remove profiles.] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:133 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.037) 0:01:01.753 ******** ok: [managed_node1] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.039) 0:01:01.792 ******** included: /tmp/tmp.Dj2DHDaCMk/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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.068) 0:01:01.860 ******** 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] *********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:12 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.047) 0:01:01.908 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Set flag to indicate system is ostree] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:17 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.039) 0:01:01.947 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 Wednesday 31 July 2024 09:15:11 -0400 (0:00:00.038) 0:01:01.985 ******** 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] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Wednesday 31 July 2024 09:15:13 -0400 (0:00:01.674) 0:01:03.659 ******** 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] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 31 July 2024 09:15:15 -0400 (0:00:01.506) 0:01:05.166 ******** ok: [managed_node1] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.040) 0:01:05.207 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.039) 0:01:05.246 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying teaming configuration if the system version of the managed host is EL10 or later] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:25 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.038) 0:01:05.284 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the DNF package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:36 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.080) 0:01:05.364 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Check if updates for network packages are available through the YUM package manager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:48 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.046) 0:01:05.411 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Ask user's consent to restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:60 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.038) 0:01:05.449 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.045) 0:01:05.495 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:85 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.077) 0:01:05.573 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:96 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.037) 0:01:05.610 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:109 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.038) 0:01:05.649 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:122 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.044) 0:01:05.694 ******** skipping: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.038) 0:01:05.732 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Wednesday 31 July 2024 09:15:15 -0400 (0:00:00.038) 0:01:05.771 ******** ok: [managed_node1] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:150 Wednesday 31 July 2024 09:15:16 -0400 (0:00:00.544) 0:01:06.316 ******** ok: [managed_node1] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-10822za6k64b6/tmph7saol2b" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 Wednesday 31 July 2024 09:15:16 -0400 (0:00:00.385) 0:01:06.702 ******** changed: [managed_node1] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active) [004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:171 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.670) 0:01:07.372 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:177 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.037) 0:01:07.410 ******** ok: [managed_node1] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:181 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.041) 0:01:07.451 ******** ok: [managed_node1] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)\n[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:186 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.041) 0:01:07.493 ******** skipping: [managed_node1] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:192 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.038) 0:01:07.531 ******** ok: [managed_node1] => { "changed": false, "ping": "pong" } TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:145 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.368) 0:01:07.899 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml for managed_node1 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:3 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.101) 0:01:08.001 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:8 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.037) 0:01:08.039 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:13 Wednesday 31 July 2024 09:15:17 -0400 (0:00:00.037) 0:01:08.076 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml for managed_node1 TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 31 July 2024 09:15:18 -0400 (0:00:00.061) 0:01:08.138 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml for managed_node1 TASK [Gather current interface info] ******************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 31 July 2024 09:15:18 -0400 (0:00:00.110) 0:01:08.249 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002681", "end": "2024-07-31 09:15:18.428982", "rc": 0, "start": "2024-07-31 09:15:18.426301" } STDOUT: eth0 lo peerveth0 veth0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 31 July 2024 09:15:18 -0400 (0:00:00.377) 0:01:08.626 ******** ok: [managed_node1] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "peerveth0", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/show_interfaces.yml:5 Wednesday 31 July 2024 09:15:18 -0400 (0:00:00.040) 0:01:08.667 ******** ok: [managed_node1] => {} MSG: current_interfaces: ['eth0', 'lo', 'peerveth0', 'veth0'] TASK [Install iproute] ********************************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 Wednesday 31 July 2024 09:15:18 -0400 (0:00:00.040) 0:01:08.707 ******** ok: [managed_node1] => { "attempts": 1, "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:27 Wednesday 31 July 2024 09:15:21 -0400 (0:00:02.849) 0:01:11.556 ******** skipping: [managed_node1] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "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, "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, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:35 Wednesday 31 July 2024 09:15:21 -0400 (0:00:00.057) 0:01:11.614 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:43 Wednesday 31 July 2024 09:15:21 -0400 (0:00:00.039) 0:01:11.653 ******** ok: [managed_node1] => { "changed": false, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.010737", "end": "2024-07-31 09:15:21.843261", "rc": 0, "start": "2024-07-31 09:15:21.832524" } TASK [Create dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:49 Wednesday 31 July 2024 09:15:21 -0400 (0:00:00.388) 0:01:12.042 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:54 Wednesday 31 July 2024 09:15:21 -0400 (0:00:00.040) 0:01:12.083 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:60 Wednesday 31 July 2024 09:15:22 -0400 (0:00:00.123) 0:01:12.206 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:65 Wednesday 31 July 2024 09:15:22 -0400 (0:00:00.040) 0:01:12.246 ******** skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify network state restored to default] ******************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tests_auto_gateway.yml:149 Wednesday 31 July 2024 09:15:22 -0400 (0:00:00.039) 0:01:12.286 ******** included: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml for managed_node1 TASK [Check routes and DNS] **************************************************** task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml:6 Wednesday 31 July 2024 09:15:22 -0400 (0:00:00.098) 0:01:12.385 ******** 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.008016", "end": "2024-07-31 09:15:22.568853", "rc": 0, "start": "2024-07-31 09:15:22.560837" } 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 12:9b:bd:a1:8b:df brd ff:ff:ff:ff:ff:ff inet 10.31.8.160/22 brd 10.31.11.255 scope global dynamic noprefixroute eth0 valid_lft 3444sec preferred_lft 3444sec inet6 fe80::109b:bdff:fea1:8bdf/64 scope link valid_lft forever preferred_lft forever IP ROUTE default via 10.31.8.1 dev eth0 proto dhcp src 10.31.8.160 metric 100 10.31.8.0/22 dev eth0 proto kernel scope link src 10.31.8.160 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] ************************************* task path: /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/check_network_dns.yml:24 Wednesday 31 July 2024 09:15:22 -0400 (0:00:00.379) 0:01:12.764 ******** 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.273022", "end": "2024-07-31 09:15:23.222031", "rc": 0, "start": "2024-07-31 09:15:22.949009" } STDOUT: CHECK DNS AND CONNECTIVITY 2620:52:3:1:dead:beef:cafe:fed6 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.fedoraproject.org 2600:2701:4000:5211:dead:beef:fe:fed3 wildcard.fedoraproject.org mirrors.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 wildcard.fedoraproject.org mirrors.fedoraproject.org 2600:1f14:fad:5c02:7c8a:72d0:1c58:c189 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2600:2701:4000:5211:dead:beef:fe:fed3 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2620:52:3:1:dead:beef:cafe:fed6 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2605:bc80:3010:600:dead:beef:cafe:fed9 wildcard.fedoraproject.org mirrors.centos.org mirrors.fedoraproject.org 2604:1580:fe00:0:dead:beef:cafe:fed1 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 1337 0 --:--:-- --:--:-- --:--:-- 1337 % 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 13227 0 --:--:-- --:--:-- --:--:-- 13227 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node1 : ok=141 changed=6 unreachable=0 failed=0 skipped=105 rescued=0 ignored=2 Wednesday 31 July 2024 09:15:23 -0400 (0:00:00.638) 0:01:13.403 ******** =============================================================================== fedora.linux_system_roles.network : Configure networking connection profiles --- 6.89s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 fedora.linux_system_roles.network : Configure networking connection profiles --- 6.69s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159 fedora.linux_system_roles.network : Install packages -------------------- 4.10s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:73 Install iproute --------------------------------------------------------- 2.91s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 Install iproute --------------------------------------------------------- 2.85s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 Install iproute --------------------------------------------------------- 2.73s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 Install iproute --------------------------------------------------------- 2.72s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:16 fedora.linux_system_roles.network : Check which packages are installed --- 1.76s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which services are running ---- 1.70s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which services are running ---- 1.67s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which services are running ---- 1.63s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which services are running ---- 1.61s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:21 fedora.linux_system_roles.network : Check which packages are installed --- 1.55s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which packages are installed --- 1.51s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 fedora.linux_system_roles.network : Check which packages are installed --- 1.49s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:26 Create veth interface veth0 --------------------------------------------- 1.11s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:27 Create veth interface veth0 --------------------------------------------- 1.11s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/playbooks/tasks/manage_test_interface.yml:27 fedora.linux_system_roles.network : Enable network service -------------- 1.06s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:142 Gathering Facts --------------------------------------------------------- 0.91s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/tests/network/tests_auto_gateway_initscripts.yml:5 fedora.linux_system_roles.network : Configure networking connection profiles --- 0.67s /tmp/tmp.Dj2DHDaCMk/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:159