ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp40vowjjo executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmp05ac0kav/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:6 Wednesday 03 August 2022 16:16:49 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/centos-9.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659543407.8589354, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659543407.8599353, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737527", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmp05ac0kav/tests/_backup.yml:13 Wednesday 03 August 2022 16:16:49 +0000 (0:00:00.583) 0:00:00.602 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 4210438, 'dev': 64513, 'nlink': 1, 'atime': 1659543407.8589354, 'mtime': 1659542505.0, 'ctime': 1659543407.8599353, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '1127737527', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python3'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659543407.8589354, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659543407.8599353, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210438, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542505.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "1127737527", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp05ac0kav/tests/_backup.yml:19 Wednesday 03 August 2022 16:16:49 +0000 (0:00:00.034) 0:00:00.636 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003312", "end": "2022-08-03 12:16:49.577689", "rc": 0, "start": "2022-08-03 12:16:49.574377" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:16:50 +0000 (0:00:00.468) 0:00:01.105 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.58s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.47s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmp05ac0kav/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_provider_nm.yml ************************************************ 2 plays in /tmp/tmp05ac0kav/tests/tests_provider_nm.yml PLAY [Run playbook 'playbooks/tests_provider.yml' with nm as provider] ********* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/tests_provider_nm.yml:5 Wednesday 03 August 2022 16:16:50 +0000 (0:00:00.013) 0:00:01.118 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tests_provider_nm.yml:8 Wednesday 03 August 2022 16:16:51 +0000 (0:00:01.063) 0:00:02.182 ****** included: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.027) 0:00:02.209 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.022) 0:00:02.231 ****** included: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.029) 0:00:02.261 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.020) 0:00:02.281 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.019) 0:00:02.301 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp05ac0kav/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.020) 0:00:02.321 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmp05ac0kav/tests/tests_provider_nm.yml:9 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.021) 0:00:02.343 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } TASK [Install NetworkManager] ************************************************** task path: /tmp/tmp05ac0kav/tests/tests_provider_nm.yml:16 Wednesday 03 August 2022 16:16:51 +0000 (0:00:00.027) 0:00:02.370 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Get NetworkManager version] ********************************************** task path: /tmp/tmp05ac0kav/tests/tests_provider_nm.yml:20 Wednesday 03 August 2022 16:16:52 +0000 (0:00:00.996) 0:00:03.366 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "rpm", "-q", "--qf", "%{version}", "NetworkManager" ], "delta": "0:00:00.009437", "end": "2022-08-03 12:16:52.216084", "rc": 0, "start": "2022-08-03 12:16:52.206647" } STDOUT: 1.39.10 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tests_provider.yml:3 Wednesday 03 August 2022 16:16:52 +0000 (0:00:00.392) 0:00:03.759 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_provider.yml:10 Wednesday 03 August 2022 16:16:53 +0000 (0:00:00.823) 0:00:04.583 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tests_provider.yml:18 Wednesday 03 August 2022 16:16:53 +0000 (0:00:00.047) 0:00:04.630 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml for /cache/centos-9.qcow2.snap TASK [TEST: I can manage a veth interface with NM after I managed it with initscripts.] *** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:16:53 +0000 (0:00:00.048) 0:00:04.678 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: ########## I can manage a veth interface with NM after I managed it with initscripts. ########## TASK [Show item] *************************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:16:53 +0000 (0:00:00.046) 0:00:04.725 ****** ok: [/cache/centos-9.qcow2.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can manage a veth interface with NM after I managed it with initscripts." } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/setup_test_interface.yml", "tasks/provider/default_with_nm.yml", "tasks/provider/create_and_remove_with_initscripts.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/provider/create_with_nm.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.189) 0:00:04.915 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.055) 0:00:04.971 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.046) 0:00:05.017 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003452", "end": "2022-08-03 12:16:53.886995", "rc": 0, "start": "2022-08-03 12:16:53.883543" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.395) 0:00:05.413 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.049) 0:00:05.462 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.049) 0:00:05.512 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/setup_test_interface.yml for /cache/centos-9.qcow2.snap => (item=tasks/setup_test_interface.yml) included: /tmp/tmp05ac0kav/tests/playbooks/tasks/provider/default_with_nm.yml for /cache/centos-9.qcow2.snap => (item=tasks/provider/default_with_nm.yml) included: /tmp/tmp05ac0kav/tests/playbooks/tasks/provider/create_and_remove_with_initscripts.yml for /cache/centos-9.qcow2.snap => (item=tasks/provider/create_and_remove_with_initscripts.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/setup_test_interface.yml:3 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.078) 0:00:05.590 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml for /cache/centos-9.qcow2.snap TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:3 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.054) 0:00:05.645 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:8 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.039) 0:00:05.684 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:13 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.037) 0:00:05.722 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.049) 0:00:05.772 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:16:54 +0000 (0:00:00.047) 0:00:05.819 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002975", "end": "2022-08-03 12:16:54.707579", "rc": 0, "start": "2022-08-03 12:16:54.704604" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:16:55 +0000 (0:00:00.414) 0:00:06.233 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:16:55 +0000 (0:00:00.053) 0:00:06.287 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:15 Wednesday 03 August 2022 16:16:55 +0000 (0:00:00.074) 0:00:06.361 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface testnic1] ****************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:21 Wednesday 03 August 2022 16:16:56 +0000 (0:00:00.903) 0:00:07.264 ****** [WARNING]: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. changed: [/cache/centos-9.qcow2.snap] => (item=ip link add testnic1 type veth peer name peertestnic1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "testnic1", "type", "veth", "peer", "name", "peertestnic1" ], "delta": "0:00:00.004738", "end": "2022-08-03 12:16:56.150547", "item": "ip link add testnic1 type veth peer name peertestnic1", "rc": 0, "start": "2022-08-03 12:16:56.145809" } changed: [/cache/centos-9.qcow2.snap] => (item=ip link set peertestnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peertestnic1", "up" ], "delta": "0:00:00.004181", "end": "2022-08-03 12:16:56.521142", "item": "ip link set peertestnic1 up", "rc": 0, "start": "2022-08-03 12:16:56.516961" } changed: [/cache/centos-9.qcow2.snap] => (item=ip link set testnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "testnic1", "up" ], "delta": "0:00:00.008208", "end": "2022-08-03 12:16:56.864302", "item": "ip link set testnic1 up", "rc": 0, "start": "2022-08-03 12:16:56.856094" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:29 Wednesday 03 August 2022 16:16:57 +0000 (0:00:01.124) 0:00:08.389 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "nmcli", "d", "set", "testnic1", "managed", "true" ], "delta": "0:00:00.018033", "end": "2022-08-03 12:16:57.296026", "rc": 0, "start": "2022-08-03 12:16:57.277993" } TASK [Delete veth interface testnic1] ****************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:36 Wednesday 03 August 2022 16:16:57 +0000 (0:00:00.432) 0:00:08.821 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface testnic1] ***************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:42 Wednesday 03 August 2022 16:16:57 +0000 (0:00:00.041) 0:00:08.862 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface testnic1] ***************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:47 Wednesday 03 August 2022 16:16:58 +0000 (0:00:00.040) 0:00:08.903 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface testnic1] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:53 Wednesday 03 August 2022 16:16:58 +0000 (0:00:00.038) 0:00:08.941 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface testnic1] ******************************************* task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:58 Wednesday 03 August 2022 16:16:58 +0000 (0:00:00.042) 0:00:08.984 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include network role] **************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/provider/default_with_nm.yml:3 Wednesday 03 August 2022 16:16:58 +0000 (0:00:00.039) 0:00:09.023 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:16:58 +0000 (0:00:00.062) 0:00:09.085 ****** included: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:16:58 +0000 (0:00:00.056) 0:00:09.142 ****** ok: [/cache/centos-9.qcow2.snap] => { "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 services are running] *********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:16:58 +0000 (0:00:00.505) 0:00:09.647 ****** ok: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:17:00 +0000 (0:00:01.712) 0:00:11.360 ****** ok: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:17:01 +0000 (0:00:01.024) 0:00:12.385 ****** ok: [/cache/centos-9.qcow2.snap] => {} 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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:17:01 +0000 (0:00:00.131) 0:00:12.517 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:17:01 +0000 (0:00:00.058) 0:00:12.575 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:17:01 +0000 (0:00:00.056) 0:00:12.631 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 16:17:01 +0000 (0:00:00.079) 0:00:12.711 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 16:17:01 +0000 (0:00:00.050) 0:00:12.762 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 16:17:01 +0000 (0:00:00.052) 0:00:12.814 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 16:17:01 +0000 (0:00:00.063) 0:00:12.878 ****** ok: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 16:17:02 +0000 (0:00:00.826) 0:00:13.705 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 16:17:02 +0000 (0:00:00.057) 0:00:13.762 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 16:17:02 +0000 (0:00:00.049) 0:00:13.812 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 16:17:02 +0000 (0:00:00.052) 0:00:13.865 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network ok: [/cache/centos-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 16:17:03 +0000 (0:00:00.760) 0:00:14.626 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 16:17:03 +0000 (0:00:00.065) 0:00:14.692 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 16:17:03 +0000 (0:00:00.062) 0:00:14.754 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 16:17:03 +0000 (0:00:00.068) 0:00:14.822 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 16:17:03 +0000 (0:00:00.053) 0:00:14.876 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap TASK [Include network role] **************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/provider/create_and_remove_with_initscripts.yml:3 Wednesday 03 August 2022 16:17:04 +0000 (0:00:00.520) 0:00:15.396 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:17:04 +0000 (0:00:00.084) 0:00:15.481 ****** included: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:17:04 +0000 (0:00:00.080) 0:00:15.562 ****** ok: [/cache/centos-9.qcow2.snap] => { "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 services are running] *********** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:17:05 +0000 (0:00:00.546) 0:00:16.108 ****** ok: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:17:06 +0000 (0:00:01.550) 0:00:17.659 ****** ok: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:17:07 +0000 (0:00:00.771) 0:00:18.431 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:17:07 +0000 (0:00:00.065) 0:00:18.496 ****** skipping: [/cache/centos-9.qcow2.snap] => { "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: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:17:07 +0000 (0:00:00.052) 0:00:18.548 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:17:07 +0000 (0:00:00.089) 0:00:18.638 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "failures": [ "No package network-scripts available." ], "rc": 1, "results": [] } MSG: Failed to install some of the specified packages TASK [Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.'] *** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:52 Wednesday 03 August 2022 16:17:08 +0000 (0:00:00.883) 0:00:19.522 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: !!!!! Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.' !!!!! TASK [Show item that failed] *************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:56 Wednesday 03 August 2022 16:17:08 +0000 (0:00:00.064) 0:00:19.586 ****** ok: [/cache/centos-9.qcow2.snap] => (item=__network_connections_result) => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] }, "ansible_loop_var": "item", "item": "__network_connections_result" } TASK [Issue failed message] **************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:61 Wednesday 03 August 2022 16:17:08 +0000 (0:00:00.070) 0:00:19.657 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.' !!!!! TASK [cleanup] ***************************************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:17:08 +0000 (0:00:00.069) 0:00:19.726 ****** included: /tmp/tmp05ac0kav/tests/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-9.qcow2.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmp05ac0kav/tests/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 16:17:08 +0000 (0:00:00.092) 0:00:19.819 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "nmcli con delete testnic1\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-testnic1\nrm -f /etc/sysconfig/network-scripts/ifcfg-testnic1\nip link del testnic1\n", "delta": "0:00:00.042196", "end": "2022-08-03 12:17:08.724831", "rc": 0, "start": "2022-08-03 12:17:08.682635" } STDERR: Error: unknown connection 'testnic1'. Error: cannot delete unknown connection(s): 'testnic1'. PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=50 changed=4 unreachable=0 failed=1 skipped=25 rescued=1 ignored=0 Wednesday 03 August 2022 16:17:09 +0000 (0:00:00.428) 0:00:20.247 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.71s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which services are running ----------- 1.55s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Create veth interface testnic1 ------------------------------------------ 1.12s /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:21 ----------- Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp05ac0kav/tests/tests_provider_nm.yml:5 -------------------------------- linux-system-roles.network : Check which packages are installed --------- 1.02s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Install NetworkManager -------------------------------------------------- 1.00s /tmp/tmp05ac0kav/tests/tests_provider_nm.yml:16 ------------------------------- Install iproute --------------------------------------------------------- 0.90s /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:15 ----------- linux-system-roles.network : Install packages --------------------------- 0.88s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:30 ----- linux-system-roles.network : Enable and start NetworkManager ------------ 0.83s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:79 ----- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmp05ac0kav/tests/playbooks/tests_provider.yml:3 ------------------------- linux-system-roles.network : Check which packages are installed --------- 0.77s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Configure networking connection profiles --- 0.76s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Get stats of system files ----------------------------------------------- 0.58s /tmp/tmp05ac0kav/tests/_backup.yml:6 ------------------------------------------ linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.55s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - linux-system-roles.network : Re-test connectivity ----------------------- 0.52s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.51s /tmp/tmp05ac0kav/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Back up system files ---------------------------------------------------- 0.47s /tmp/tmp05ac0kav/tests/_backup.yml:19 ----------------------------------------- Set up veth as managed by NetworkManager -------------------------------- 0.43s /tmp/tmp05ac0kav/tests/playbooks/tasks/manage_test_interface.yml:29 ----------- Cleanup profile and device ---------------------------------------------- 0.43s /tmp/tmp05ac0kav/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- Gather current interface info ------------------------------------------- 0.41s /tmp/tmp05ac0kav/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp40vowjjo executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpem3y1lsc/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 Wednesday 03 August 2022 16:37:57 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/centos-9.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659544675.9289024, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544675.9289024, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080188", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 Wednesday 03 August 2022 16:37:58 +0000 (0:00:00.623) 0:00:00.641 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-9.qcow2.snap] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 4210118, 'dev': 64513, 'nlink': 1, 'atime': 1659544675.9289024, 'mtime': 1659543778.0, 'ctime': 1659544675.9289024, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '561080188', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python3'}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659544675.9289024, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544675.9289024, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4210118, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659543778.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "561080188", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 Wednesday 03 August 2022 16:37:58 +0000 (0:00:00.033) 0:00:00.674 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004826", "end": "2022-08-03 12:37:57.767732", "rc": 0, "start": "2022-08-03 12:37:57.762906" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:37:58 +0000 (0:00:00.511) 0:00:01.185 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.62s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.51s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmpem3y1lsc/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_provider_nm.yml ************************************************ 2 plays in /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml PLAY [Run playbook 'playbooks/tests_provider.yml' with nm as provider] ********* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:5 Wednesday 03 August 2022 16:37:58 +0000 (0:00:00.013) 0:00:01.199 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:8 Wednesday 03 August 2022 16:38:00 +0000 (0:00:01.074) 0:00:02.273 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml for /cache/centos-9.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.026) 0:00:02.300 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.021) 0:00:02.322 ****** included: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml for /cache/centos-9.qcow2.snap TASK [Create EPEL 9] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.027) 0:00:02.349 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.018) 0:00:02.368 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.019) 0:00:02.387 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.021) 0:00:02.408 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:9 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.024) 0:00:02.433 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } TASK [Install NetworkManager] ************************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:16 Wednesday 03 August 2022 16:38:00 +0000 (0:00:00.027) 0:00:02.461 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Get NetworkManager version] ********************************************** task path: /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:20 Wednesday 03 August 2022 16:38:01 +0000 (0:00:00.991) 0:00:03.452 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "rpm", "-q", "--qf", "%{version}", "NetworkManager" ], "delta": "0:00:00.009930", "end": "2022-08-03 12:38:00.416529", "rc": 0, "start": "2022-08-03 12:38:00.406599" } STDOUT: 1.39.10 META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_provider.yml:3 Wednesday 03 August 2022 16:38:01 +0000 (0:00:00.394) 0:00:03.847 ****** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_provider.yml:10 Wednesday 03 August 2022 16:38:02 +0000 (0:00:00.825) 0:00:04.672 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tests_provider.yml:18 Wednesday 03 August 2022 16:38:02 +0000 (0:00:00.048) 0:00:04.720 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml for /cache/centos-9.qcow2.snap TASK [TEST: I can manage a veth interface with NM after I managed it with initscripts.] *** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:38:02 +0000 (0:00:00.052) 0:00:04.773 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: ########## I can manage a veth interface with NM after I managed it with initscripts. ########## TASK [Show item] *************************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:38:02 +0000 (0:00:00.056) 0:00:04.830 ****** ok: [/cache/centos-9.qcow2.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can manage a veth interface with NM after I managed it with initscripts." } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/setup_test_interface.yml", "tasks/provider/default_with_nm.yml", "tasks/provider/create_and_remove_with_initscripts.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/provider/create_with_nm.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-9.qcow2.snap] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 16:38:02 +0000 (0:00:00.198) 0:00:05.028 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:38:02 +0000 (0:00:00.046) 0:00:05.075 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:38:02 +0000 (0:00:00.045) 0:00:05.120 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003414", "end": "2022-08-03 12:38:02.101049", "rc": 0, "start": "2022-08-03 12:38:02.097635" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.393) 0:00:05.513 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.049) 0:00:05.562 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.046) 0:00:05.609 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/setup_test_interface.yml for /cache/centos-9.qcow2.snap => (item=tasks/setup_test_interface.yml) included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/provider/default_with_nm.yml for /cache/centos-9.qcow2.snap => (item=tasks/provider/default_with_nm.yml) included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/provider/create_and_remove_with_initscripts.yml for /cache/centos-9.qcow2.snap => (item=tasks/provider/create_and_remove_with_initscripts.yml) TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/setup_test_interface.yml:3 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.081) 0:00:05.690 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml for /cache/centos-9.qcow2.snap TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:3 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.056) 0:00:05.747 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:8 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.040) 0:00:05.787 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:13 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.039) 0:00:05.827 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml for /cache/centos-9.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.049) 0:00:05.877 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/centos-9.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:38:03 +0000 (0:00:00.045) 0:00:05.922 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004188", "end": "2022-08-03 12:38:02.893875", "rc": 0, "start": "2022-08-03 12:38:02.889687" } STDOUT: bonding_masters eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:38:04 +0000 (0:00:00.385) 0:00:06.308 ****** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:38:04 +0000 (0:00:00.080) 0:00:06.388 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo'] TASK [Install iproute] ********************************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:15 Wednesday 03 August 2022 16:38:04 +0000 (0:00:00.094) 0:00:06.482 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface testnic1] ****************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:21 Wednesday 03 August 2022 16:38:05 +0000 (0:00:01.054) 0:00:07.537 ****** [WARNING]: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. changed: [/cache/centos-9.qcow2.snap] => (item=ip link add testnic1 type veth peer name peertestnic1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "testnic1", "type", "veth", "peer", "name", "peertestnic1" ], "delta": "0:00:00.004507", "end": "2022-08-03 12:38:04.529289", "item": "ip link add testnic1 type veth peer name peertestnic1", "rc": 0, "start": "2022-08-03 12:38:04.524782" } changed: [/cache/centos-9.qcow2.snap] => (item=ip link set peertestnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peertestnic1", "up" ], "delta": "0:00:00.003435", "end": "2022-08-03 12:38:04.917736", "item": "ip link set peertestnic1 up", "rc": 0, "start": "2022-08-03 12:38:04.914301" } changed: [/cache/centos-9.qcow2.snap] => (item=ip link set testnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "testnic1", "up" ], "delta": "0:00:00.006311", "end": "2022-08-03 12:38:05.265495", "item": "ip link set testnic1 up", "rc": 0, "start": "2022-08-03 12:38:05.259184" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:28 Wednesday 03 August 2022 16:38:06 +0000 (0:00:01.139) 0:00:08.676 ****** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "cmd": [ "nmcli", "d", "set", "testnic1", "managed", "true" ], "delta": "0:00:00.018795", "end": "2022-08-03 12:38:05.689505", "rc": 0, "start": "2022-08-03 12:38:05.670710" } TASK [Delete veth interface testnic1] ****************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:35 Wednesday 03 August 2022 16:38:06 +0000 (0:00:00.426) 0:00:09.103 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface testnic1] ***************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:40 Wednesday 03 August 2022 16:38:06 +0000 (0:00:00.039) 0:00:09.143 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface testnic1] ***************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:44 Wednesday 03 August 2022 16:38:06 +0000 (0:00:00.041) 0:00:09.184 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface testnic1] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:49 Wednesday 03 August 2022 16:38:07 +0000 (0:00:00.040) 0:00:09.224 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface testnic1] ******************************************* task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:53 Wednesday 03 August 2022 16:38:07 +0000 (0:00:00.040) 0:00:09.265 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include network role] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/provider/default_with_nm.yml:3 Wednesday 03 August 2022 16:38:07 +0000 (0:00:00.041) 0:00:09.306 ****** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:38:07 +0000 (0:00:00.072) 0:00:09.378 ****** included: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:38:07 +0000 (0:00:00.059) 0:00:09.438 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:38:07 +0000 (0:00:00.537) 0:00:09.975 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:38:09 +0000 (0:00:01.712) 0:00:11.688 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:38:10 +0000 (0:00:01.013) 0:00:12.701 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: nm TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:38:10 +0000 (0:00:00.113) 0:00:12.814 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:38:10 +0000 (0:00:00.049) 0:00:12.864 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:38:10 +0000 (0:00:00.052) 0:00:12.917 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:38:10 +0000 (0:00:00.076) 0:00:12.993 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:38:10 +0000 (0:00:00.054) 0:00:13.047 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:38:10 +0000 (0:00:00.054) 0:00:13.102 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:38:10 +0000 (0:00:00.053) 0:00:13.156 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:38:11 +0000 (0:00:00.807) 0:00:13.964 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:38:11 +0000 (0:00:00.058) 0:00:14.022 ****** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:38:11 +0000 (0:00:00.052) 0:00:14.075 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:38:11 +0000 (0:00:00.053) 0:00:14.128 ****** ok: [/cache/centos-9.qcow2.snap] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:38:12 +0000 (0:00:00.783) 0:00:14.912 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:38:12 +0000 (0:00:00.050) 0:00:14.963 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:38:12 +0000 (0:00:00.060) 0:00:15.024 ****** ok: [/cache/centos-9.qcow2.snap] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:38:12 +0000 (0:00:00.061) 0:00:15.085 ****** skipping: [/cache/centos-9.qcow2.snap] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:38:12 +0000 (0:00:00.053) 0:00:15.139 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "ping": "pong" } META: role_complete for /cache/centos-9.qcow2.snap TASK [Include network role] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/provider/create_and_remove_with_initscripts.yml:3 Wednesday 03 August 2022 16:38:13 +0000 (0:00:00.513) 0:00:15.653 ****** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:38:13 +0000 (0:00:00.090) 0:00:15.743 ****** included: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:38:13 +0000 (0:00:00.080) 0:00:15.824 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:38:14 +0000 (0:00:00.563) 0:00:16.387 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:38:15 +0000 (0:00:01.604) 0:00:17.991 ****** ok: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:38:16 +0000 (0:00:00.784) 0:00:18.776 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:38:16 +0000 (0:00:00.065) 0:00:18.841 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:38:16 +0000 (0:00:00.055) 0:00:18.896 ****** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:38:16 +0000 (0:00:00.092) 0:00:18.989 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false, "failures": [ "No package network-scripts available." ], "rc": 1, "results": [] } MSG: Failed to install some of the specified packages TASK [Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.'] *** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:52 Wednesday 03 August 2022 16:38:17 +0000 (0:00:00.918) 0:00:19.907 ****** ok: [/cache/centos-9.qcow2.snap] => {} MSG: !!!!! Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.' !!!!! TASK [Show item that failed] *************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:56 Wednesday 03 August 2022 16:38:17 +0000 (0:00:00.065) 0:00:19.973 ****** ok: [/cache/centos-9.qcow2.snap] => (item=__network_connections_result) => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] }, "ansible_loop_var": "item", "item": "__network_connections_result" } TASK [Issue failed message] **************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:61 Wednesday 03 August 2022 16:38:17 +0000 (0:00:00.076) 0:00:20.050 ****** fatal: [/cache/centos-9.qcow2.snap]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.' !!!!! TASK [cleanup] ***************************************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:38:17 +0000 (0:00:00.073) 0:00:20.123 ****** included: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-9.qcow2.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 16:38:17 +0000 (0:00:00.082) 0:00:20.206 ****** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "nmcli con delete testnic1\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-testnic1\nrm -f /etc/sysconfig/network-scripts/ifcfg-testnic1\nip link del testnic1\n", "delta": "0:00:00.043455", "end": "2022-08-03 12:38:17.227537", "rc": 0, "start": "2022-08-03 12:38:17.184082" } STDERR: Error: unknown connection 'testnic1'. Error: cannot delete unknown connection(s): 'testnic1'. PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=50 changed=4 unreachable=0 failed=1 skipped=25 rescued=1 ignored=0 Wednesday 03 August 2022 16:38:18 +0000 (0:00:00.426) 0:00:20.632 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.71s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.60s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Create veth interface testnic1 ------------------------------------------ 1.14s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:21 --- Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:5 ------------------------ Install iproute --------------------------------------------------------- 1.05s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:15 --- fedora.linux_system_roles.network : Check which packages are installed --- 1.01s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Install NetworkManager -------------------------------------------------- 0.99s /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:16 ----------------------- fedora.linux_system_roles.network : Install packages -------------------- 0.92s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Gathering Facts --------------------------------------------------------- 0.83s /tmp/tmpem3y1lsc/tests/network/playbooks/tests_provider.yml:3 ----------------- fedora.linux_system_roles.network : Enable and start NetworkManager ----- 0.81s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 fedora.linux_system_roles.network : Check which packages are installed --- 0.78s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Configure networking connection profiles --- 0.78s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Get stats of system files ----------------------------------------------- 0.62s /tmp/tmpem3y1lsc/tests/network/_backup.yml:6 ---------------------------------- fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.56s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.54s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.51s /tmp/tmp40vowjjo/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Back up system files ---------------------------------------------------- 0.51s /tmp/tmpem3y1lsc/tests/network/_backup.yml:19 --------------------------------- Set up veth as managed by NetworkManager -------------------------------- 0.43s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/manage_test_interface.yml:28 --- Cleanup profile and device ---------------------------------------------- 0.43s /tmp/tmpem3y1lsc/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Get NetworkManager version ---------------------------------------------- 0.39s /tmp/tmpem3y1lsc/tests/network/tests_provider_nm.yml:20 -----------------------