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/tmpb95mhbnh 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/tmp2w2t0usz/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmp2w2t0usz/tests/_backup.yml:6 Wednesday 03 August 2022 16:54:03 +0000 (0:00:00.019) 0:00:00.019 ****** ok: [/cache/centos-6.qcow2c.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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659545641.9089582, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659545641.9079955, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545178.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "1928927637", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. 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/tmp2w2t0usz/tests/_backup.yml:13 Wednesday 03 August 2022 16:54:04 +0000 (0:00:00.485) 0:00:00.505 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-6.qcow2c.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': 1659545178.0, 'block_size': 4096, 'inode': 25, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '1928927637', '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': 1659545641.9089582, 'isdir': False, 'ctime': 1659545641.9079955, '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": 1659545641.9089582, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659545641.9079955, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545178.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "1928927637", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmp2w2t0usz/tests/_backup.yml:19 Wednesday 03 August 2022 16:54:04 +0000 (0:00:00.036) 0:00:00.542 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004473", "end": "2022-08-03 16:54:03.471933", "rc": 0, "start": "2022-08-03 16:54:03.467460" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:54:04 +0000 (0:00:00.420) 0:00:00.962 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.49s /tmp/tmp2w2t0usz/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.42s /tmp/tmp2w2t0usz/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmp2w2t0usz/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmp2w2t0usz/tests/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp2w2t0usz/tests/tests_states_initscripts.yml:4 Wednesday 03 August 2022 16:54:04 +0000 (0:00:00.015) 0:00:00.978 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tests_states_initscripts.yml:7 Wednesday 03 August 2022 16:54:05 +0000 (0:00:00.984) 0:00:01.963 ****** included: /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml for /cache/centos-6.qcow2c.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:54:05 +0000 (0:00:00.032) 0:00:01.995 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "checksum": "b0aa488e4736bbd208461d247c4869d2ba0c95cd", "dest": "/etc/yum.repos.d/CentOS-Base.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/CentOS-Base.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 480, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:54:06 +0000 (0:00:00.650) 0:00:02.646 ****** included: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml for /cache/centos-6.qcow2c.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:54:06 +0000 (0:00:00.030) 0:00:02.676 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:54:06 +0000 (0:00:00.021) 0:00:02.697 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:54:06 +0000 (0:00:00.019) 0:00:02.717 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:54:06 +0000 (0:00:00.019) 0:00:02.737 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/tests_states_initscripts.yml:8 Wednesday 03 August 2022 16:54:06 +0000 (0:00:00.526) 0:00:03.263 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp2w2t0usz/tests/playbooks/tests_states.yml:3 Wednesday 03 August 2022 16:54:07 +0000 (0:00:00.052) 0:00:03.315 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tests_states.yml:10 Wednesday 03 August 2022 16:54:07 +0000 (0:00:00.715) 0:00:04.031 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tests_states.yml:18 Wednesday 03 August 2022 16:54:07 +0000 (0:00:00.045) 0:00:04.077 ****** included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml for /cache/centos-6.qcow2c.snap TASK [TEST: I can create a profile] ******************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 16:54:07 +0000 (0:00:00.051) 0:00:04.128 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 16:54:07 +0000 (0:00:00.049) 0:00:04.177 ****** ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/centos-6.qcow2c.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/centos-6.qcow2c.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.159) 0:00:04.337 ****** included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/show_interfaces.yml for /cache/centos-6.qcow2c.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.047) 0:00:04.385 ****** included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/get_current_interfaces.yml for /cache/centos-6.qcow2c.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.046) 0:00:04.432 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003909", "end": "2022-08-03 16:54:07.238410", "rc": 0, "start": "2022-08-03 16:54:07.234501" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.290) 0:00:04.722 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.043) 0:00:04.766 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.072) 0:00:04.838 ****** included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/delete_interface.yml for /cache/centos-6.qcow2c.snap => (item=tasks/delete_interface.yml) included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/assert_device_absent.yml for /cache/centos-6.qcow2c.snap => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.052) 0:00:04.890 ****** fatal: [/cache/centos-6.qcow2c.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.012385", "end": "2022-08-03 16:54:07.706108", "rc": 255, "start": "2022-08-03 16:54:07.693723" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.307) 0:00:05.198 ****** included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/get_interface_stat.yml for /cache/centos-6.qcow2c.snap TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:54:08 +0000 (0:00:00.049) 0:00:05.248 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 16:54:09 +0000 (0:00:00.327) 0:00:05.575 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 16:54:09 +0000 (0:00:00.049) 0:00:05.625 ****** included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/create_bridge_profile.yml for /cache/centos-6.qcow2c.snap => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 16:54:09 +0000 (0:00:00.054) 0:00:05.679 ****** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 16:54:09 +0000 (0:00:00.061) 0:00:05.740 ****** included: /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/centos-6.qcow2c.snap TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:54:09 +0000 (0:00:00.054) 0:00:05.795 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 16:54:09 +0000 (0:00:00.398) 0:00:06.194 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 16:54:11 +0000 (0:00:01.204) 0:00:07.398 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 16:54:12 +0000 (0:00:01.054) 0:00:08.453 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 16:54:12 +0000 (0:00:00.122) 0:00:08.576 ****** skipping: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 16:54:12 +0000 (0:00:00.047) 0:00:08.623 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 16:54:12 +0000 (0:00:00.044) 0:00:08.668 ****** fatal: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:52 Wednesday 03 August 2022 16:54:13 +0000 (0:00:00.812) 0:00:09.481 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [Show item that failed] *************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:56 Wednesday 03 August 2022 16:54:13 +0000 (0:00:00.053) 0:00:09.534 ****** ok: [/cache/centos-6.qcow2c.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/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:61 Wednesday 03 August 2022 16:54:13 +0000 (0:00:00.055) 0:00:09.589 ****** fatal: [/cache/centos-6.qcow2c.snap]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [cleanup] ***************************************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 16:54:13 +0000 (0:00:00.053) 0:00:09.643 ****** included: /tmp/tmp2w2t0usz/tests/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-6.qcow2c.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmp2w2t0usz/tests/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 16:54:13 +0000 (0:00:00.065) 0:00:09.709 ****** fatal: [/cache/centos-6.qcow2c.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.008368", "end": "2022-08-03 16:54:12.527109", "rc": 255, "start": "2022-08-03 16:54:12.518741" } 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/centos-6.qcow2c.snap : ok=35 changed=1 unreachable=0 failed=1 skipped=5 rescued=1 ignored=2 Wednesday 03 August 2022 16:54:13 +0000 (0:00:00.295) 0:00:10.005 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.20s /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.05s /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 0.98s /tmp/tmp2w2t0usz/tests/tests_states_initscripts.yml:4 ------------------------- linux-system-roles.network : Install packages --------------------------- 0.81s /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/main.yml:30 ----- Gathering Facts --------------------------------------------------------- 0.72s /tmp/tmp2w2t0usz/tests/playbooks/tests_states.yml:3 --------------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.65s /tmp/tmp2w2t0usz/tests/tasks/el_repo_setup.yml:2 ------------------------------ Enable EPEL 6 ----------------------------------------------------------- 0.53s /tmp/tmp2w2t0usz/tests/tasks/enable_epel.yml:26 ------------------------------- Get stats of system files ----------------------------------------------- 0.49s /tmp/tmp2w2t0usz/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.42s /tmp/tmp2w2t0usz/tests/_backup.yml:19 ----------------------------------------- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.40s /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Get stat for interface statebr ------------------------------------------ 0.33s /tmp/tmp2w2t0usz/tests/playbooks/tasks/get_interface_stat.yml:3 --------------- remove test interface if necessary -------------------------------------- 0.31s /tmp/tmp2w2t0usz/tests/playbooks/tasks/delete_interface.yml:3 ----------------- Cleanup profile and device ---------------------------------------------- 0.30s /tmp/tmp2w2t0usz/tests/playbooks/tasks/cleanup_profile+device.yml:3 ----------- Gather current interface info ------------------------------------------- 0.29s /tmp/tmp2w2t0usz/tests/playbooks/tasks/get_current_interfaces.yml:3 ----------- Show item --------------------------------------------------------------- 0.16s /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:9 ------------------------- linux-system-roles.network : Print network provider --------------------- 0.12s /tmp/tmp2w2t0usz/tests/roles/linux-system-roles.network/tasks/main.yml:7 ------ Show current_interfaces ------------------------------------------------- 0.07s /tmp/tmp2w2t0usz/tests/playbooks/tasks/show_interfaces.yml:4 ------------------ cleanup ----------------------------------------------------------------- 0.07s /tmp/tmp2w2t0usz/tests/playbooks/tasks/run_test.yml:66 ------------------------ Include network role ---------------------------------------------------- 0.06s /tmp/tmp2w2t0usz/tests/playbooks/tasks/create_bridge_profile.yml:3 ------------ Show item that failed --------------------------------------------------- 0.06s /tmp/tmp2w2t0usz/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/tmpb95mhbnh 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/tmpa_fzm6o2/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpa_fzm6o2/tests/network/_backup.yml:6 Wednesday 03 August 2022 17:03:33 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/centos-6.qcow2c.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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]", "version": "2.13" } ], "item": "/etc/resolv.conf", "stat": { "atime": 1659546212.2200353, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659546212.22, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545746.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744073481212756", "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, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]. 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/tmpa_fzm6o2/tests/network/_backup.yml:13 Wednesday 03 August 2022 17:03:34 +0000 (0:00:00.481) 0:00:00.500 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/centos-6.qcow2c.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': 1659545746.0, 'block_size': 4096, 'inode': 25, 'isgid': False, 'size': 57, 'executable': False, 'isuid': False, 'readable': True, 'version': '18446744073481212756', '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': 1659546212.2200353, 'isdir': False, 'ctime': 1659546212.22, '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": 1659546212.2200353, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c55cc8324e731161638aa365379c1c147546a87", "ctime": 1659546212.22, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659545746.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 57, "uid": 0, "version": "18446744073481212756", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/_backup.yml:19 Wednesday 03 August 2022 17:03:34 +0000 (0:00:00.036) 0:00:00.536 ****** changed: [/cache/centos-6.qcow2c.snap] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004464", "end": "2022-08-03 17:03:33.742074", "rc": 0, "start": "2022-08-03 17:03:33.737610" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-6.qcow2c.snap : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 17:03:34 +0000 (0:00:00.400) 0:00:00.937 ****** =============================================================================== Get stats of system files ----------------------------------------------- 0.48s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.40s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_states_initscripts.yml ***************************************** 2 plays in /tmp/tmpa_fzm6o2/tests/network/tests_states_initscripts.yml PLAY [Run playbook 'playbooks/tests_states.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpa_fzm6o2/tests/network/tests_states_initscripts.yml:4 Wednesday 03 August 2022 17:03:34 +0000 (0:00:00.015) 0:00:00.952 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tests_states_initscripts.yml:7 Wednesday 03 August 2022 17:03:35 +0000 (0:00:00.947) 0:00:01.900 ****** included: /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml for /cache/centos-6.qcow2c.snap TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 17:03:35 +0000 (0:00:00.029) 0:00:01.929 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "checksum": "b0aa488e4736bbd208461d247c4869d2ba0c95cd", "dest": "/etc/yum.repos.d/CentOS-Base.repo", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/yum.repos.d/CentOS-Base.repo", "secontext": "system_u:object_r:etc_t:s0", "size": 480, "state": "file", "uid": 0 } TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 17:03:36 +0000 (0:00:00.617) 0:00:02.547 ****** included: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml for /cache/centos-6.qcow2c.snap TASK [Create EPEL 6] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 17:03:36 +0000 (0:00:00.032) 0:00:02.580 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 17:03:36 +0000 (0:00:00.022) 0:00:02.602 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 17:03:36 +0000 (0:00:00.022) 0:00:02.624 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 17:03:36 +0000 (0:00:00.022) 0:00:02.647 ****** ok: [/cache/centos-6.qcow2c.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/tmpa_fzm6o2/tests/network/tests_states_initscripts.yml:8 Wednesday 03 August 2022 17:03:37 +0000 (0:00:00.542) 0:00:03.189 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tests_states.yml:3 Wednesday 03 August 2022 17:03:37 +0000 (0:00:00.049) 0:00:03.238 ****** ok: [/cache/centos-6.qcow2c.snap] META: ran handlers TASK [Show playbook name] ****************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tests_states.yml:10 Wednesday 03 August 2022 17:03:37 +0000 (0:00:00.738) 0:00:03.977 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tests_states.yml:18 Wednesday 03 August 2022 17:03:37 +0000 (0:00:00.043) 0:00:04.021 ****** included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml for /cache/centos-6.qcow2c.snap TASK [TEST: I can create a profile] ******************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:5 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.051) 0:00:04.073 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:9 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.071) 0:00:04.145 ****** ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [/cache/centos-6.qcow2c.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/centos-6.qcow2c.snap] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [/cache/centos-6.qcow2c.snap] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:21 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.146) 0:00:04.291 ****** included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/show_interfaces.yml for /cache/centos-6.qcow2c.snap TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.050) 0:00:04.342 ****** included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/centos-6.qcow2c.snap TASK [Gather current interface info] ******************************************* task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.044) 0:00:04.387 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003925", "end": "2022-08-03 17:03:37.491714", "rc": 0, "start": "2022-08-03 17:03:37.487789" } STDOUT: dummy0 eth0 lo TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.297) 0:00:04.684 ****** ok: [/cache/centos-6.qcow2c.snap] => { "ansible_facts": { "current_interfaces": [ "dummy0", "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.046) 0:00:04.731 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: current_interfaces: ['dummy0', 'eth0', 'lo'] TASK [setup] ******************************************************************* task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:23 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.088) 0:00:04.819 ****** included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/delete_interface.yml for /cache/centos-6.qcow2c.snap => (item=tasks/delete_interface.yml) included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/assert_device_absent.yml for /cache/centos-6.qcow2c.snap => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/delete_interface.yml:3 Wednesday 03 August 2022 17:03:38 +0000 (0:00:00.058) 0:00:04.878 ****** fatal: [/cache/centos-6.qcow2c.snap]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.016708", "end": "2022-08-03 17:03:38.023117", "rc": 255, "start": "2022-08-03 17:03:38.006409" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/assert_device_absent.yml:3 Wednesday 03 August 2022 17:03:39 +0000 (0:00:00.343) 0:00:05.221 ****** included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/centos-6.qcow2c.snap TASK [Get stat for interface statebr] ****************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 17:03:39 +0000 (0:00:00.049) 0:00:05.271 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/assert_device_absent.yml:4 Wednesday 03 August 2022 17:03:39 +0000 (0:00:00.297) 0:00:05.568 ****** ok: [/cache/centos-6.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:29 Wednesday 03 August 2022 17:03:39 +0000 (0:00:00.048) 0:00:05.616 ****** included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/create_bridge_profile.yml for /cache/centos-6.qcow2c.snap => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/create_bridge_profile.yml:3 Wednesday 03 August 2022 17:03:39 +0000 (0:00:00.052) 0:00:05.669 ****** TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 17:03:39 +0000 (0:00:00.067) 0:00:05.736 ****** included: /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/centos-6.qcow2c.snap TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 17:03:39 +0000 (0:00:00.055) 0:00:05.792 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 17:03:40 +0000 (0:00:00.394) 0:00:06.187 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 17:03:41 +0000 (0:00:01.156) 0:00:07.344 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 17:03:42 +0000 (0:00:00.844) 0:00:08.188 ****** ok: [/cache/centos-6.qcow2c.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/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 17:03:42 +0000 (0:00:00.078) 0:00:08.267 ****** skipping: [/cache/centos-6.qcow2c.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/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 17:03:42 +0000 (0:00:00.046) 0:00:08.313 ****** skipping: [/cache/centos-6.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 17:03:42 +0000 (0:00:00.093) 0:00:08.407 ****** fatal: [/cache/centos-6.qcow2c.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/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:52 Wednesday 03 August 2022 17:03:43 +0000 (0:00:00.988) 0:00:09.396 ****** ok: [/cache/centos-6.qcow2c.snap] => {} MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [Show item that failed] *************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:56 Wednesday 03 August 2022 17:03:43 +0000 (0:00:00.052) 0:00:09.449 ****** ok: [/cache/centos-6.qcow2c.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/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:61 Wednesday 03 August 2022 17:03:43 +0000 (0:00:00.057) 0:00:09.506 ****** fatal: [/cache/centos-6.qcow2c.snap]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'I can create a profile' !!!!! TASK [cleanup] ***************************************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:66 Wednesday 03 August 2022 17:03:43 +0000 (0:00:00.050) 0:00:09.557 ****** included: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/cleanup_profile+device.yml for /cache/centos-6.qcow2c.snap => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** task path: /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 Wednesday 03 August 2022 17:03:43 +0000 (0:00:00.063) 0:00:09.620 ****** fatal: [/cache/centos-6.qcow2c.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.009109", "end": "2022-08-03 17:03:42.735238", "rc": 255, "start": "2022-08-03 17:03:42.726129" } 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/centos-6.qcow2c.snap : ok=35 changed=1 unreachable=0 failed=1 skipped=5 rescued=1 ignored=2 Wednesday 03 August 2022 17:03:43 +0000 (0:00:00.297) 0:00:09.918 ****** =============================================================================== fedora.linux_system_roles.network : Check which services are running ---- 1.16s /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Install packages -------------------- 0.99s /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Gathering Facts --------------------------------------------------------- 0.95s /tmp/tmpa_fzm6o2/tests/network/tests_states_initscripts.yml:4 ----------------- fedora.linux_system_roles.network : Check which packages are installed --- 0.84s /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Gathering Facts --------------------------------------------------------- 0.74s /tmp/tmpa_fzm6o2/tests/network/playbooks/tests_states.yml:3 ------------------- Fix CentOS6 Base repo --------------------------------------------------- 0.62s /tmp/tmpa_fzm6o2/tests/network/tasks/el_repo_setup.yml:2 ---------------------- Enable EPEL 6 ----------------------------------------------------------- 0.54s /tmp/tmpa_fzm6o2/tests/network/tasks/enable_epel.yml:26 ----------------------- Get stats of system files ----------------------------------------------- 0.48s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.40s /tmp/tmpa_fzm6o2/tests/network/_backup.yml:19 --------------------------------- fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.39s /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 remove test interface if necessary -------------------------------------- 0.34s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/delete_interface.yml:3 --------- Cleanup profile and device ---------------------------------------------- 0.30s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/cleanup_profile+device.yml:3 --- Get stat for interface statebr ------------------------------------------ 0.30s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/get_interface_stat.yml:3 ------- Gather current interface info ------------------------------------------- 0.30s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/get_current_interfaces.yml:3 --- Show item --------------------------------------------------------------- 0.15s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:9 ----------------- fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8 --- 0.09s /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Show current_interfaces ------------------------------------------------- 0.09s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/show_interfaces.yml:4 ---------- fedora.linux_system_roles.network : Print network provider -------------- 0.08s /tmp/tmpb95mhbnh/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 TEST: I can create a profile -------------------------------------------- 0.07s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/run_test.yml:5 ----------------- Include network role ---------------------------------------------------- 0.07s /tmp/tmpa_fzm6o2/tests/network/playbooks/tasks/create_bridge_profile.yml:3 ----