# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file 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_network_state_nm.yml ******************************************* 2 plays in /WORKDIR/git-code_refactorwk092_tu/tests/tests_network_state_nm.yml PLAY [Run playbook 'playbooks/tests_network_state.yml' with nm as provider] **** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/tests_network_state_nm.yml:5 Thursday 30 November 2023 17:09:30 +0000 (0:00:00.017) 0:00:00.018 ***** ok: [sut] META: ran handlers TASK [Include the task 'el_repo_setup.yml'] ************************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/tests_network_state_nm.yml:9 Thursday 30 November 2023 17:09:30 +0000 (0:00:00.663) 0:00:00.681 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml for sut TASK [Gather the minimum subset of ansible_facts required by the network role test] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:3 Thursday 30 November 2023 17:09:30 +0000 (0:00:00.023) 0:00:00.705 ***** ok: [sut] TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:19 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.333) 0:00:01.038 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:24 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.266) 0:00:01.304 ***** ok: [sut] => { "ansible_facts": { "__network_is_ostree": false }, "changed": false } TASK [Fix CentOS6 Base repo] *************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:28 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.026) 0:00:01.330 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'enable_epel.yml'] ************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/el_repo_setup.yml:53 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.020) 0:00:01.351 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:8 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.040) 0:00:01.392 ***** ok: [sut] => { "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: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:24 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.250) 0:00:01.642 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:30 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.014) 0:00:01.656 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:35 Thursday 30 November 2023 17:09:31 +0000 (0:00:00.017) 0:00:01.674 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.372755", "end": "2023-11-30 17:09:32.355086", "rc": 0, "start": "2023-11-30 17:09:31.982331" } TASK [Enable EPEL 6] *********************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tasks/enable_epel.yml:40 Thursday 30 November 2023 17:09:32 +0000 (0:00:00.562) 0:00:02.236 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/tests_network_state_nm.yml:11 Thursday 30 November 2023 17:09:32 +0000 (0:00:00.013) 0:00:02.250 ***** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } META: ran handlers META: ran handlers PLAY [Play for configuring network using network state variable] *************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:3 Thursday 30 November 2023 17:09:32 +0000 (0:00:00.015) 0:00:02.265 ***** ok: [sut] META: ran handlers TASK [Set type=veth and interface=ethtest0] ************************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:12 Thursday 30 November 2023 17:09:32 +0000 (0:00:00.499) 0:00:02.765 ***** ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:16 Thursday 30 November 2023 17:09:32 +0000 (0:00:00.018) 0:00:02.783 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 17:09:32 +0000 (0:00:00.030) 0:00:02.813 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 17:09:32 +0000 (0:00:00.019) 0:00:02.833 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003800", "end": "2023-11-30 17:09:33.147215", "rc": 0, "start": "2023-11-30 17:09:33.143415" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.194) 0:00:03.027 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.017) 0:00:03.044 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:18 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.014) 0:00:03.059 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.035) 0:00:03.095 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.015) 0:00:03.110 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.015) 0:00:03.125 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.020) 0:00:03.145 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.018) 0:00:03.163 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002978", "end": "2023-11-30 17:09:33.474894", "rc": 0, "start": "2023-11-30 17:09:33.471916" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.191) 0:00:03.354 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.021) 0:00:03.376 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 17:09:33 +0000 (0:00:00.020) 0:00:03.397 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest0] ****************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:24 Thursday 30 November 2023 17:09:35 +0000 (0:00:01.692) 0:00:05.090 ***** ok: [sut] => (item=ip link add ethtest0 type veth peer name peerethtest0) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "ethtest0", "type", "veth", "peer", "name", "peerethtest0" ], "delta": "0:00:00.013129", "end": "2023-11-30 17:09:35.419616", "item": "ip link add ethtest0 type veth peer name peerethtest0", "rc": 0, "start": "2023-11-30 17:09:35.406487" } ok: [sut] => (item=ip link set peerethtest0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerethtest0", "up" ], "delta": "0:00:00.010542", "end": "2023-11-30 17:09:35.647825", "item": "ip link set peerethtest0 up", "rc": 0, "start": "2023-11-30 17:09:35.637283" } ok: [sut] => (item=ip link set ethtest0 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "ethtest0", "up" ], "delta": "0:00:00.008059", "end": "2023-11-30 17:09:35.840205", "item": "ip link set ethtest0 up", "rc": 0, "start": "2023-11-30 17:09:35.832146" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:33 Thursday 30 November 2023 17:09:35 +0000 (0:00:00.634) 0:00:05.724 ***** ok: [sut] => { "changed": false, "cmd": [ "nmcli", "d", "set", "ethtest0", "managed", "true" ], "delta": "0:00:00.022671", "end": "2023-11-30 17:09:36.054697", "rc": 0, "start": "2023-11-30 17:09:36.032026" } TASK [Delete veth interface ethtest0] ****************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:41 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.214) 0:00:05.939 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest0] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:48 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.018) 0:00:05.958 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest0] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:54 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.018) 0:00:05.976 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest0] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.019) 0:00:05.996 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest0] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:67 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.018) 0:00:06.015 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:22 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.016) 0:00:06.031 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.034) 0:00:06.066 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.028) 0:00:06.094 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701364175.4099512, "block_size": 4096, "blocks": 0, "ctime": 1701364175.4099512, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 36745, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/ethtest0", "lnk_target": "../../devices/virtual/net/ethtest0", "mode": "0777", "mtime": 1701364175.4099512, "nlink": 1, "path": "/sys/class/net/ethtest0", "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 - 'ethtest0'] *********************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.198) 0:00:06.292 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set type=veth and interface=ethtest1] ************************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:24 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.019) 0:00:06.312 ***** ok: [sut] => { "ansible_facts": { "interface": "ethtest1", "type": "veth" }, "changed": false } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:28 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.016) 0:00:06.328 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.035) 0:00:06.363 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.018) 0:00:06.382 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003176", "end": "2023-11-30 17:09:36.694633", "rc": 0, "start": "2023-11-30 17:09:36.691457" } STDOUT: bonding_masters eth0 ethtest0 lo peerethtest0 TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.193) 0:00:06.575 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "ethtest0", "lo", "peerethtest0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.017) 0:00:06.593 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'ethtest0', 'lo', 'peerethtest0'] TASK [Include the task 'manage_test_interface.yml'] **************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:30 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.016) 0:00:06.609 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:3 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.036) 0:00:06.646 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:8 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.015) 0:00:06.661 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'show_interfaces.yml'] ********************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:13 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.013) 0:00:06.675 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml for sut TASK [Include the task 'get_current_interfaces.yml'] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:3 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.019) 0:00:06.695 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:3 Thursday 30 November 2023 17:09:36 +0000 (0:00:00.019) 0:00:06.714 ***** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003309", "end": "2023-11-30 17:09:37.025942", "rc": 0, "start": "2023-11-30 17:09:37.022633" } STDOUT: bonding_masters eth0 ethtest0 lo peerethtest0 TASK [Set current_interfaces] ************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_current_interfaces.yml:9 Thursday 30 November 2023 17:09:37 +0000 (0:00:00.192) 0:00:06.906 ***** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "ethtest0", "lo", "peerethtest0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/show_interfaces.yml:5 Thursday 30 November 2023 17:09:37 +0000 (0:00:00.018) 0:00:06.925 ***** ok: [sut] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'ethtest0', 'lo', 'peerethtest0'] TASK [Install iproute] ********************************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:16 Thursday 30 November 2023 17:09:37 +0000 (0:00:00.017) 0:00:06.943 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface ethtest1] ****************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:24 Thursday 30 November 2023 17:09:38 +0000 (0:00:01.442) 0:00:08.385 ***** ok: [sut] => (item=ip link add ethtest1 type veth peer name peerethtest1) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "add", "ethtest1", "type", "veth", "peer", "name", "peerethtest1" ], "delta": "0:00:00.013368", "end": "2023-11-30 17:09:38.714245", "item": "ip link add ethtest1 type veth peer name peerethtest1", "rc": 0, "start": "2023-11-30 17:09:38.700877" } ok: [sut] => (item=ip link set peerethtest1 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "peerethtest1", "up" ], "delta": "0:00:00.010515", "end": "2023-11-30 17:09:38.936524", "item": "ip link set peerethtest1 up", "rc": 0, "start": "2023-11-30 17:09:38.926009" } ok: [sut] => (item=ip link set ethtest1 up) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "ip", "link", "set", "ethtest1", "up" ], "delta": "0:00:00.008564", "end": "2023-11-30 17:09:39.132104", "item": "ip link set ethtest1 up", "rc": 0, "start": "2023-11-30 17:09:39.123540" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:33 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.629) 0:00:09.015 ***** ok: [sut] => { "changed": false, "cmd": [ "nmcli", "d", "set", "ethtest1", "managed", "true" ], "delta": "0:00:00.024032", "end": "2023-11-30 17:09:39.346846", "rc": 0, "start": "2023-11-30 17:09:39.322814" } TASK [Delete veth interface ethtest1] ****************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:41 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.216) 0:00:09.231 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface ethtest1] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:48 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.019) 0:00:09.250 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface ethtest1] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:54 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.016) 0:00:09.267 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface ethtest1] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:61 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.016) 0:00:09.283 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface ethtest1] ******************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:67 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.017) 0:00:09.300 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include the task 'assert_device_present.yml'] **************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:34 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.013) 0:00:09.314 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml:3 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.036) 0:00:09.351 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest1] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.021) 0:00:09.372 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701364178.7046576, "block_size": 4096, "blocks": 0, "ctime": 1701364178.7046576, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 37331, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/ethtest1", "lnk_target": "../../devices/virtual/net/ethtest1", "mode": "0777", "mtime": 1701364178.7046576, "nlink": 1, "path": "/sys/class/net/ethtest1", "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 - 'ethtest1'] *********************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_present.yml:5 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.194) 0:00:09.567 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.022) 0:00:09.590 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.091) 0:00:09.681 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.027) 0:00:09.709 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.025) 0:00:09.734 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:09:39 +0000 (0:00:00.029) 0:00:09.763 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:09:41 +0000 (0:00:01.772) 0:00:11.536 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:09:43 +0000 (0:00:01.458) 0:00:12.994 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:09:43 +0000 (0:00:00.039) 0:00:13.034 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:09:43 +0000 (0:00:00.044) 0:00:13.079 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:09:43 +0000 (0:00:00.041) 0:00:13.120 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:09:43 +0000 (0:00:00.065) 0:00:13.186 ***** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-libnmstate-1.4.4-3.el8.noarch", "Installed: python3-varlink-29.0.0-1.el8.noarch", "Installed: nispor-1.2.10-1.el8.x86_64", "Installed: nmstate-1.4.4-3.el8.x86_64", "Installed: python3-nispor-1.2.10-1.el8.noarch", "Installed: NetworkManager-config-server-1:1.40.16-9.el8.noarch" ] } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:09:47 +0000 (0:00:03.720) 0:00:16.907 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:09:47 +0000 (0:00:00.039) 0:00:16.947 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:09:47 +0000 (0:00:00.039) 0:00:16.986 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:09:47 +0000 (0:00:00.548) 0:00:17.534 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:09:47 +0000 (0:00:00.042) 0:00:17.577 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:09:47 +0000 (0:00:00.037) 0:00:17.614 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:09:47 +0000 (0:00:00.040) 0:00:17.654 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:09:48 +0000 (0:00:00.542) 0:00:18.197 ***** changed: [sut] => { "changed": true, "state": { "dns-resolver": { "config": {} }, "interfaces": [ { "_permanent_mac_address": "02:33:5c:46:47:45", "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [], "auto-dns": true, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "dhcp": true, "enabled": true }, "ipv6": { "address": [ { "ip": "fe80::33:5cff:fe46:4745", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "02:33:5C:46:47:45", "mtu": 9001, "name": "eth0", "state": "up", "type": "ethernet", "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.250", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "address": [ { "ip": "2001:db8::1:1", "prefix-length": 64 }, { "ip": "fe80::28a1:bfff:fe00:749d", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "2A:A1:BF:00:74:9D", "mtu": 1500, "name": "ethtest0", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest0" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.88", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "addr-gen-mode": "stable-privacy", "address": [ { "ip": "fe80::48cf:3358:c409:8249", "prefix-length": 64 } ], "auto-dns": false, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "autoconf": true, "dhcp": true, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "1E:29:E3:00:C4:23", "mtu": 1500, "name": "ethtest1", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest1" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [ { "ip": "127.0.0.1", "prefix-length": 8 } ], "enabled": true }, "ipv6": { "address": [ { "ip": "::1", "prefix-length": 128 } ], "enabled": true }, "mac-address": "00:00:00:00:00:00", "mtu": 65536, "name": "lo", "state": "up", "type": "unknown" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::4c69:4ff:fe90:88c2", "prefix-length": 64 } ], "enabled": true }, "mac-address": "4E:69:04:90:88:C2", "mtu": 1500, "name": "peerethtest0", "state": "up", "type": "veth", "veth": { "peer": "ethtest0" } }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::f455:28ff:fe28:7645", "prefix-length": 64 } ], "enabled": true }, "mac-address": "F6:55:28:28:76:45", "mtu": 1500, "name": "peerethtest1", "state": "up", "type": "veth", "veth": { "peer": "ethtest1" } } ], "route-rules": { "config": [] }, "routes": { "config": [] } } } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:09:50 +0000 (0:00:01.790) 0:00:19.988 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:09:50 +0000 (0:00:00.043) 0:00:20.031 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:09:50 +0000 (0:00:00.038) 0:00:20.070 ***** ok: [sut] => { "__network_state_result": { "changed": true, "failed": false, "state": { "dns-resolver": { "config": {} }, "interfaces": [ { "_permanent_mac_address": "02:33:5c:46:47:45", "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [], "auto-dns": true, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "dhcp": true, "enabled": true }, "ipv6": { "address": [ { "ip": "fe80::33:5cff:fe46:4745", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "02:33:5C:46:47:45", "mtu": 9001, "name": "eth0", "state": "up", "type": "ethernet", "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.250", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "address": [ { "ip": "2001:db8::1:1", "prefix-length": 64 }, { "ip": "fe80::28a1:bfff:fe00:749d", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "2A:A1:BF:00:74:9D", "mtu": 1500, "name": "ethtest0", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest0" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.88", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "addr-gen-mode": "stable-privacy", "address": [ { "ip": "fe80::48cf:3358:c409:8249", "prefix-length": 64 } ], "auto-dns": false, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "autoconf": true, "dhcp": true, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "1E:29:E3:00:C4:23", "mtu": 1500, "name": "ethtest1", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest1" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [ { "ip": "127.0.0.1", "prefix-length": 8 } ], "enabled": true }, "ipv6": { "address": [ { "ip": "::1", "prefix-length": 128 } ], "enabled": true }, "mac-address": "00:00:00:00:00:00", "mtu": 65536, "name": "lo", "state": "up", "type": "unknown" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::4c69:4ff:fe90:88c2", "prefix-length": 64 } ], "enabled": true }, "mac-address": "4E:69:04:90:88:C2", "mtu": 1500, "name": "peerethtest0", "state": "up", "type": "veth", "veth": { "peer": "ethtest0" } }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::f455:28ff:fe28:7645", "prefix-length": 64 } ], "enabled": true }, "mac-address": "F6:55:28:28:76:45", "mtu": 1500, "name": "peerethtest1", "state": "up", "type": "veth", "veth": { "peer": "ethtest1" } } ], "route-rules": { "config": [] }, "routes": { "config": [] } } } } TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:09:50 +0000 (0:00:00.045) 0:00:20.116 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the ethtest0 state configuration] ************************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:75 Thursday 30 November 2023 17:09:50 +0000 (0:00:00.300) 0:00:20.416 ***** ok: [sut] => { "changed": false, "cmd": [ "nmstatectl", "show", "ethtest0" ], "delta": "0:00:00.477677", "end": "2023-11-30 17:09:51.202676", "rc": 0, "start": "2023-11-30 17:09:50.724999" } STDOUT: --- dns-resolver: config: {} running: search: - us-east-1.aws.redhat.com server: - 10.29.169.13 - 10.29.170.12 - 10.2.32.1 route-rules: config: [] routes: config: [] running: - destination: 2001:db8::/64 metric: 101 next-hop-address: '::' next-hop-interface: ethtest0 table-id: 254 - destination: fe80::/64 metric: 1024 next-hop-address: '::' next-hop-interface: ethtest0 table-id: 254 - destination: 192.168.122.0/24 metric: 101 next-hop-address: 0.0.0.0 next-hop-interface: ethtest0 table-id: 254 interfaces: - name: ethtest0 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: true address: - ip: 192.168.122.250 prefix-length: 24 dhcp: false ipv6: enabled: true address: - ip: 2001:db8::1:1 prefix-length: 64 - ip: fe80::28a1:bfff:fe00:749d prefix-length: 64 autoconf: false dhcp: false lldp: enabled: false mac-address: 2A:A1:BF:00:74:9D mtu: 1500 veth: peer: peerethtest0 wait-ip: any STDERR: 2023-11-30 17:09:51,141 root DEBUG NetworkManager version 1.40.16 2023-11-30 17:09:51,143 root DEBUG Async action: Retrieve applied config: ethernet eth0 started 2023-11-30 17:09:51,143 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 started 2023-11-30 17:09:51,143 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 started 2023-11-30 17:09:51,145 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished 2023-11-30 17:09:51,146 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 finished 2023-11-30 17:09:51,146 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 finished 2023-11-30 17:09:51,148 root DEBUG Interface ethernet.eth0 found. Merging the interface information. 2023-11-30 17:09:51,149 root DEBUG Interface ethernet.ethtest0 found. Merging the interface information. 2023-11-30 17:09:51,149 root DEBUG Interface ethernet.ethtest1 found. Merging the interface information. TASK [Get the ethtest1 state configuration] ************************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:81 Thursday 30 November 2023 17:09:51 +0000 (0:00:00.683) 0:00:21.100 ***** ok: [sut] => { "changed": false, "cmd": [ "nmstatectl", "show", "ethtest1" ], "delta": "0:00:01.479485", "end": "2023-11-30 17:09:52.887245", "rc": 0, "start": "2023-11-30 17:09:51.407760" } STDOUT: --- dns-resolver: config: {} running: search: - us-east-1.aws.redhat.com server: - 10.29.169.13 - 10.29.170.12 - 10.2.32.1 route-rules: config: [] routes: config: [] running: - destination: fe80::/64 metric: 1024 next-hop-address: '::' next-hop-interface: ethtest1 table-id: 254 - destination: 192.168.122.0/24 metric: 102 next-hop-address: 0.0.0.0 next-hop-interface: ethtest1 table-id: 254 interfaces: - name: ethtest1 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: true address: - ip: 192.168.122.88 prefix-length: 24 dhcp: false ipv6: enabled: true addr-gen-mode: stable-privacy address: - ip: fe80::48cf:3358:c409:8249 prefix-length: 64 auto-dns: false auto-gateway: true auto-route-table-id: 0 auto-routes: true autoconf: true dhcp: true lldp: enabled: false mac-address: 1E:29:E3:00:C4:23 mtu: 1500 veth: peer: peerethtest1 wait-ip: any STDERR: 2023-11-30 17:09:51,824 root DEBUG NetworkManager version 1.40.16 2023-11-30 17:09:51,826 root DEBUG Async action: Retrieve applied config: ethernet eth0 started 2023-11-30 17:09:51,826 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 started 2023-11-30 17:09:51,827 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 started 2023-11-30 17:09:51,828 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished 2023-11-30 17:09:51,829 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 finished 2023-11-30 17:09:51,830 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 finished 2023-11-30 17:09:51,832 root DEBUG Interface ethernet.eth0 found. Merging the interface information. 2023-11-30 17:09:51,832 root DEBUG Interface ethernet.ethtest0 found. Merging the interface information. 2023-11-30 17:09:51,832 root DEBUG Interface ethernet.ethtest1 found. Merging the interface information. TASK [Assert that the ethtest0 state configuration contains the specified settings] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:87 Thursday 30 November 2023 17:09:52 +0000 (0:00:01.688) 0:00:22.789 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the ethtest1 state configuration contains the specified settings] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:96 Thursday 30 November 2023 17:09:52 +0000 (0:00:00.033) 0:00:22.823 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:09:52 +0000 (0:00:00.032) 0:00:22.855 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:09:53 +0000 (0:00:00.086) 0:00:22.942 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:09:53 +0000 (0:00:00.049) 0:00:22.991 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:09:53 +0000 (0:00:00.078) 0:00:23.070 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:09:53 +0000 (0:00:00.043) 0:00:23.113 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:09:54 +0000 (0:00:01.657) 0:00:24.771 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:09:56 +0000 (0:00:01.266) 0:00:26.037 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:09:56 +0000 (0:00:00.066) 0:00:26.104 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:09:56 +0000 (0:00:00.038) 0:00:26.142 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:09:56 +0000 (0:00:00.037) 0:00:26.179 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:09:56 +0000 (0:00:00.065) 0:00:26.245 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:09:57 +0000 (0:00:01.401) 0:00:27.646 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:09:57 +0000 (0:00:00.039) 0:00:27.685 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:09:57 +0000 (0:00:00.039) 0:00:27.725 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:09:58 +0000 (0:00:00.372) 0:00:28.097 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:09:58 +0000 (0:00:00.057) 0:00:28.154 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:09:58 +0000 (0:00:00.078) 0:00:28.232 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:09:58 +0000 (0:00:00.052) 0:00:28.285 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:09:58 +0000 (0:00:00.371) 0:00:28.656 ***** changed: [sut] => { "changed": true, "state": { "dns-resolver": { "config": {} }, "interfaces": [ { "_permanent_mac_address": "02:33:5c:46:47:45", "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [], "auto-dns": true, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "dhcp": true, "enabled": true }, "ipv6": { "address": [ { "ip": "fe80::33:5cff:fe46:4745", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "02:33:5C:46:47:45", "mtu": 9001, "name": "eth0", "state": "up", "type": "ethernet", "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.250", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "address": [ { "ip": "2001:db8::1:1", "prefix-length": 64 }, { "ip": "fe80::28a1:bfff:fe00:749d", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "2A:A1:BF:00:74:9D", "mtu": 1500, "name": "ethtest0", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest0" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.88", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "addr-gen-mode": "stable-privacy", "address": [ { "ip": "fe80::48cf:3358:c409:8249", "prefix-length": 64 } ], "auto-dns": false, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "autoconf": true, "dhcp": true, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "1E:29:E3:00:C4:23", "mtu": 1500, "name": "ethtest1", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest1" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [ { "ip": "127.0.0.1", "prefix-length": 8 } ], "enabled": true }, "ipv6": { "address": [ { "ip": "::1", "prefix-length": 128 } ], "enabled": true }, "mac-address": "00:00:00:00:00:00", "mtu": 65536, "name": "lo", "state": "up", "type": "unknown" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::4c69:4ff:fe90:88c2", "prefix-length": 64 } ], "enabled": true }, "mac-address": "4E:69:04:90:88:C2", "mtu": 1500, "name": "peerethtest0", "state": "up", "type": "veth", "veth": { "peer": "ethtest0" } }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::f455:28ff:fe28:7645", "prefix-length": 64 } ], "enabled": true }, "mac-address": "F6:55:28:28:76:45", "mtu": 1500, "name": "peerethtest1", "state": "up", "type": "veth", "veth": { "peer": "ethtest1" } } ], "route-rules": { "config": [] }, "routes": { "config": [ { "destination": "192.0.2.100/30", "metric": 150, "next-hop-address": "192.168.122.250", "next-hop-interface": "ethtest0", "table-id": 254 } ] } } } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:09:59 +0000 (0:00:00.650) 0:00:29.306 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:09:59 +0000 (0:00:00.041) 0:00:29.348 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:09:59 +0000 (0:00:00.039) 0:00:29.387 ***** ok: [sut] => { "__network_state_result": { "changed": true, "failed": false, "state": { "dns-resolver": { "config": {} }, "interfaces": [ { "_permanent_mac_address": "02:33:5c:46:47:45", "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [], "auto-dns": true, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "dhcp": true, "enabled": true }, "ipv6": { "address": [ { "ip": "fe80::33:5cff:fe46:4745", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "02:33:5C:46:47:45", "mtu": 9001, "name": "eth0", "state": "up", "type": "ethernet", "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.250", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "address": [ { "ip": "2001:db8::1:1", "prefix-length": 64 }, { "ip": "fe80::28a1:bfff:fe00:749d", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "2A:A1:BF:00:74:9D", "mtu": 1500, "name": "ethtest0", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest0" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.88", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "addr-gen-mode": "stable-privacy", "address": [ { "ip": "fe80::48cf:3358:c409:8249", "prefix-length": 64 } ], "auto-dns": false, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "autoconf": true, "dhcp": true, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "1E:29:E3:00:C4:23", "mtu": 1500, "name": "ethtest1", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest1" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [ { "ip": "127.0.0.1", "prefix-length": 8 } ], "enabled": true }, "ipv6": { "address": [ { "ip": "::1", "prefix-length": 128 } ], "enabled": true }, "mac-address": "00:00:00:00:00:00", "mtu": 65536, "name": "lo", "state": "up", "type": "unknown" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::4c69:4ff:fe90:88c2", "prefix-length": 64 } ], "enabled": true }, "mac-address": "4E:69:04:90:88:C2", "mtu": 1500, "name": "peerethtest0", "state": "up", "type": "veth", "veth": { "peer": "ethtest0" } }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::f455:28ff:fe28:7645", "prefix-length": 64 } ], "enabled": true }, "mac-address": "F6:55:28:28:76:45", "mtu": 1500, "name": "peerethtest1", "state": "up", "type": "veth", "veth": { "peer": "ethtest1" } } ], "route-rules": { "config": [] }, "routes": { "config": [ { "destination": "192.0.2.100/30", "metric": 150, "next-hop-address": "192.168.122.250", "next-hop-interface": "ethtest0", "table-id": 254 } ] } } } } TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:09:59 +0000 (0:00:00.043) 0:00:29.430 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the route configuration] ********************************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:117 Thursday 30 November 2023 17:09:59 +0000 (0:00:00.214) 0:00:29.645 ***** ok: [sut] => { "changed": false, "cmd": [ "nmstatectl", "show" ], "delta": "0:00:00.493257", "end": "2023-11-30 17:10:00.447078", "rc": 0, "start": "2023-11-30 17:09:59.953821" } STDOUT: --- dns-resolver: config: {} running: search: - us-east-1.aws.redhat.com server: - 10.29.169.13 - 10.29.170.12 - 10.2.32.1 route-rules: config: [] routes: config: - destination: 192.0.2.100/30 metric: 150 next-hop-address: 192.168.122.250 next-hop-interface: ethtest0 table-id: 254 running: - destination: 2001:db8::/64 metric: 101 next-hop-address: '::' next-hop-interface: ethtest0 table-id: 254 - destination: fe80::/64 metric: 256 next-hop-address: '::' next-hop-interface: eth0 table-id: 254 - destination: fe80::/64 metric: 256 next-hop-address: '::' next-hop-interface: peerethtest0 table-id: 254 - destination: fe80::/64 metric: 256 next-hop-address: '::' next-hop-interface: peerethtest1 table-id: 254 - destination: fe80::/64 metric: 1024 next-hop-address: '::' next-hop-interface: ethtest1 table-id: 254 - destination: fe80::/64 metric: 1024 next-hop-address: '::' next-hop-interface: ethtest0 table-id: 254 - destination: 0.0.0.0/0 metric: 100 next-hop-address: 10.31.44.1 next-hop-interface: eth0 table-id: 254 - destination: 10.31.44.0/22 metric: 100 next-hop-address: 0.0.0.0 next-hop-interface: eth0 table-id: 254 - destination: 192.0.2.100/30 metric: 150 next-hop-address: 192.168.122.250 next-hop-interface: ethtest0 table-id: 254 - destination: 192.168.122.0/24 metric: 101 next-hop-address: 0.0.0.0 next-hop-interface: ethtest0 table-id: 254 - destination: 192.168.122.0/24 metric: 102 next-hop-address: 0.0.0.0 next-hop-interface: ethtest1 table-id: 254 interfaces: - name: eth0 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: rx-gro: true tx-generic-segmentation: true tx-tcp-segmentation: true ipv4: enabled: true address: - ip: 10.31.46.220 prefix-length: 22 auto-dns: true auto-gateway: true auto-route-table-id: 0 auto-routes: true dhcp: true ipv6: enabled: true address: - ip: fe80::33:5cff:fe46:4745 prefix-length: 64 autoconf: false dhcp: false lldp: enabled: false mac-address: 02:33:5C:46:47:45 mtu: 9001 wait-ip: any - name: ethtest0 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: true address: - ip: 192.168.122.250 prefix-length: 24 dhcp: false ipv6: enabled: true address: - ip: 2001:db8::1:1 prefix-length: 64 - ip: fe80::28a1:bfff:fe00:749d prefix-length: 64 autoconf: false dhcp: false lldp: enabled: false mac-address: 2A:A1:BF:00:74:9D mtu: 1500 veth: peer: peerethtest0 wait-ip: any - name: ethtest1 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: true address: - ip: 192.168.122.88 prefix-length: 24 dhcp: false ipv6: enabled: true addr-gen-mode: stable-privacy address: - ip: fe80::48cf:3358:c409:8249 prefix-length: 64 auto-dns: false auto-gateway: true auto-route-table-id: 0 auto-routes: true autoconf: true dhcp: true lldp: enabled: false mac-address: 1E:29:E3:00:C4:23 mtu: 1500 veth: peer: peerethtest1 wait-ip: any - name: lo type: unknown state: up accept-all-mac-addresses: false ethtool: feature: rx-gro: true tx-generic-segmentation: true tx-tcp-segmentation: true ipv4: enabled: true address: - ip: 127.0.0.1 prefix-length: 8 ipv6: enabled: true address: - ip: ::1 prefix-length: 128 mac-address: 00:00:00:00:00:00 mtu: 65536 - name: peerethtest0 type: veth state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: false address: [] ipv6: enabled: true address: - ip: fe80::4c69:4ff:fe90:88c2 prefix-length: 64 mac-address: 4E:69:04:90:88:C2 mtu: 1500 veth: peer: ethtest0 - name: peerethtest1 type: veth state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: false address: [] ipv6: enabled: true address: - ip: fe80::f455:28ff:fe28:7645 prefix-length: 64 mac-address: F6:55:28:28:76:45 mtu: 1500 veth: peer: ethtest1 STDERR: 2023-11-30 17:10:00,373 root DEBUG NetworkManager version 1.40.16 2023-11-30 17:10:00,374 root DEBUG Async action: Retrieve applied config: ethernet eth0 started 2023-11-30 17:10:00,375 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 started 2023-11-30 17:10:00,375 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 started 2023-11-30 17:10:00,377 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished 2023-11-30 17:10:00,378 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 finished 2023-11-30 17:10:00,378 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 finished 2023-11-30 17:10:00,380 root DEBUG Interface ethernet.eth0 found. Merging the interface information. 2023-11-30 17:10:00,381 root DEBUG Interface ethernet.ethtest0 found. Merging the interface information. 2023-11-30 17:10:00,381 root DEBUG Interface ethernet.ethtest1 found. Merging the interface information. TASK [Assert that the route configuration contains the specified route] ******** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:123 Thursday 30 November 2023 17:10:00 +0000 (0:00:00.710) 0:00:30.356 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:4 Thursday 30 November 2023 17:10:00 +0000 (0:00:00.096) 0:00:30.452 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Thursday 30 November 2023 17:10:00 +0000 (0:00:00.069) 0:00:30.522 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check if system is ostree] ****************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:13 Thursday 30 November 2023 17:10:00 +0000 (0:00:00.049) 0:00:30.571 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Set flag to indicate system is ostree] ****** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:18 Thursday 30 November 2023 17:10:00 +0000 (0:00:00.039) 0:00:30.611 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Check which services are running] *********** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Thursday 30 November 2023 17:10:00 +0000 (0:00:00.041) 0:00:30.653 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Thursday 30 November 2023 17:10:02 +0000 (0:00:01.693) 0:00:32.347 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:7 Thursday 30 November 2023 17:10:03 +0000 (0:00:01.341) 0:00:33.688 ***** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:11 Thursday 30 November 2023 17:10:03 +0000 (0:00:00.041) 0:00:33.729 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:19 Thursday 30 November 2023 17:10:03 +0000 (0:00:00.038) 0:00:33.768 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:30 Thursday 30 November 2023 17:10:03 +0000 (0:00:00.041) 0:00:33.810 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:40 Thursday 30 November 2023 17:10:04 +0000 (0:00:00.064) 0:00:33.875 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:55 Thursday 30 November 2023 17:10:05 +0000 (0:00:01.417) 0:00:35.292 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:71 Thursday 30 November 2023 17:10:05 +0000 (0:00:00.057) 0:00:35.349 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:85 Thursday 30 November 2023 17:10:05 +0000 (0:00:00.042) 0:00:35.392 ***** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:96 Thursday 30 November 2023 17:10:05 +0000 (0:00:00.367) 0:00:35.760 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:105 Thursday 30 November 2023 17:10:05 +0000 (0:00:00.047) 0:00:35.807 ***** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:113 Thursday 30 November 2023 17:10:05 +0000 (0:00:00.039) 0:00:35.847 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:122 Thursday 30 November 2023 17:10:06 +0000 (0:00:00.039) 0:00:35.887 ***** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:134 Thursday 30 November 2023 17:10:06 +0000 (0:00:00.367) 0:00:36.255 ***** changed: [sut] => { "changed": true, "state": { "dns-resolver": { "config": { "search": [ "example.com", "example.org" ], "server": [ "2001:4860:4860::8888" ] } }, "interfaces": [ { "_permanent_mac_address": "02:33:5c:46:47:45", "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [], "auto-dns": true, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "dhcp": true, "enabled": true }, "ipv6": { "address": [ { "ip": "fe80::33:5cff:fe46:4745", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "02:33:5C:46:47:45", "mtu": 9001, "name": "eth0", "state": "up", "type": "ethernet", "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.250", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "address": [ { "ip": "2001:db8::1:1", "prefix-length": 64 }, { "ip": "fe80::28a1:bfff:fe00:749d", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "2A:A1:BF:00:74:9D", "mtu": 1500, "name": "ethtest0", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest0" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.88", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "addr-gen-mode": "stable-privacy", "address": [ { "ip": "fe80::48cf:3358:c409:8249", "prefix-length": 64 } ], "auto-dns": false, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "autoconf": true, "dhcp": true, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "1E:29:E3:00:C4:23", "mtu": 1500, "name": "ethtest1", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest1" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [ { "ip": "127.0.0.1", "prefix-length": 8 } ], "enabled": true }, "ipv6": { "address": [ { "ip": "::1", "prefix-length": 128 } ], "enabled": true }, "mac-address": "00:00:00:00:00:00", "mtu": 65536, "name": "lo", "state": "up", "type": "unknown" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::4c69:4ff:fe90:88c2", "prefix-length": 64 } ], "enabled": true }, "mac-address": "4E:69:04:90:88:C2", "mtu": 1500, "name": "peerethtest0", "state": "up", "type": "veth", "veth": { "peer": "ethtest0" } }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::f455:28ff:fe28:7645", "prefix-length": 64 } ], "enabled": true }, "mac-address": "F6:55:28:28:76:45", "mtu": 1500, "name": "peerethtest1", "state": "up", "type": "veth", "veth": { "peer": "ethtest1" } } ], "route-rules": { "config": [] }, "routes": { "config": [ { "destination": "192.0.2.100/30", "metric": 150, "next-hop-address": "192.168.122.250", "next-hop-interface": "ethtest0", "table-id": 254 } ] } } } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:140 Thursday 30 November 2023 17:10:07 +0000 (0:00:00.656) 0:00:36.912 ***** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:144 Thursday 30 November 2023 17:10:07 +0000 (0:00:00.045) 0:00:36.957 ***** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n# system_role:network\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:149 Thursday 30 November 2023 17:10:07 +0000 (0:00:00.042) 0:00:36.999 ***** ok: [sut] => { "__network_state_result": { "changed": true, "failed": false, "state": { "dns-resolver": { "config": { "search": [ "example.com", "example.org" ], "server": [ "2001:4860:4860::8888" ] } }, "interfaces": [ { "_permanent_mac_address": "02:33:5c:46:47:45", "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [], "auto-dns": true, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "dhcp": true, "enabled": true }, "ipv6": { "address": [ { "ip": "fe80::33:5cff:fe46:4745", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "02:33:5C:46:47:45", "mtu": 9001, "name": "eth0", "state": "up", "type": "ethernet", "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.250", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "address": [ { "ip": "2001:db8::1:1", "prefix-length": 64 }, { "ip": "fe80::28a1:bfff:fe00:749d", "prefix-length": 64 } ], "autoconf": false, "dhcp": false, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "2A:A1:BF:00:74:9D", "mtu": 1500, "name": "ethtest0", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest0" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [ { "ip": "192.168.122.88", "prefix-length": 24 } ], "dhcp": false, "enabled": true }, "ipv6": { "addr-gen-mode": "stable-privacy", "address": [ { "ip": "fe80::48cf:3358:c409:8249", "prefix-length": 64 } ], "auto-dns": false, "auto-gateway": true, "auto-route-table-id": 0, "auto-routes": true, "autoconf": true, "dhcp": true, "enabled": true }, "lldp": { "enabled": false }, "mac-address": "1E:29:E3:00:C4:23", "mtu": 1500, "name": "ethtest1", "state": "up", "type": "ethernet", "veth": { "peer": "peerethtest1" }, "wait-ip": "any" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "rx-gro": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true } }, "ipv4": { "address": [ { "ip": "127.0.0.1", "prefix-length": 8 } ], "enabled": true }, "ipv6": { "address": [ { "ip": "::1", "prefix-length": 128 } ], "enabled": true }, "mac-address": "00:00:00:00:00:00", "mtu": 65536, "name": "lo", "state": "up", "type": "unknown" }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::4c69:4ff:fe90:88c2", "prefix-length": 64 } ], "enabled": true }, "mac-address": "4E:69:04:90:88:C2", "mtu": 1500, "name": "peerethtest0", "state": "up", "type": "veth", "veth": { "peer": "ethtest0" } }, { "accept-all-mac-addresses": false, "ethtool": { "feature": { "highdma": true, "rx-checksum": true, "rx-gro": false, "rx-vlan-hw-parse": true, "tx-generic-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-hw-insert": true } }, "ipv4": { "address": [], "enabled": false }, "ipv6": { "address": [ { "ip": "fe80::f455:28ff:fe28:7645", "prefix-length": 64 } ], "enabled": true }, "mac-address": "F6:55:28:28:76:45", "mtu": 1500, "name": "peerethtest1", "state": "up", "type": "veth", "veth": { "peer": "ethtest1" } } ], "route-rules": { "config": [] }, "routes": { "config": [ { "destination": "192.0.2.100/30", "metric": 150, "next-hop-address": "192.168.122.250", "next-hop-interface": "ethtest0", "table-id": 254 } ] } } } } TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:155 Thursday 30 November 2023 17:10:07 +0000 (0:00:00.046) 0:00:37.046 ***** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Get the DNS configuration from nmstatectl] ******************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:146 Thursday 30 November 2023 17:10:07 +0000 (0:00:00.209) 0:00:37.255 ***** ok: [sut] => { "changed": false, "cmd": [ "nmstatectl", "show" ], "delta": "0:00:00.489509", "end": "2023-11-30 17:10:08.052868", "rc": 0, "start": "2023-11-30 17:10:07.563359" } STDOUT: --- dns-resolver: config: search: - example.com - example.org server: - 2001:4860:4860::8888 running: search: - example.com - example.org - us-east-1.aws.redhat.com server: - 2001:4860:4860::8888 - 10.29.169.13 - 10.29.170.12 - 10.2.32.1 route-rules: config: [] routes: config: - destination: 192.0.2.100/30 metric: 150 next-hop-address: 192.168.122.250 next-hop-interface: ethtest0 table-id: 254 running: - destination: 2001:db8::/64 metric: 101 next-hop-address: '::' next-hop-interface: ethtest0 table-id: 254 - destination: fe80::/64 metric: 256 next-hop-address: '::' next-hop-interface: eth0 table-id: 254 - destination: fe80::/64 metric: 256 next-hop-address: '::' next-hop-interface: peerethtest0 table-id: 254 - destination: fe80::/64 metric: 256 next-hop-address: '::' next-hop-interface: peerethtest1 table-id: 254 - destination: fe80::/64 metric: 1024 next-hop-address: '::' next-hop-interface: ethtest0 table-id: 254 - destination: fe80::/64 metric: 1024 next-hop-address: '::' next-hop-interface: ethtest1 table-id: 254 - destination: 0.0.0.0/0 metric: 100 next-hop-address: 10.31.44.1 next-hop-interface: eth0 table-id: 254 - destination: 10.31.44.0/22 metric: 100 next-hop-address: 0.0.0.0 next-hop-interface: eth0 table-id: 254 - destination: 192.0.2.100/30 metric: 150 next-hop-address: 192.168.122.250 next-hop-interface: ethtest0 table-id: 254 - destination: 192.168.122.0/24 metric: 101 next-hop-address: 0.0.0.0 next-hop-interface: ethtest0 table-id: 254 - destination: 192.168.122.0/24 metric: 102 next-hop-address: 0.0.0.0 next-hop-interface: ethtest1 table-id: 254 interfaces: - name: eth0 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: rx-gro: true tx-generic-segmentation: true tx-tcp-segmentation: true ipv4: enabled: true address: - ip: 10.31.46.220 prefix-length: 22 auto-dns: true auto-gateway: true auto-route-table-id: 0 auto-routes: true dhcp: true ipv6: enabled: true address: - ip: fe80::33:5cff:fe46:4745 prefix-length: 64 autoconf: false dhcp: false lldp: enabled: false mac-address: 02:33:5C:46:47:45 mtu: 9001 wait-ip: any - name: ethtest0 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: true address: - ip: 192.168.122.250 prefix-length: 24 dhcp: false ipv6: enabled: true address: - ip: 2001:db8::1:1 prefix-length: 64 - ip: fe80::28a1:bfff:fe00:749d prefix-length: 64 autoconf: false dhcp: false lldp: enabled: false mac-address: 2A:A1:BF:00:74:9D mtu: 1500 veth: peer: peerethtest0 wait-ip: any - name: ethtest1 type: ethernet state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: true address: - ip: 192.168.122.88 prefix-length: 24 dhcp: false ipv6: enabled: true addr-gen-mode: stable-privacy address: - ip: fe80::48cf:3358:c409:8249 prefix-length: 64 auto-dns: false auto-gateway: true auto-route-table-id: 0 auto-routes: true autoconf: true dhcp: true lldp: enabled: false mac-address: 1E:29:E3:00:C4:23 mtu: 1500 veth: peer: peerethtest1 wait-ip: any - name: lo type: unknown state: up accept-all-mac-addresses: false ethtool: feature: rx-gro: true tx-generic-segmentation: true tx-tcp-segmentation: true ipv4: enabled: true address: - ip: 127.0.0.1 prefix-length: 8 ipv6: enabled: true address: - ip: ::1 prefix-length: 128 mac-address: 00:00:00:00:00:00 mtu: 65536 - name: peerethtest0 type: veth state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: false address: [] ipv6: enabled: true address: - ip: fe80::4c69:4ff:fe90:88c2 prefix-length: 64 mac-address: 4E:69:04:90:88:C2 mtu: 1500 veth: peer: ethtest0 - name: peerethtest1 type: veth state: up accept-all-mac-addresses: false ethtool: feature: highdma: true rx-checksum: true rx-gro: false rx-vlan-hw-parse: true tx-generic-segmentation: true tx-tcp-segmentation: true tx-vlan-hw-insert: true ipv4: enabled: false address: [] ipv6: enabled: true address: - ip: fe80::f455:28ff:fe28:7645 prefix-length: 64 mac-address: F6:55:28:28:76:45 mtu: 1500 veth: peer: ethtest1 STDERR: 2023-11-30 17:10:07,979 root DEBUG NetworkManager version 1.40.16 2023-11-30 17:10:07,981 root DEBUG Async action: Retrieve applied config: ethernet eth0 started 2023-11-30 17:10:07,981 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 started 2023-11-30 17:10:07,981 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 started 2023-11-30 17:10:07,983 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished 2023-11-30 17:10:07,984 root DEBUG Async action: Retrieve applied config: ethernet ethtest0 finished 2023-11-30 17:10:07,984 root DEBUG Async action: Retrieve applied config: ethernet ethtest1 finished 2023-11-30 17:10:07,986 root DEBUG Interface ethernet.eth0 found. Merging the interface information. 2023-11-30 17:10:07,987 root DEBUG Interface ethernet.ethtest0 found. Merging the interface information. 2023-11-30 17:10:07,987 root DEBUG Interface ethernet.ethtest1 found. Merging the interface information. TASK [Get the DNS configuration from the file `/run/NetworkManager/no-stub-resolv.conf`] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:152 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.694) 0:00:37.950 ***** ok: [sut] => { "changed": false, "cmd": [ "cat", "/run/NetworkManager/no-stub-resolv.conf" ], "delta": "0:00:00.003130", "end": "2023-11-30 17:10:08.260581", "rc": 0, "start": "2023-11-30 17:10:08.257451" } STDOUT: # Generated by NetworkManager search example.com example.org us-east-1.aws.redhat.com testing-farm nameserver 2001:4860:4860::8888 nameserver 10.29.169.13 nameserver 10.29.170.12 # NOTE: the libc resolver may not support more than 3 nameservers. # The nameservers listed below may not be recognized. nameserver 10.2.32.1 TASK [Assert that the nmstatectl contains the specified DNS configuration] ***** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:158 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.207) 0:00:38.158 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that the file `/run/NetworkManager/no-stub-resolv.conf` contains the specified DNS configuration] *** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:166 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.036) 0:00:38.195 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Include the task 'delete_interface.yml'] ********************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:176 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.037) 0:00:38.232 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/delete_interface.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/delete_interface.yml:3 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.070) 0:00:38.303 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest1" ], "delta": "0:00:00.012525", "end": "2023-11-30 17:10:08.630409", "rc": 0, "start": "2023-11-30 17:10:08.617884" } TASK [Include the task 'assert_device_absent.yml'] ***************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:178 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.234) 0:00:38.537 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.085) 0:00:38.623 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest1] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:10:08 +0000 (0:00:00.056) 0:00:38.680 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'ethtest1'] ************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.257) 0:00:38.938 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set interface=ethtest0] ************************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:180 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.034) 0:00:38.973 ***** ok: [sut] => { "ansible_facts": { "interface": "ethtest0", "type": "veth" }, "changed": false } TASK [Include the task 'delete_interface.yml'] ********************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:184 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.038) 0:00:39.011 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/delete_interface.yml for sut TASK [Remove test interface if necessary] ************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/delete_interface.yml:3 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.074) 0:00:39.085 ***** ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "ethtest0" ], "delta": "0:00:00.011901", "end": "2023-11-30 17:10:09.409322", "rc": 0, "start": "2023-11-30 17:10:09.397421" } TASK [Include the task 'assert_device_absent.yml'] ***************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:186 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.222) 0:00:39.308 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [Include the task 'get_interface_stat.yml'] ******************************* task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml:3 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.070) 0:00:39.378 ***** included: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface ethtest0] ***************************************** task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/get_interface_stat.yml:3 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.061) 0:00:39.439 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Assert that the interface is absent - 'ethtest0'] ************************ task path: /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/assert_device_absent.yml:5 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.218) 0:00:39.657 ***** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=107 changed=4 unreachable=0 failed=0 skipped=51 rescued=0 ignored=0 Thursday 30 November 2023 17:10:09 +0000 (0:00:00.016) 0:00:39.674 ***** =============================================================================== linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable --- 3.72s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:40 linux-system-roles.network : Configure networking state ----------------- 1.79s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:134 linux-system-roles.network : Check which services are running ----------- 1.77s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which services are running ----------- 1.69s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 Install iproute --------------------------------------------------------- 1.69s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:16 Get the ethtest1 state configuration ------------------------------------ 1.69s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:81 - linux-system-roles.network : Check which services are running ----------- 1.66s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:22 linux-system-roles.network : Check which packages are installed --------- 1.46s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Install iproute --------------------------------------------------------- 1.44s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:16 linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable --- 1.42s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:40 linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable --- 1.40s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:40 linux-system-roles.network : Check which packages are installed --------- 1.34s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 linux-system-roles.network : Check which packages are installed --------- 1.27s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/set_facts.yml:27 Get the route configuration --------------------------------------------- 0.71s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:117 Get the DNS configuration from nmstatectl ------------------------------- 0.69s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:146 Get the ethtest0 state configuration ------------------------------------ 0.68s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tests_network_state.yml:75 - Gathering Facts --------------------------------------------------------- 0.66s /WORKDIR/git-code_refactorwk092_tu/tests/tests_network_state_nm.yml:5 --------- linux-system-roles.network : Configure networking state ----------------- 0.66s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:134 linux-system-roles.network : Configure networking state ----------------- 0.65s /WORKDIR/git-code_refactorwk092_tu/tests/roles/linux-system-roles.network/tasks/main.yml:134 Create veth interface ethtest0 ------------------------------------------ 0.63s /WORKDIR/git-code_refactorwk092_tu/tests/playbooks/tasks/manage_test_interface.yml:24 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [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. ---^---^---^---^---^---