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/tmpk7x13fer 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/tmpdb8ajfhr/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpdb8ajfhr/tests/_backup.yml:6 Wednesday 03 August 2022 15:20:42 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659540040.9865584, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540040.986, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539613.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072843962194", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. TASK [Check if system files exist] ********************************************* task path: /tmp/tmpdb8ajfhr/tests/_backup.yml:13 Wednesday 03 August 2022 15:20:42 +0000 (0:00:00.449) 0:00:00.467 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-6.qcow2.snap] => (item={'invocation': {'module_args': {'checksum_algorithm': 'sha1', 'get_checksum': True, 'follow': False, 'path': '/etc/resolv.conf', 'get_md5': False, 'get_mime': True, 'get_attributes': True}}, 'stat': {'charset': 'us-ascii', 'uid': 0, 'exists': True, 'attr_flags': 'e', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659539613.0, 'block_size': 4096, 'inode': 260120, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744072843962194', 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'writeable': True, 'mimetype': 'text/plain', 'blocks': 8, 'xoth': False, 'islnk': False, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/resolv.conf', 'xusr': False, 'atime': 1659540040.9865584, 'isdir': False, 'ctime': 1659540040.986, 'isblk': False, 'wgrp': False, 'checksum': '2c55cc8324e731161638aa365379c1c147546a87', 'dev': 64513, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': ['extents']}, 'changed': False, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python'}, '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/python" }, "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": 1659540040.9865584, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540040.986, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539613.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072843962194", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/_backup.yml:19 Wednesday 03 August 2022 15:20:42 +0000 (0:00:00.035) 0:00:00.503 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003964", "end": "2022-08-03 11:20:42.433377", "rc": 0, "start": "2022-08-03 11:20:42.429413" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:20:43 +0000 (0:00:00.387) 0:00:00.890 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.45s /tmp/tmpdb8ajfhr/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.39s /tmp/tmpdb8ajfhr/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpdb8ajfhr/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmpdb8ajfhr/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdb8ajfhr/tests/tests_states_initscripts.yml:4 Wednesday 03 August 2022 15:20:43 +0000 (0:00:00.015) 0:00:00.906 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tests_states_initscripts.yml:7 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.922) 0:00:01.829 ****** included: /tmp/tmpdb8ajfhr/tests/tasks/el_repo_setup.yml for /cache/rhel-6.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.026) 0:00:01.855 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.022) 0:00:01.878 ****** included: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml for /cache/rhel-6.qcow2.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.030) 0:00:01.909 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.021) 0:00:01.931 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.021) 0:00:01.953 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.021) 0:00:01.974 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "checksum": "4bafddfe7badb0971135c888f25df1308b193622", "dest": "/etc/yum.repos.d/epel.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/epel.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 155, "state": "file", "uid": 0 } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpdb8ajfhr/tests/tests_states_initscripts.yml:8 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.621) 0:00:02.595 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpdb8ajfhr/tests/playbooks/tests_states.yml:3 Wednesday 03 August 2022 15:20:44 +0000 (0:00:00.049) 0:00:02.644 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tests_states.yml:10 Wednesday 03 August 2022 15:20:45 +0000 (0:00:00.699) 0:00:03.343 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tests_states.yml:18 Wednesday 03 August 2022 15:20:45 +0000 (0:00:00.043) 0:00:03.387 ****** included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml for /cache/rhel-6.qcow2.snap TASK [TEST: I can create a profile] ******************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:20:45 +0000 (0:00:00.049) 0:00:03.436 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:20:45 +0000 (0:00:00.043) 0:00:03.480 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_present.yml", "when": false } ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/rhel-6.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/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 15:20:45 +0000 (0:00:00.136) 0:00:03.616 ****** included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/show_interfaces.yml for /cache/rhel-6.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:20:45 +0000 (0:00:00.047) 0:00:03.664 ****** included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-6.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:20:46 +0000 (0:00:00.042) 0:00:03.706 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003624", "end": "2022-08-03 11:20:45.563829", "rc": 0, "start": "2022-08-03 11:20:45.560205" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:20:46 +0000 (0:00:00.314) 0:00:04.021 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:20:46 +0000 (0:00:00.073) 0:00:04.094 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 15:20:46 +0000 (0:00:00.065) 0:00:04.160 ****** included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/delete_interface.yml for /cache/rhel-6.qcow2.snap => (item=tasks/delete_interface.yml) included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/assert_device_absent.yml for /cache/rhel-6.qcow2.snap => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 15:20:46 +0000 (0:00:00.056) 0:00:04.216 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.023293", "end": "2022-08-03 11:20:46.100304", "rc": 255, "start": "2022-08-03 11:20:46.077011" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:20:46 +0000 (0:00:00.338) 0:00:04.555 ****** included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-6.qcow2.snap TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:20:46 +0000 (0:00:00.047) 0:00:04.603 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:20:47 +0000 (0:00:00.275) 0:00:04.878 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 15:20:47 +0000 (0:00:00.047) 0:00:04.925 ****** included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-6.qcow2.snap => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 15:20:47 +0000 (0:00:00.051) 0:00:04.977 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 15:20:47 +0000 (0:00:00.061) 0:00:05.038 ****** included: /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/rhel-6.qcow2.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:20:47 +0000 (0:00:00.051) 0:00:05.089 ****** ok: [/cache/rhel-6.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/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 15:20:47 +0000 (0:00:00.357) 0:00:05.447 ****** ok: [/cache/rhel-6.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/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 15:20:49 +0000 (0:00:01.493) 0:00:06.941 ****** ok: [/cache/rhel-6.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/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:20:50 +0000 (0:00:00.864) 0:00:07.806 ****** ok: [/cache/rhel-6.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/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 15:20:50 +0000 (0:00:00.053) 0:00:07.859 ****** skipping: [/cache/rhel-6.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/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 15:20:50 +0000 (0:00:00.045) 0:00:07.905 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 15:20:50 +0000 (0:00:00.044) 0:00:07.950 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again TASK [Failure in test 'I can create a profile'] ******************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:52 Wednesday 03 August 2022 15:20:50 +0000 (0:00:00.732) 0:00:08.682 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [Show item that failed] *************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:56 Wednesday 03 August 2022 15:20:51 +0000 (0:00:00.053) 0:00:08.736 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=__network_connections_result) => { "__network_connections_result": "VARIABLE IS NOT DEFINED!: '__network_connections_result' is undefined", "ansible_loop_var": "item", "item": "__network_connections_result" } TASK [Issue failed message] **************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:61 Wednesday 03 August 2022 15:20:51 +0000 (0:00:00.056) 0:00:08.792 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [cleanup] ***************************************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:20:51 +0000 (0:00:00.050) 0:00:08.842 ****** included: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/cleanup_profile+device.yml for /cache/rhel-6.qcow2.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmpdb8ajfhr/tests/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 15:20:51 +0000 (0:00:00.064) 0:00:08.907 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.010392", "end": "2022-08-03 11:20:50.742283", "rc": 255, "start": "2022-08-03 11:20:50.731891" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found Cannot find device "statebr" MSG: non-zero return code ...ignoring PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=34 changed=1 unreachable=0 failed=1 skipped=6 rescued=1 ignored=2 Wednesday 03 August 2022 15:20:51 +0000 (0:00:00.276) 0:00:09.184 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.49s /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Gathering Facts --------------------------------------------------------- 0.92s /tmp/tmpdb8ajfhr/tests/tests_states_initscripts.yml:4 ------------------------- linux-system-roles.network : Check which packages are installed --------- 0.86s /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 linux-system-roles.network : Install packages --------------------------- 0.73s /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/main.yml:30 ----- Gathering Facts --------------------------------------------------------- 0.70s /tmp/tmpdb8ajfhr/tests/playbooks/tests_states.yml:3 --------------------------- Enable EPEL 6 ----------------------------------------------------------- 0.62s /tmp/tmpdb8ajfhr/tests/tasks/enable_epel.yml:26 ------------------------------- Get stats of system files ----------------------------------------------- 0.45s /tmp/tmpdb8ajfhr/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.39s /tmp/tmpdb8ajfhr/tests/_backup.yml:19 ----------------------------------------- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.36s /tmp/tmpdb8ajfhr/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - remove test interface if necessary -------------------------------------- 0.34s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Gather current interface info ------------------------------------------- 0.31s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- Cleanup profile and device ---------------------------------------------- 0.28s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- Get stat for interface statebr ------------------------------------------ 0.28s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- Show item --------------------------------------------------------------- 0.14s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:9 ------------------------- Set current_interfaces -------------------------------------------------- 0.07s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/get_current_interfaces.yml:9 ----------- Show current_interfaces ------------------------------------------------- 0.07s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/show_interfaces.yml:4 ------------------ cleanup ----------------------------------------------------------------- 0.06s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:66 ------------------------ Include network role ---------------------------------------------------- 0.06s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/create_bridge_profile.yml:3 ------------ setup ------------------------------------------------------------------- 0.06s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:23 ------------------------ Show item that failed --------------------------------------------------- 0.06s /tmp/tmpdb8ajfhr/tests/playbooks/tasks/run_test.yml:56 ------------------------ 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/tmpk7x13fer 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/tmptjr_ga81/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmptjr_ga81/tests/network/_backup.yml:6 Wednesday 03 August 2022 15:29:32 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=/etc/resolv.conf) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "deprecations": [ { "collection_name": null, "msg": "ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659540571.5727608, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540571.572, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659540132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072091885224", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. TASK [Check if system files exist] ********************************************* task path: /tmp/tmptjr_ga81/tests/network/_backup.yml:13 Wednesday 03 August 2022 15:29:33 +0000 (0:00:00.457) 0:00:00.475 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-6.qcow2.snap] => (item={'invocation': {'module_args': {'checksum_algorithm': 'sha1', 'get_checksum': True, 'follow': False, 'path': '/etc/resolv.conf', 'get_md5': False, 'get_mime': True, 'get_attributes': True}}, 'stat': {'charset': 'us-ascii', 'uid': 0, 'exists': True, 'attr_flags': 'e', 'woth': False, 'isreg': True, 'device_type': 0, 'mtime': 1659540132.0, 'block_size': 4096, 'inode': 260120, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744072091885224', 'pw_name': 'root', 'gid': 0, 'ischr': False, 'wusr': True, 'writeable': True, 'mimetype': 'text/plain', 'blocks': 8, 'xoth': False, 'islnk': False, 'nlink': 1, 'issock': False, 'rgrp': True, 'gr_name': 'root', 'path': '/etc/resolv.conf', 'xusr': False, 'atime': 1659540571.5727608, 'isdir': False, 'ctime': 1659540571.572, 'isblk': False, 'wgrp': False, 'checksum': '2c55cc8324e731161638aa365379c1c147546a87', 'dev': 64513, 'roth': True, 'isfifo': False, 'mode': '0644', 'xgrp': False, 'rusr': True, 'attributes': ['extents']}, 'changed': False, 'ansible_facts': {'discovered_interpreter_python': '/usr/bin/python'}, '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/python" }, "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": 1659540571.5727608, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659540571.572, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 260120, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659540132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744072091885224", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/_backup.yml:19 Wednesday 03 August 2022 15:29:33 +0000 (0:00:00.033) 0:00:00.508 ****** changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003968", "end": "2022-08-03 11:29:32.995112", "rc": 0, "start": "2022-08-03 11:29:32.991144" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:29:33 +0000 (0:00:00.365) 0:00:00.874 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.46s /tmp/tmptjr_ga81/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.37s /tmp/tmptjr_ga81/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmptjr_ga81/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmptjr_ga81/tests/network/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptjr_ga81/tests/network/tests_states_initscripts.yml:4 Wednesday 03 August 2022 15:29:33 +0000 (0:00:00.015) 0:00:00.889 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tests_states_initscripts.yml:7 Wednesday 03 August 2022 15:29:34 +0000 (0:00:00.918) 0:00:01.808 ****** included: /tmp/tmptjr_ga81/tests/network/tasks/el_repo_setup.yml for /cache/rhel-6.qcow2.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:29:34 +0000 (0:00:00.029) 0:00:01.837 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:29:34 +0000 (0:00:00.020) 0:00:01.857 ****** included: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml for /cache/rhel-6.qcow2.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:29:34 +0000 (0:00:00.028) 0:00:01.886 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:29:34 +0000 (0:00:00.020) 0:00:01.907 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:29:34 +0000 (0:00:00.019) 0:00:01.926 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:29:34 +0000 (0:00:00.018) 0:00:01.945 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "checksum": "4bafddfe7badb0971135c888f25df1308b193622", "dest": "/etc/yum.repos.d/epel.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/epel.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 155, "state": "file", "uid": 0 } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmptjr_ga81/tests/network/tests_states_initscripts.yml:8 Wednesday 03 August 2022 15:29:35 +0000 (0:00:00.623) 0:00:02.569 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptjr_ga81/tests/network/playbooks/tests_states.yml:3 Wednesday 03 August 2022 15:29:35 +0000 (0:00:00.052) 0:00:02.621 ****** ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tests_states.yml:10 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.701) 0:00:03.323 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tests_states.yml:18 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.042) 0:00:03.365 ****** included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml for /cache/rhel-6.qcow2.snap TASK [TEST: I can create a profile] ******************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.045) 0:00:03.411 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.039) 0:00:03.451 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_present.yml", "when": false } ] } ok: [/cache/rhel-6.qcow2.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/rhel-6.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/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.141) 0:00:03.592 ****** included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/show_interfaces.yml for /cache/rhel-6.qcow2.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.044) 0:00:03.636 ****** included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-6.qcow2.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.043) 0:00:03.680 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003485", "end": "2022-08-03 11:29:36.096681", "rc": 0, "start": "2022-08-03 11:29:36.093196" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.294) 0:00:03.974 ****** ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:29:36 +0000 (0:00:00.082) 0:00:04.057 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.050) 0:00:04.108 ****** included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/delete_interface.yml for /cache/rhel-6.qcow2.snap => (item=tasks/delete_interface.yml) included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/rhel-6.qcow2.snap => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.055) 0:00:04.163 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.027365", "end": "2022-08-03 11:29:36.627379", "rc": 255, "start": "2022-08-03 11:29:36.600014" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.348) 0:00:04.512 ****** included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-6.qcow2.snap TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.049) 0:00:04.561 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.286) 0:00:04.847 ****** ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.047) 0:00:04.895 ****** included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/create_bridge_profile.yml for /cache/rhel-6.qcow2.snap => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.051) 0:00:04.947 ****** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.064) 0:00:05.012 ****** included: /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/rhel-6.qcow2.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:29:37 +0000 (0:00:00.055) 0:00:05.067 ****** ok: [/cache/rhel-6.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/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 15:29:38 +0000 (0:00:00.375) 0:00:05.443 ****** ok: [/cache/rhel-6.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/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 15:29:39 +0000 (0:00:01.559) 0:00:07.002 ****** ok: [/cache/rhel-6.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/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 15:29:40 +0000 (0:00:00.894) 0:00:07.897 ****** ok: [/cache/rhel-6.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/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 15:29:40 +0000 (0:00:00.054) 0:00:07.951 ****** skipping: [/cache/rhel-6.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/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 15:29:40 +0000 (0:00:00.046) 0:00:07.998 ****** skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 15:29:40 +0000 (0:00:00.042) 0:00:08.041 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: Failure talking to yum: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again TASK [Failure in test 'I can create a profile'] ******************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:52 Wednesday 03 August 2022 15:29:41 +0000 (0:00:00.739) 0:00:08.781 ****** ok: [/cache/rhel-6.qcow2.snap] => {} MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [Show item that failed] *************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:56 Wednesday 03 August 2022 15:29:41 +0000 (0:00:00.051) 0:00:08.832 ****** ok: [/cache/rhel-6.qcow2.snap] => (item=__network_connections_result) => { "__network_connections_result": "VARIABLE IS NOT DEFINED!: '__network_connections_result' is undefined", "ansible_loop_var": "item", "item": "__network_connections_result" } TASK [Issue failed message] **************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:61 Wednesday 03 August 2022 15:29:41 +0000 (0:00:00.055) 0:00:08.888 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [cleanup] ***************************************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 15:29:41 +0000 (0:00:00.050) 0:00:08.939 ****** included: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/cleanup_profile+device.yml for /cache/rhel-6.qcow2.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmptjr_ga81/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 15:29:41 +0000 (0:00:00.067) 0:00:09.006 ****** fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false, "cmd": "nmcli con delete statebr\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-statebr\nrm -f /etc/sysconfig/network-scripts/ifcfg-statebr\nip link del statebr\n", "delta": "0:00:00.009640", "end": "2022-08-03 11:29:41.408164", "rc": 255, "start": "2022-08-03 11:29:41.398524" } STDERR: /bin/sh: nmcli: command not found /bin/sh: line 1: nmcli: command not found Cannot find device "statebr" MSG: non-zero return code ...ignoring PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=34 changed=1 unreachable=0 failed=1 skipped=6 rescued=1 ignored=2 Wednesday 03 August 2022 15:29:42 +0000 (0:00:00.275) 0:00:09.281 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.56s /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Gathering Facts --------------------------------------------------------- 0.92s /tmp/tmptjr_ga81/tests/network/tests_states_initscripts.yml:4 ----------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.89s /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 fedora.linux_system_roles.network : Install packages -------------------- 0.74s /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Gathering Facts --------------------------------------------------------- 0.70s /tmp/tmptjr_ga81/tests/network/playbooks/tests_states.yml:3 ------------------- Enable EPEL 6 ----------------------------------------------------------- 0.62s /tmp/tmptjr_ga81/tests/network/tasks/enable_epel.yml:26 ----------------------- Get stats of system files ----------------------------------------------- 0.46s /tmp/tmptjr_ga81/tests/network/_backup.yml:6 ---------------------------------- fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.38s /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Back up system files ---------------------------------------------------- 0.37s /tmp/tmptjr_ga81/tests/network/_backup.yml:19 --------------------------------- remove test interface if necessary -------------------------------------- 0.35s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/delete_interface.yml:3 --------- Gather current interface info ------------------------------------------- 0.29s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Get stat for interface statebr ------------------------------------------ 0.29s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- Cleanup profile and device ---------------------------------------------- 0.28s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Show item --------------------------------------------------------------- 0.14s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:9 ----------------- Set current_interfaces -------------------------------------------------- 0.08s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/get_current_interfaces.yml:9 --- cleanup ----------------------------------------------------------------- 0.07s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:66 ---------------- Include network role ---------------------------------------------------- 0.06s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/create_bridge_profile.yml:3 ---- Show item that failed --------------------------------------------------- 0.06s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:56 ---------------- setup ------------------------------------------------------------------- 0.06s /tmp/tmptjr_ga81/tests/network/playbooks/tasks/run_test.yml:23 ---------------- fedora.linux_system_roles.network : Ensure ansible_facts used by role --- 0.06s /tmp/tmpk7x13fer/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4