# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_states.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:16:52 +0000 (0:00:00.576) 0:00:00.576 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:17:01 +0000 (0:00:08.538) 0:00:09.114 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 19:17:01 +0000 (0:00:00.744) 0:00:09.859 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:17:02 +0000 (0:00:00.822) 0:00:10.682 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 19:17:03 +0000 (0:00:01.076) 0:00:11.779 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.519387", "end": "2022-08-05 19:17:10.382651", "rc": 0, "start": "2022-08-05 19:17:07.863264" } STDOUT: Last metadata expiration check: 0:01:17 ago on Fri Aug 5 19:15:51 2022. epel-release-latest-8.noarch.rpm 181 kB/s | 24 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-16.el8 @commandline 24 k Transaction Summary ================================================================================ Install 1 Package Total size: 24 k Installed size: 34 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-16.el8.noarch 1/1 Running scriptlet: epel-release-8-16.el8.noarch 1/1 Many EPEL packages require the CodeReady Builder (CRB) repository. It is recommended that you run /usr/bin/crb enable to enable the CRB repository. Verifying : epel-release-8-16.el8.noarch 1/1 Installed: epel-release-8-16.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 19:17:10 +0000 (0:00:07.175) 0:00:18.955 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 19:17:11 +0000 (0:00:00.719) 0:00:19.674 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.591655", "end": "2022-08-05 19:17:13.713927", "rc": 0, "start": "2022-08-05 19:17:13.122272" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 19:17:14 +0000 (0:00:02.634) 0:00:22.309 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 19:17:15 +0000 (0:00:00.715) 0:00:23.025 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 19:17:17 +0000 (0:00:02.111) 0:00:25.137 ********* ok: [sut] TASK [Show playbook name] ****************************************************** Friday 05 August 2022 19:17:20 +0000 (0:00:03.052) 0:00:28.190 ********* ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:17:21 +0000 (0:00:01.572) 0:00:29.763 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile] ******************************************** Friday 05 August 2022 19:17:22 +0000 (0:00:01.029) 0:00:30.792 ********* ok: [sut] => {} MSG: ########## I can create a profile ########## TASK [Show item] *************************************************************** Friday 05 August 2022 19:17:23 +0000 (0:00:01.136) 0:00:31.928 ********* ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_present.yml", "when": true } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:17:28 +0000 (0:00:04.401) 0:00:36.330 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:17:29 +0000 (0:00:00.981) 0:00:37.312 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 19:17:31 +0000 (0:00:01.903) 0:00:39.215 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004301", "end": "2022-08-05 19:17:33.986387", "rc": 0, "start": "2022-08-05 19:17:33.982086" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:17:34 +0000 (0:00:03.093) 0:00:42.308 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:17:36 +0000 (0:00:02.510) 0:00:44.819 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 05 August 2022 19:17:38 +0000 (0:00:01.398) 0:00:46.217 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/delete_interface.yml for sut => (item=tasks/delete_interface.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 19:17:39 +0000 (0:00:01.173) 0:00:47.412 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.009539", "end": "2022-08-05 19:17:41.845161", "rc": 1, "start": "2022-08-05 19:17:41.835622" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:17:42 +0000 (0:00:02.829) 0:00:50.241 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:17:43 +0000 (0:00:01.193) 0:00:51.434 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* Friday 05 August 2022 19:17:48 +0000 (0:00:04.584) 0:00:56.019 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** Friday 05 August 2022 19:17:49 +0000 (0:00:00.996) 0:00:57.015 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/create_bridge_profile.yml for sut => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:17:50 +0000 (0:00:01.383) 0:00:58.399 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:17:51 +0000 (0:00:01.274) 0:00:59.674 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:17:53 +0000 (0:00:01.905) 0:01:01.579 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:17:57 +0000 (0:00:03.651) 0:01:05.231 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:18:05 +0000 (0:00:08.127) 0:01:13.358 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:18:22 +0000 (0:00:17.328) 0:01:30.687 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:18:23 +0000 (0:00:01.253) 0:01:31.940 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:18:25 +0000 (0:00:01.114) 0:01:33.054 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:18:26 +0000 (0:00:01.697) 0:01:34.752 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:18:29 +0000 (0:00:02.676) 0:01:37.429 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:18:30 +0000 (0:00:00.627) 0:01:38.056 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:18:30 +0000 (0:00:00.503) 0:01:38.560 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:18:32 +0000 (0:00:01.817) 0:01:40.377 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:18:41 +0000 (0:00:08.910) 0:01:49.287 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:18:43 +0000 (0:00:01.893) 0:01:51.227 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:18:44 +0000 (0:00:01.261) 0:01:52.488 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:18:45 +0000 (0:00:00.729) 0:01:53.217 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c1c42f77-64a2-4cc7-b4a8-97e5dbd90889 TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:18:51 +0000 (0:00:06.593) 0:01:59.811 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:18:52 +0000 (0:00:00.891) 0:02:00.702 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c1c42f77-64a2-4cc7-b4a8-97e5dbd90889" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:18:55 +0000 (0:00:02.548) 0:02:03.251 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c1c42f77-64a2-4cc7-b4a8-97e5dbd90889\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c1c42f77-64a2-4cc7-b4a8-97e5dbd90889" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:18:57 +0000 (0:00:02.332) 0:02:05.584 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:18:58 +0000 (0:00:00.851) 0:02:06.436 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Friday 05 August 2022 19:19:03 +0000 (0:00:04.779) 0:02:11.216 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c1c42f77-64a2-4cc7-b4a8-97e5dbd90889\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c1c42f77-64a2-4cc7-b4a8-97e5dbd90889" ] } } TASK [asserts] ***************************************************************** Friday 05 August 2022 19:19:04 +0000 (0:00:01.108) 0:02:12.324 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:19:05 +0000 (0:00:01.257) 0:02:13.582 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 19:19:07 +0000 (0:00:01.448) 0:02:15.030 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 19:19:08 +0000 (0:00:01.395) 0:02:16.425 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659727131.3200557, "block_size": 4096, "blocks": 8, "ctime": 1659727131.1340477, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798013, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659727131.1340477, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 221, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:19:09 +0000 (0:00:01.485) 0:02:17.911 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:19:11 +0000 (0:00:01.692) 0:02:19.604 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.086305", "end": "2022-08-05 19:19:13.381270", "rc": 0, "start": "2022-08-05 19:19:13.294965" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 19:19:14 +0000 (0:00:02.545) 0:02:22.149 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Friday 05 August 2022 19:19:15 +0000 (0:00:01.587) 0:02:23.781 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Friday 05 August 2022 19:19:16 +0000 (0:00:00.752) 0:02:24.534 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is present] ******************************** Friday 05 August 2022 19:19:17 +0000 (0:00:00.882) 0:02:25.416 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* Friday 05 August 2022 19:19:18 +0000 (0:00:00.937) 0:02:26.354 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** Friday 05 August 2022 19:19:20 +0000 (0:00:01.829) 0:02:28.183 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_present.yml for sut => (item={'what': 'tasks/assert_device_present.yml', 'when': True}) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:19:21 +0000 (0:00:01.087) 0:02:29.271 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:19:22 +0000 (0:00:01.031) 0:02:30.303 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659727131.2401464, "block_size": 4096, "blocks": 0, "ctime": 1659727131.2401464, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21851, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1659727131.2401464, "nlink": 1, "path": "/sys/class/net/statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface statebr is present] ******************************** Friday 05 August 2022 19:19:23 +0000 (0:00:01.364) 0:02:31.667 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can create a profile'] ******************************** Friday 05 August 2022 19:19:24 +0000 (0:00:00.808) 0:02:32.476 ********* ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile' +++++ TASK [cleanup] ***************************************************************** Friday 05 August 2022 19:19:25 +0000 (0:00:00.823) 0:02:33.299 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/cleanup_profile+device.yml for sut => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** Friday 05 August 2022 19:19:27 +0000 (0:00:02.369) 0:02:35.669 ********* fatal: [sut]: 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.084977", "end": "2022-08-05 19:19:28.999405", "rc": 1, "start": "2022-08-05 19:19:28.914428" } STDOUT: Connection 'statebr' (c1c42f77-64a2-4cc7-b4a8-97e5dbd90889) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:19:29 +0000 (0:00:02.108) 0:02:37.777 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can create a profile without autoconnect] ************************ Friday 05 August 2022 19:19:32 +0000 (0:00:02.383) 0:02:40.161 ********* ok: [sut] => {} MSG: ########## I can create a profile without autoconnect ########## TASK [Show item] *************************************************************** Friday 05 August 2022 19:19:34 +0000 (0:00:01.813) 0:02:41.974 ********* ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can create a profile without autoconnect" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/delete_interface.yml", "tasks/assert_device_absent.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/create_bridge_profile_no_autoconnect.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_absent.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:19:40 +0000 (0:00:06.082) 0:02:48.056 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:19:42 +0000 (0:00:02.541) 0:02:50.598 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 19:19:44 +0000 (0:00:02.268) 0:02:52.867 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004110", "end": "2022-08-05 19:19:46.511052", "rc": 0, "start": "2022-08-05 19:19:46.506942" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:19:47 +0000 (0:00:02.396) 0:02:55.264 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:19:49 +0000 (0:00:01.913) 0:02:57.178 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 05 August 2022 19:19:51 +0000 (0:00:01.938) 0:02:59.117 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/delete_interface.yml for sut => (item=tasks/delete_interface.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut => (item=tasks/assert_device_absent.yml) TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 19:19:53 +0000 (0:00:02.643) 0:03:01.760 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "statebr" ], "delta": "0:00:00.007848", "end": "2022-08-05 19:19:55.383904", "rc": 1, "start": "2022-08-05 19:19:55.376056" } STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:19:56 +0000 (0:00:02.554) 0:03:04.315 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:19:58 +0000 (0:00:02.319) 0:03:06.634 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* Friday 05 August 2022 19:20:02 +0000 (0:00:04.160) 0:03:10.794 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [test] ******************************************************************** Friday 05 August 2022 19:20:05 +0000 (0:00:02.904) 0:03:13.699 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/create_bridge_profile_no_autoconnect.yml for sut => (item=tasks/create_bridge_profile_no_autoconnect.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:20:07 +0000 (0:00:01.828) 0:03:15.528 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:20:07 +0000 (0:00:00.198) 0:03:15.726 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:20:08 +0000 (0:00:00.315) 0:03:16.042 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:20:08 +0000 (0:00:00.786) 0:03:16.828 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:20:11 +0000 (0:00:02.291) 0:03:19.120 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:20:13 +0000 (0:00:02.018) 0:03:21.139 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:20:13 +0000 (0:00:00.600) 0:03:21.740 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:20:14 +0000 (0:00:00.261) 0:03:22.002 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:20:14 +0000 (0:00:00.294) 0:03:22.296 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:20:14 +0000 (0:00:00.285) 0:03:22.582 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:20:14 +0000 (0:00:00.175) 0:03:22.758 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:20:14 +0000 (0:00:00.182) 0:03:22.940 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:20:15 +0000 (0:00:00.219) 0:03:23.159 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:20:15 +0000 (0:00:00.602) 0:03:23.762 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:20:15 +0000 (0:00:00.144) 0:03:23.906 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:20:16 +0000 (0:00:00.085) 0:03:23.992 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:20:16 +0000 (0:00:00.146) 0:03:24.138 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 7f8843f3-80e6-4076-9ca4-dad11de088ac TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:20:17 +0000 (0:00:00.920) 0:03:25.059 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:20:17 +0000 (0:00:00.084) 0:03:25.143 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 7f8843f3-80e6-4076-9ca4-dad11de088ac" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:20:17 +0000 (0:00:00.160) 0:03:25.304 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 7f8843f3-80e6-4076-9ca4-dad11de088ac\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 7f8843f3-80e6-4076-9ca4-dad11de088ac" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:20:17 +0000 (0:00:00.141) 0:03:25.446 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:20:17 +0000 (0:00:00.272) 0:03:25.718 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Friday 05 August 2022 19:20:18 +0000 (0:00:00.406) 0:03:26.124 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 7f8843f3-80e6-4076-9ca4-dad11de088ac\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 7f8843f3-80e6-4076-9ca4-dad11de088ac" ] } } TASK [asserts] ***************************************************************** Friday 05 August 2022 19:20:18 +0000 (0:00:00.136) 0:03:26.261 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut => (item=tasks/assert_device_absent.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:20:18 +0000 (0:00:00.145) 0:03:26.407 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:20:18 +0000 (0:00:00.095) 0:03:26.502 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* Friday 05 August 2022 19:20:18 +0000 (0:00:00.295) 0:03:26.798 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:20:18 +0000 (0:00:00.152) 0:03:26.951 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 19:20:19 +0000 (0:00:00.125) 0:03:27.077 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 19:20:19 +0000 (0:00:00.082) 0:03:27.159 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659727216.8927493, "block_size": 4096, "blocks": 8, "ctime": 1659727216.8927493, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798013, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659727216.8927493, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 220, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:20:19 +0000 (0:00:00.324) 0:03:27.484 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:20:19 +0000 (0:00:00.166) 0:03:27.650 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.024736", "end": "2022-08-05 19:20:20.104852", "rc": 0, "start": "2022-08-05 19:20:20.080116" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 19:20:20 +0000 (0:00:00.547) 0:03:28.197 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Friday 05 August 2022 19:20:20 +0000 (0:00:00.093) 0:03:28.290 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Friday 05 August 2022 19:20:20 +0000 (0:00:00.096) 0:03:28.387 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is present] ******************************** Friday 05 August 2022 19:20:20 +0000 (0:00:00.093) 0:03:28.480 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* Friday 05 August 2022 19:20:20 +0000 (0:00:00.146) 0:03:28.627 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** Friday 05 August 2022 19:20:20 +0000 (0:00:00.188) 0:03:28.815 ********* TASK [Success in test 'I can create a profile without autoconnect'] ************ Friday 05 August 2022 19:20:20 +0000 (0:00:00.122) 0:03:28.937 ********* ok: [sut] => {} MSG: +++++ Success in test 'I can create a profile without autoconnect' +++++ TASK [cleanup] ***************************************************************** Friday 05 August 2022 19:20:21 +0000 (0:00:00.133) 0:03:29.071 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/cleanup_profile+device.yml for sut => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** Friday 05 August 2022 19:20:21 +0000 (0:00:00.126) 0:03:29.197 ********* fatal: [sut]: 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.049167", "end": "2022-08-05 19:20:21.534053", "rc": 1, "start": "2022-08-05 19:20:21.484886" } STDOUT: Connection 'statebr' (7f8843f3-80e6-4076-9ca4-dad11de088ac) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:20:21 +0000 (0:00:00.434) 0:03:29.631 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can activate an existing profile] ******************************** Friday 05 August 2022 19:20:21 +0000 (0:00:00.195) 0:03:29.826 ********* ok: [sut] => {} MSG: ########## I can activate an existing profile ########## TASK [Show item] *************************************************************** Friday 05 August 2022 19:20:22 +0000 (0:00:00.194) 0:03:30.021 ********* ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can activate an existing profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:20:22 +0000 (0:00:00.543) 0:03:30.564 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:20:22 +0000 (0:00:00.149) 0:03:30.713 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 19:20:22 +0000 (0:00:00.149) 0:03:30.863 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003940", "end": "2022-08-05 19:20:23.185132", "rc": 0, "start": "2022-08-05 19:20:23.181192" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:20:23 +0000 (0:00:00.415) 0:03:31.279 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:20:23 +0000 (0:00:00.153) 0:03:31.433 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 05 August 2022 19:20:23 +0000 (0:00:00.152) 0:03:31.585 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/create_bridge_profile.yml for sut => (item=tasks/create_bridge_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:20:23 +0000 (0:00:00.261) 0:03:31.846 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:20:24 +0000 (0:00:00.129) 0:03:31.976 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:20:24 +0000 (0:00:00.115) 0:03:32.091 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:20:24 +0000 (0:00:00.545) 0:03:32.637 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:20:26 +0000 (0:00:02.150) 0:03:34.787 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:20:28 +0000 (0:00:01.604) 0:03:36.392 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:20:28 +0000 (0:00:00.110) 0:03:36.502 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:20:28 +0000 (0:00:00.066) 0:03:36.568 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:20:28 +0000 (0:00:00.063) 0:03:36.631 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:20:28 +0000 (0:00:00.148) 0:03:36.779 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:20:28 +0000 (0:00:00.065) 0:03:36.845 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:20:28 +0000 (0:00:00.088) 0:03:36.934 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:20:29 +0000 (0:00:00.199) 0:03:37.133 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:20:29 +0000 (0:00:00.549) 0:03:37.682 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:20:29 +0000 (0:00:00.087) 0:03:37.770 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:20:29 +0000 (0:00:00.095) 0:03:37.865 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:20:29 +0000 (0:00:00.067) 0:03:37.933 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5 TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:20:30 +0000 (0:00:00.600) 0:03:38.534 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:20:30 +0000 (0:00:00.070) 0:03:38.604 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:20:30 +0000 (0:00:00.089) 0:03:38.694 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:20:30 +0000 (0:00:00.084) 0:03:38.778 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:20:30 +0000 (0:00:00.087) 0:03:38.866 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Friday 05 August 2022 19:20:31 +0000 (0:00:00.352) 0:03:39.219 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5" ] } } TASK [test] ******************************************************************** Friday 05 August 2022 19:20:31 +0000 (0:00:00.098) 0:03:39.318 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/activate_profile.yml for sut => (item=tasks/activate_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:20:31 +0000 (0:00:00.163) 0:03:39.481 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:20:31 +0000 (0:00:00.131) 0:03:39.612 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:20:31 +0000 (0:00:00.118) 0:03:39.731 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:20:32 +0000 (0:00:00.652) 0:03:40.383 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:20:34 +0000 (0:00:02.084) 0:03:42.467 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:20:36 +0000 (0:00:01.761) 0:03:44.229 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:20:36 +0000 (0:00:00.101) 0:03:44.330 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:20:36 +0000 (0:00:00.083) 0:03:44.414 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:20:36 +0000 (0:00:00.101) 0:03:44.515 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:20:36 +0000 (0:00:00.206) 0:03:44.722 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:20:36 +0000 (0:00:00.106) 0:03:44.828 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:20:36 +0000 (0:00:00.111) 0:03:44.940 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:20:37 +0000 (0:00:00.203) 0:03:45.144 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:20:37 +0000 (0:00:00.824) 0:03:45.969 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:20:38 +0000 (0:00:00.199) 0:03:46.169 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:20:38 +0000 (0:00:00.153) 0:03:46.322 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:20:38 +0000 (0:00:00.168) 0:03:46.490 ********* ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:20:39 +0000 (0:00:01.298) 0:03:47.788 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:20:40 +0000 (0:00:00.433) 0:03:48.221 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:20:40 +0000 (0:00:00.402) 0:03:48.624 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:20:41 +0000 (0:00:00.541) 0:03:49.166 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:20:41 +0000 (0:00:00.317) 0:03:49.484 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [asserts] ***************************************************************** Friday 05 August 2022 19:20:42 +0000 (0:00:00.600) 0:03:50.084 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_present.yml for sut => (item=tasks/assert_device_present.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=tasks/assert_profile_present.yml) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:20:42 +0000 (0:00:00.768) 0:03:50.853 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:20:44 +0000 (0:00:01.302) 0:03:52.156 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659727230.4144392, "block_size": 4096, "blocks": 0, "ctime": 1659727230.4144392, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21982, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1659727230.4144392, "nlink": 1, "path": "/sys/class/net/statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface statebr is present] ******************************** Friday 05 August 2022 19:20:45 +0000 (0:00:01.481) 0:03:53.637 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:20:46 +0000 (0:00:00.797) 0:03:54.434 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 19:20:47 +0000 (0:00:01.185) 0:03:55.620 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 19:20:48 +0000 (0:00:00.619) 0:03:56.239 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659727230.4913352, "block_size": 4096, "blocks": 8, "ctime": 1659727230.4133317, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16798013, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659727230.4133317, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 221, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:20:50 +0000 (0:00:01.916) 0:03:58.176 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:20:50 +0000 (0:00:00.542) 0:03:58.719 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.024837", "end": "2022-08-05 19:20:51.614352", "rc": 0, "start": "2022-08-05 19:20:51.589515" } STDOUT: statebr /etc/sysconfig/network-scripts/ifcfg-statebr TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 19:20:52 +0000 (0:00:01.329) 0:04:00.048 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Friday 05 August 2022 19:20:53 +0000 (0:00:01.427) 0:04:01.475 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Friday 05 August 2022 19:20:54 +0000 (0:00:01.036) 0:04:02.512 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is present] ******************************** Friday 05 August 2022 19:20:55 +0000 (0:00:00.625) 0:04:03.137 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'statebr' is present] ************* Friday 05 August 2022 19:20:55 +0000 (0:00:00.822) 0:04:03.959 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** Friday 05 August 2022 19:20:56 +0000 (0:00:00.792) 0:04:04.751 ********* TASK [Success in test 'I can activate an existing profile'] ******************** Friday 05 August 2022 19:20:57 +0000 (0:00:00.999) 0:04:05.751 ********* ok: [sut] => {} MSG: +++++ Success in test 'I can activate an existing profile' +++++ TASK [cleanup] ***************************************************************** Friday 05 August 2022 19:20:58 +0000 (0:00:00.939) 0:04:06.691 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/cleanup_profile+device.yml for sut => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** Friday 05 August 2022 19:21:00 +0000 (0:00:01.782) 0:04:08.474 ********* fatal: [sut]: 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.095103", "end": "2022-08-05 19:21:01.542669", "rc": 1, "start": "2022-08-05 19:21:01.447566" } STDOUT: Connection 'statebr' (b01e4e8b-20d4-4b18-8a1f-4757e7bca8a5) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:21:02 +0000 (0:00:01.617) 0:04:10.091 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can remove an existing profile without taking it down] *********** Friday 05 August 2022 19:21:03 +0000 (0:00:01.285) 0:04:11.377 ********* ok: [sut] => {} MSG: ########## I can remove an existing profile without taking it down ########## TASK [Show item] *************************************************************** Friday 05 August 2022 19:21:08 +0000 (0:00:04.702) 0:04:16.080 ********* ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can remove an existing profile without taking it down" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_device_present.yml", "tasks/assert_profile_absent.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:21:11 +0000 (0:00:03.045) 0:04:19.125 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:21:13 +0000 (0:00:02.250) 0:04:21.375 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 19:21:15 +0000 (0:00:02.554) 0:04:23.930 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004042", "end": "2022-08-05 19:21:17.635180", "rc": 0, "start": "2022-08-05 19:21:17.631138" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:21:18 +0000 (0:00:02.713) 0:04:26.644 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:21:20 +0000 (0:00:02.225) 0:04:28.870 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 05 August 2022 19:21:23 +0000 (0:00:02.159) 0:04:31.030 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/create_bridge_profile.yml for sut => (item=tasks/create_bridge_profile.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/activate_profile.yml for sut => (item=tasks/activate_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:21:24 +0000 (0:00:01.470) 0:04:32.500 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:21:25 +0000 (0:00:01.463) 0:04:33.964 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:21:27 +0000 (0:00:01.015) 0:04:34.980 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:21:31 +0000 (0:00:04.141) 0:04:39.142 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:21:36 +0000 (0:00:05.027) 0:04:44.170 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:21:42 +0000 (0:00:06.732) 0:04:50.902 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:21:44 +0000 (0:00:01.706) 0:04:52.608 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:21:46 +0000 (0:00:01.648) 0:04:54.257 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:21:47 +0000 (0:00:01.289) 0:04:55.547 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:21:51 +0000 (0:00:03.648) 0:04:59.195 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:21:52 +0000 (0:00:01.666) 0:05:00.862 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:21:54 +0000 (0:00:01.673) 0:05:02.535 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:21:56 +0000 (0:00:01.945) 0:05:04.480 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:22:01 +0000 (0:00:05.032) 0:05:09.513 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:22:05 +0000 (0:00:03.558) 0:05:13.072 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:22:05 +0000 (0:00:00.804) 0:05:13.896 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:22:06 +0000 (0:00:00.825) 0:05:14.723 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63 TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:22:14 +0000 (0:00:08.095) 0:05:22.819 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:22:17 +0000 (0:00:02.726) 0:05:25.545 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:22:19 +0000 (0:00:02.102) 0:05:27.648 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:22:22 +0000 (0:00:02.634) 0:05:30.282 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:22:23 +0000 (0:00:01.598) 0:05:31.881 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Friday 05 August 2022 19:22:27 +0000 (0:00:03.640) 0:05:35.521 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63" ] } } TASK [Include network role] **************************************************** Friday 05 August 2022 19:22:28 +0000 (0:00:01.128) 0:05:36.650 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:22:29 +0000 (0:00:01.328) 0:05:37.978 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:22:32 +0000 (0:00:02.648) 0:05:40.626 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:22:36 +0000 (0:00:03.586) 0:05:44.212 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:22:40 +0000 (0:00:04.703) 0:05:48.915 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:22:49 +0000 (0:00:08.990) 0:05:57.906 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:22:51 +0000 (0:00:01.833) 0:05:59.780 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:22:53 +0000 (0:00:01.520) 0:06:01.300 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:22:54 +0000 (0:00:01.220) 0:06:02.520 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:22:56 +0000 (0:00:01.725) 0:06:04.245 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:22:58 +0000 (0:00:01.826) 0:06:06.072 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:22:59 +0000 (0:00:01.593) 0:06:07.665 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:23:03 +0000 (0:00:04.296) 0:06:11.961 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:23:09 +0000 (0:00:05.562) 0:06:17.523 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:23:10 +0000 (0:00:00.922) 0:06:18.446 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:23:11 +0000 (0:00:01.095) 0:06:19.542 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:23:12 +0000 (0:00:01.142) 0:06:20.685 ********* ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:23:17 +0000 (0:00:04.582) 0:06:25.267 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:23:18 +0000 (0:00:00.917) 0:06:26.185 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:23:20 +0000 (0:00:02.362) 0:06:28.547 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 73e4a84b-0d16-4afa-8983-454236d0cd63 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:23:22 +0000 (0:00:01.690) 0:06:30.238 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:23:24 +0000 (0:00:01.985) 0:06:32.223 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [test] ******************************************************************** Friday 05 August 2022 19:23:27 +0000 (0:00:02.841) 0:06:35.064 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/remove_profile.yml for sut => (item=tasks/remove_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:23:28 +0000 (0:00:01.586) 0:06:36.651 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:23:32 +0000 (0:00:03.861) 0:06:40.513 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:23:35 +0000 (0:00:02.577) 0:06:43.091 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:23:38 +0000 (0:00:03.467) 0:06:46.558 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:23:43 +0000 (0:00:04.664) 0:06:51.222 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:23:47 +0000 (0:00:04.155) 0:06:55.377 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:23:47 +0000 (0:00:00.568) 0:06:55.946 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:23:48 +0000 (0:00:00.603) 0:06:56.550 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:23:49 +0000 (0:00:00.781) 0:06:57.331 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:23:51 +0000 (0:00:02.361) 0:06:59.692 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:23:53 +0000 (0:00:02.057) 0:07:01.749 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:23:54 +0000 (0:00:00.756) 0:07:02.506 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:23:55 +0000 (0:00:01.304) 0:07:03.811 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:23:58 +0000 (0:00:02.520) 0:07:06.332 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:23:59 +0000 (0:00:00.859) 0:07:07.191 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:23:59 +0000 (0:00:00.526) 0:07:07.718 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:24:00 +0000 (0:00:00.567) 0:07:08.285 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:24:03 +0000 (0:00:03.637) 0:07:11.923 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:24:04 +0000 (0:00:00.891) 0:07:12.814 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:24:06 +0000 (0:00:01.426) 0:07:14.240 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:24:07 +0000 (0:00:01.167) 0:07:15.408 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:24:08 +0000 (0:00:01.099) 0:07:16.507 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [asserts] ***************************************************************** Friday 05 August 2022 19:24:11 +0000 (0:00:03.001) 0:07:19.509 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_present.yml for sut => (item=tasks/assert_device_present.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_absent.yml for sut => (item=tasks/assert_profile_absent.yml) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:24:13 +0000 (0:00:02.420) 0:07:21.929 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:24:15 +0000 (0:00:01.160) 0:07:23.090 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659727333.6451204, "block_size": 4096, "blocks": 0, "ctime": 1659727333.6451204, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22113, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/statebr", "lnk_target": "../../devices/virtual/net/statebr", "mode": "0777", "mtime": 1659727333.6451204, "nlink": 1, "path": "/sys/class/net/statebr", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "wgrp": true, "woth": true, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [assert that interface statebr is present] ******************************** Friday 05 August 2022 19:24:16 +0000 (0:00:01.734) 0:07:24.825 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:24:18 +0000 (0:00:01.798) 0:07:26.623 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 19:24:20 +0000 (0:00:01.584) 0:07:28.208 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 19:24:22 +0000 (0:00:01.834) 0:07:30.042 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:24:23 +0000 (0:00:01.904) 0:07:31.946 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:24:24 +0000 (0:00:00.813) 0:07:32.760 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.024423", "end": "2022-08-05 19:24:25.723999", "rc": 1, "start": "2022-08-05 19:24:25.699576" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 19:24:26 +0000 (0:00:01.981) 0:07:34.742 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Friday 05 August 2022 19:24:28 +0000 (0:00:01.599) 0:07:36.341 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Friday 05 August 2022 19:24:29 +0000 (0:00:01.027) 0:07:37.369 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* Friday 05 August 2022 19:24:30 +0000 (0:00:01.344) 0:07:38.713 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** Friday 05 August 2022 19:24:32 +0000 (0:00:01.908) 0:07:40.621 ********* TASK [Success in test 'I can remove an existing profile without taking it down'] *** Friday 05 August 2022 19:24:34 +0000 (0:00:02.159) 0:07:42.781 ********* ok: [sut] => {} MSG: +++++ Success in test 'I can remove an existing profile without taking it down' +++++ TASK [cleanup] ***************************************************************** Friday 05 August 2022 19:24:36 +0000 (0:00:01.412) 0:07:44.194 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/cleanup_profile+device.yml for sut => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** Friday 05 August 2022 19:24:38 +0000 (0:00:02.135) 0:07:46.330 ********* fatal: [sut]: 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.089964", "end": "2022-08-05 19:24:40.462983", "rc": 1, "start": "2022-08-05 19:24:40.373019" } STDOUT: Connection 'statebr' (73e4a84b-0d16-4afa-8983-454236d0cd63) successfully deleted. STDERR: Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:24:41 +0000 (0:00:02.761) 0:07:49.091 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can take a profile down that is absent] ************************** Friday 05 August 2022 19:24:42 +0000 (0:00:01.191) 0:07:50.283 ********* ok: [sut] => {} MSG: ########## I can take a profile down that is absent ########## TASK [Show item] *************************************************************** Friday 05 August 2022 19:24:43 +0000 (0:00:00.809) 0:07:51.092 ********* ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can take a profile down that is absent" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_absent.yml", "when": true } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:24:48 +0000 (0:00:05.458) 0:07:56.551 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:24:51 +0000 (0:00:02.484) 0:07:59.035 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 19:24:53 +0000 (0:00:02.063) 0:08:01.099 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004212", "end": "2022-08-05 19:24:54.643212", "rc": 0, "start": "2022-08-05 19:24:54.639000" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:24:55 +0000 (0:00:02.526) 0:08:03.626 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:25:00 +0000 (0:00:05.321) 0:08:08.948 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 05 August 2022 19:25:03 +0000 (0:00:02.887) 0:08:11.835 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/create_bridge_profile.yml for sut => (item=tasks/create_bridge_profile.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/activate_profile.yml for sut => (item=tasks/activate_profile.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/remove_profile.yml for sut => (item=tasks/remove_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:25:06 +0000 (0:00:03.128) 0:08:14.963 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:25:07 +0000 (0:00:00.625) 0:08:15.589 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:25:07 +0000 (0:00:00.373) 0:08:15.962 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:25:09 +0000 (0:00:01.087) 0:08:17.050 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:25:11 +0000 (0:00:02.396) 0:08:19.446 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:25:13 +0000 (0:00:02.372) 0:08:21.819 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:25:14 +0000 (0:00:00.213) 0:08:22.033 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:25:14 +0000 (0:00:00.257) 0:08:22.290 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:25:14 +0000 (0:00:00.121) 0:08:22.412 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:25:14 +0000 (0:00:00.461) 0:08:22.875 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:25:15 +0000 (0:00:00.118) 0:08:22.993 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:25:15 +0000 (0:00:00.225) 0:08:23.219 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:25:15 +0000 (0:00:00.336) 0:08:23.556 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:25:16 +0000 (0:00:01.167) 0:08:24.723 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:25:17 +0000 (0:00:00.331) 0:08:25.055 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:25:17 +0000 (0:00:00.151) 0:08:25.207 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:25:17 +0000 (0:00:00.220) 0:08:25.427 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3 TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:25:18 +0000 (0:00:00.946) 0:08:26.374 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:25:18 +0000 (0:00:00.325) 0:08:26.700 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:25:19 +0000 (0:00:00.294) 0:08:26.994 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:25:19 +0000 (0:00:00.261) 0:08:27.256 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:25:19 +0000 (0:00:00.135) 0:08:27.391 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Friday 05 August 2022 19:25:19 +0000 (0:00:00.541) 0:08:27.933 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3" ] } } TASK [Include network role] **************************************************** Friday 05 August 2022 19:25:20 +0000 (0:00:00.147) 0:08:28.080 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:25:20 +0000 (0:00:00.165) 0:08:28.245 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:25:20 +0000 (0:00:00.183) 0:08:28.429 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:25:21 +0000 (0:00:00.690) 0:08:29.120 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:25:23 +0000 (0:00:02.246) 0:08:31.366 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:25:25 +0000 (0:00:01.698) 0:08:33.065 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:25:25 +0000 (0:00:00.149) 0:08:33.215 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:25:25 +0000 (0:00:00.163) 0:08:33.378 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:25:25 +0000 (0:00:00.251) 0:08:33.630 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:25:25 +0000 (0:00:00.333) 0:08:33.964 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:25:26 +0000 (0:00:00.087) 0:08:34.051 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:25:26 +0000 (0:00:00.083) 0:08:34.135 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:25:26 +0000 (0:00:00.134) 0:08:34.269 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:25:27 +0000 (0:00:00.796) 0:08:35.065 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:25:27 +0000 (0:00:00.145) 0:08:35.211 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:25:27 +0000 (0:00:00.151) 0:08:35.363 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:25:27 +0000 (0:00:00.095) 0:08:35.459 ********* ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:25:28 +0000 (0:00:00.704) 0:08:36.163 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:25:28 +0000 (0:00:00.070) 0:08:36.233 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:25:28 +0000 (0:00:00.198) 0:08:36.432 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, 5cc92c5d-a37c-488c-950c-efe4ee6039d3 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:25:28 +0000 (0:00:00.095) 0:08:36.527 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:25:28 +0000 (0:00:00.143) 0:08:36.670 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Friday 05 August 2022 19:25:29 +0000 (0:00:00.355) 0:08:37.026 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:25:29 +0000 (0:00:00.106) 0:08:37.133 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:25:29 +0000 (0:00:00.258) 0:08:37.392 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:25:30 +0000 (0:00:00.692) 0:08:38.084 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:25:32 +0000 (0:00:02.144) 0:08:40.229 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:25:33 +0000 (0:00:01.622) 0:08:41.852 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:25:34 +0000 (0:00:00.135) 0:08:41.987 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:25:34 +0000 (0:00:00.129) 0:08:42.116 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:25:34 +0000 (0:00:00.128) 0:08:42.245 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:25:34 +0000 (0:00:00.196) 0:08:42.441 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:25:34 +0000 (0:00:00.081) 0:08:42.523 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:25:34 +0000 (0:00:00.073) 0:08:42.596 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:25:34 +0000 (0:00:00.172) 0:08:42.769 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:25:35 +0000 (0:00:00.557) 0:08:43.326 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:25:35 +0000 (0:00:00.125) 0:08:43.452 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:25:35 +0000 (0:00:00.086) 0:08:43.538 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:25:35 +0000 (0:00:00.083) 0:08:43.622 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:25:36 +0000 (0:00:00.662) 0:08:44.284 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:25:36 +0000 (0:00:00.095) 0:08:44.380 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:25:36 +0000 (0:00:00.100) 0:08:44.480 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:25:36 +0000 (0:00:00.116) 0:08:44.597 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:25:36 +0000 (0:00:00.098) 0:08:44.695 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [test] ******************************************************************** Friday 05 August 2022 19:25:37 +0000 (0:00:00.393) 0:08:45.089 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/remove+down_profile.yml for sut => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:25:37 +0000 (0:00:00.163) 0:08:45.253 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:25:37 +0000 (0:00:00.345) 0:08:45.599 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:25:37 +0000 (0:00:00.280) 0:08:45.879 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:25:38 +0000 (0:00:00.856) 0:08:46.749 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:25:41 +0000 (0:00:02.311) 0:08:49.061 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:25:43 +0000 (0:00:02.429) 0:08:51.490 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:25:44 +0000 (0:00:00.770) 0:08:52.261 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:25:45 +0000 (0:00:00.811) 0:08:53.073 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:25:45 +0000 (0:00:00.575) 0:08:53.649 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:25:46 +0000 (0:00:01.016) 0:08:54.666 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:25:47 +0000 (0:00:00.789) 0:08:55.455 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:25:48 +0000 (0:00:00.569) 0:08:56.025 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:25:48 +0000 (0:00:00.902) 0:08:56.928 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:25:51 +0000 (0:00:02.145) 0:08:59.073 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:25:52 +0000 (0:00:01.050) 0:09:00.123 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:25:52 +0000 (0:00:00.446) 0:09:00.570 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:25:53 +0000 (0:00:00.451) 0:09:01.021 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:25:55 +0000 (0:00:02.801) 0:09:03.823 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:25:56 +0000 (0:00:00.779) 0:09:04.602 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:25:57 +0000 (0:00:01.237) 0:09:05.860 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[001] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:25:59 +0000 (0:00:01.192) 0:09:07.052 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:26:00 +0000 (0:00:01.860) 0:09:08.913 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [asserts] ***************************************************************** Friday 05 August 2022 19:26:03 +0000 (0:00:02.378) 0:09:11.291 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_absent.yml for sut => (item=tasks/assert_profile_absent.yml) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:26:04 +0000 (0:00:01.245) 0:09:12.537 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 19:26:05 +0000 (0:00:01.166) 0:09:13.704 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 19:26:07 +0000 (0:00:01.636) 0:09:15.341 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:26:09 +0000 (0:00:02.321) 0:09:17.663 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:26:11 +0000 (0:00:01.773) 0:09:19.436 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023036", "end": "2022-08-05 19:26:13.008031", "rc": 1, "start": "2022-08-05 19:26:12.984995" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 19:26:13 +0000 (0:00:02.213) 0:09:21.650 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Friday 05 August 2022 19:26:14 +0000 (0:00:01.049) 0:09:22.700 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Friday 05 August 2022 19:26:15 +0000 (0:00:01.044) 0:09:23.745 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* Friday 05 August 2022 19:26:17 +0000 (0:00:01.365) 0:09:25.111 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** Friday 05 August 2022 19:26:18 +0000 (0:00:01.191) 0:09:26.303 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut => (item={'what': 'tasks/assert_device_absent.yml', 'when': True}) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:26:21 +0000 (0:00:02.889) 0:09:29.192 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:26:24 +0000 (0:00:03.734) 0:09:32.927 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* Friday 05 August 2022 19:26:27 +0000 (0:00:02.827) 0:09:35.774 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I can take a profile down that is absent'] ************** Friday 05 August 2022 19:26:29 +0000 (0:00:01.730) 0:09:37.573 ********* ok: [sut] => {} MSG: +++++ Success in test 'I can take a profile down that is absent' +++++ TASK [cleanup] ***************************************************************** Friday 05 August 2022 19:26:31 +0000 (0:00:02.326) 0:09:39.899 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/cleanup_profile+device.yml for sut => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** Friday 05 August 2022 19:26:34 +0000 (0:00:02.872) 0:09:42.772 ********* fatal: [sut]: 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.049008", "end": "2022-08-05 19:26:37.079018", "rc": 1, "start": "2022-08-05 19:26:37.030010" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:26:38 +0000 (0:00:03.240) 0:09:46.012 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I will not get an error when I try to remove an absent profile] **** Friday 05 August 2022 19:26:40 +0000 (0:00:02.831) 0:09:48.844 ********* ok: [sut] => {} MSG: ########## I will not get an error when I try to remove an absent profile ########## TASK [Show item] *************************************************************** Friday 05 August 2022 19:26:42 +0000 (0:00:01.630) 0:09:50.474 ********* ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I will not get an error when I try to remove an absent profile" } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/create_bridge_profile.yml", "tasks/activate_profile.yml", "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/remove+down_profile.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_absent.yml", "tasks/get_NetworkManager_NVR.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": [ { "what": "tasks/assert_device_absent.yml", "when": true } ] } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:26:46 +0000 (0:00:04.034) 0:09:54.509 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:26:50 +0000 (0:00:04.111) 0:09:58.621 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 19:26:52 +0000 (0:00:01.791) 0:10:00.413 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003935", "end": "2022-08-05 19:26:53.748750", "rc": 0, "start": "2022-08-05 19:26:53.744815" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 19:26:55 +0000 (0:00:02.613) 0:10:03.027 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 19:26:56 +0000 (0:00:01.624) 0:10:04.651 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 05 August 2022 19:26:59 +0000 (0:00:02.757) 0:10:07.408 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/create_bridge_profile.yml for sut => (item=tasks/create_bridge_profile.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/activate_profile.yml for sut => (item=tasks/activate_profile.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/remove+down_profile.yml for sut => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:27:02 +0000 (0:00:02.992) 0:10:10.401 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:27:03 +0000 (0:00:01.114) 0:10:11.515 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:27:05 +0000 (0:00:01.579) 0:10:13.095 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:27:08 +0000 (0:00:03.422) 0:10:16.517 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:27:13 +0000 (0:00:05.362) 0:10:21.880 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:27:24 +0000 (0:00:10.299) 0:10:32.180 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:27:26 +0000 (0:00:02.496) 0:10:34.677 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:27:28 +0000 (0:00:02.040) 0:10:36.718 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:27:31 +0000 (0:00:02.905) 0:10:39.623 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:27:35 +0000 (0:00:04.195) 0:10:43.818 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:27:37 +0000 (0:00:01.652) 0:10:45.471 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:27:39 +0000 (0:00:01.818) 0:10:47.289 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:27:42 +0000 (0:00:02.928) 0:10:50.218 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:27:48 +0000 (0:00:06.291) 0:10:56.509 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:27:51 +0000 (0:00:02.868) 0:10:59.378 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:27:52 +0000 (0:00:01.411) 0:11:00.789 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:27:54 +0000 (0:00:01.681) 0:11:02.470 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021 TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:28:04 +0000 (0:00:10.388) 0:11:12.859 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:28:06 +0000 (0:00:01.188) 0:11:14.048 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:28:08 +0000 (0:00:02.047) 0:11:16.095 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:28:10 +0000 (0:00:02.211) 0:11:18.307 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:28:13 +0000 (0:00:02.915) 0:11:21.223 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Show result] ************************************************************* Friday 05 August 2022 19:28:17 +0000 (0:00:04.697) 0:11:25.921 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "auto6": false, "dhcp4": false }, "name": "statebr", "persistent_state": "present", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021\n", "stderr_lines": [ "[002] #0, state:None persistent_state:present, 'statebr': add connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021" ] } } TASK [Include network role] **************************************************** Friday 05 August 2022 19:28:20 +0000 (0:00:03.001) 0:11:28.922 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:28:23 +0000 (0:00:03.001) 0:11:31.923 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:28:26 +0000 (0:00:03.014) 0:11:34.938 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:28:33 +0000 (0:00:06.154) 0:11:41.092 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:28:42 +0000 (0:00:09.084) 0:11:50.177 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:28:49 +0000 (0:00:07.174) 0:11:57.352 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:28:50 +0000 (0:00:01.607) 0:11:58.959 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:28:53 +0000 (0:00:02.610) 0:12:01.569 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:28:55 +0000 (0:00:01.753) 0:12:03.323 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:28:58 +0000 (0:00:03.486) 0:12:06.809 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:29:00 +0000 (0:00:01.684) 0:12:08.493 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:29:02 +0000 (0:00:01.513) 0:12:10.007 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:29:04 +0000 (0:00:02.319) 0:12:12.326 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:29:10 +0000 (0:00:06.281) 0:12:18.608 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:29:13 +0000 (0:00:02.709) 0:12:21.318 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:29:15 +0000 (0:00:02.006) 0:12:23.324 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:29:16 +0000 (0:00:00.834) 0:12:24.159 ********* ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021 skipped because already active TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:29:21 +0000 (0:00:05.725) 0:12:29.885 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:29:23 +0000 (0:00:01.467) 0:12:31.352 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021 skipped because already active" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:29:25 +0000 (0:00:01.668) 0:12:33.021 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "state": "up" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021 skipped because already active\n", "stderr_lines": [ "[002] #0, state:up persistent_state:present, 'statebr': up connection statebr, c53cc9bf-a85c-4263-9296-8613ff897021 skipped because already active" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:29:28 +0000 (0:00:03.496) 0:12:36.517 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:29:30 +0000 (0:00:01.906) 0:12:38.424 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Friday 05 August 2022 19:29:34 +0000 (0:00:03.800) 0:12:42.225 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:29:36 +0000 (0:00:02.097) 0:12:44.322 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:29:38 +0000 (0:00:02.001) 0:12:46.324 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:29:42 +0000 (0:00:04.289) 0:12:50.614 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:29:52 +0000 (0:00:09.748) 0:13:00.363 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:30:00 +0000 (0:00:07.977) 0:13:08.340 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:30:03 +0000 (0:00:03.331) 0:13:11.671 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:30:05 +0000 (0:00:02.227) 0:13:13.899 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:30:07 +0000 (0:00:01.541) 0:13:15.440 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:30:08 +0000 (0:00:00.578) 0:13:16.019 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:30:08 +0000 (0:00:00.083) 0:13:16.103 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:30:08 +0000 (0:00:00.195) 0:13:16.298 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:30:08 +0000 (0:00:00.382) 0:13:16.681 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:30:09 +0000 (0:00:01.000) 0:13:17.681 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:30:10 +0000 (0:00:00.395) 0:13:18.076 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:30:10 +0000 (0:00:00.324) 0:13:18.401 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:30:10 +0000 (0:00:00.451) 0:13:18.853 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:30:11 +0000 (0:00:01.003) 0:13:19.856 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:30:12 +0000 (0:00:00.115) 0:13:19.971 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:30:12 +0000 (0:00:00.201) 0:13:20.172 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:30:12 +0000 (0:00:00.291) 0:13:20.464 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:30:12 +0000 (0:00:00.241) 0:13:20.705 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [test] ******************************************************************** Friday 05 August 2022 19:30:13 +0000 (0:00:00.825) 0:13:21.530 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/remove+down_profile.yml for sut => (item=tasks/remove+down_profile.yml) TASK [Include network role] **************************************************** Friday 05 August 2022 19:30:13 +0000 (0:00:00.270) 0:13:21.801 ********* TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 19:30:14 +0000 (0:00:00.233) 0:13:22.035 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/roles/linux-system-roles.network/tasks/set_facts.yml for sut TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** Friday 05 August 2022 19:30:14 +0000 (0:00:00.261) 0:13:22.296 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Friday 05 August 2022 19:30:15 +0000 (0:00:00.738) 0:13:23.035 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which packages are installed] ********* Friday 05 August 2022 19:30:17 +0000 (0:00:02.171) 0:13:25.206 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Print network provider] ********************* Friday 05 August 2022 19:30:19 +0000 (0:00:01.976) 0:13:27.182 ********* ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 19:30:19 +0000 (0:00:00.226) 0:13:27.409 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** Friday 05 August 2022 19:30:19 +0000 (0:00:00.137) 0:13:27.546 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 19:30:19 +0000 (0:00:00.121) 0:13:27.668 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 19:30:19 +0000 (0:00:00.276) 0:13:27.944 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** Friday 05 August 2022 19:30:20 +0000 (0:00:00.154) 0:13:28.099 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 05 August 2022 19:30:20 +0000 (0:00:00.171) 0:13:28.270 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 19:30:20 +0000 (0:00:00.370) 0:13:28.640 ********* ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 05 August 2022 19:30:21 +0000 (0:00:00.694) 0:13:29.334 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 19:30:21 +0000 (0:00:00.193) 0:13:29.528 ********* skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 19:30:21 +0000 (0:00:00.089) 0:13:29.618 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 19:30:21 +0000 (0:00:00.098) 0:13:29.716 ********* ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: [002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 19:30:22 +0000 (0:00:00.739) 0:13:30.456 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** Friday 05 August 2022 19:30:22 +0000 (0:00:00.179) 0:13:30.635 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 19:30:22 +0000 (0:00:00.107) 0:13:30.743 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "statebr", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete\n", "stderr_lines": [ "[002] #0, state:down persistent_state:absent, 'statebr': no connection matches 'statebr' to delete" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 19:30:23 +0000 (0:00:00.295) 0:13:31.039 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 19:30:23 +0000 (0:00:00.149) 0:13:31.188 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [asserts] ***************************************************************** Friday 05 August 2022 19:30:23 +0000 (0:00:00.594) 0:13:31.783 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_absent.yml for sut => (item=tasks/assert_profile_absent.yml) included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_NetworkManager_NVR.yml for sut => (item=tasks/get_NetworkManager_NVR.yml) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:30:24 +0000 (0:00:00.246) 0:13:32.030 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 19:30:24 +0000 (0:00:00.317) 0:13:32.348 ********* ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 05 August 2022 19:30:24 +0000 (0:00:00.200) 0:13:32.548 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 19:30:25 +0000 (0:00:00.424) 0:13:32.973 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 19:30:25 +0000 (0:00:00.129) 0:13:33.102 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep statebr | grep /etc", "delta": "0:00:00.023392", "end": "2022-08-05 19:30:25.480184", "rc": 1, "start": "2022-08-05 19:30:25.456792" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 19:30:25 +0000 (0:00:00.424) 0:13:33.527 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-statebr] ************************ Friday 05 August 2022 19:30:25 +0000 (0:00:00.091) 0:13:33.618 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-statebr] ********************* Friday 05 August 2022 19:30:25 +0000 (0:00:00.083) 0:13:33.702 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'statebr' is absent] ********************************* Friday 05 August 2022 19:30:25 +0000 (0:00:00.134) 0:13:33.836 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get NetworkManager RPM version] ****************************************** Friday 05 August 2022 19:30:25 +0000 (0:00:00.120) 0:13:33.956 ********* changed: [sut] => { "changed": true, "cmd": [ "rpm", "-qa", "--qf", "%{name}-%{version}-%{release}\\n", "NetworkManager" ], "delta": "0:00:01.023046", "end": "2022-08-05 19:30:27.246608", "rc": 0, "start": "2022-08-05 19:30:26.223562" } STDOUT: NetworkManager-1.39.10-1.el8 TASK [Store NetworkManager version] ******************************************** Friday 05 August 2022 19:30:27 +0000 (0:00:01.322) 0:13:35.278 ********* ok: [sut] => { "ansible_facts": { "NetworkManager_NVR": "NetworkManager-1.39.10-1.el8" }, "changed": false } TASK [Show NetworkManager version] ********************************************* Friday 05 August 2022 19:30:27 +0000 (0:00:00.111) 0:13:35.390 ********* ok: [sut] => { "NetworkManager_NVR": "NetworkManager-1.39.10-1.el8" } TASK [conditional asserts] ***************************************************** Friday 05 August 2022 19:30:27 +0000 (0:00:00.128) 0:13:35.518 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut => (item={'what': 'tasks/assert_device_absent.yml', 'when': True}) TASK [include_tasks] *********************************************************** Friday 05 August 2022 19:30:27 +0000 (0:00:00.242) 0:13:35.761 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface statebr] ****************************************** Friday 05 August 2022 19:30:27 +0000 (0:00:00.125) 0:13:35.887 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface statebr is absent] ********************************* Friday 05 August 2022 19:30:28 +0000 (0:00:00.335) 0:13:36.222 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Success in test 'I will not get an error when I try to remove an absent profile'] *** Friday 05 August 2022 19:30:28 +0000 (0:00:00.092) 0:13:36.314 ********* ok: [sut] => {} MSG: +++++ Success in test 'I will not get an error when I try to remove an absent profile' +++++ TASK [cleanup] ***************************************************************** Friday 05 August 2022 19:30:28 +0000 (0:00:00.131) 0:13:36.446 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/cleanup_profile+device.yml for sut => (item=tasks/cleanup_profile+device.yml) TASK [Cleanup profile and device] ********************************************** Friday 05 August 2022 19:30:28 +0000 (0:00:00.149) 0:13:36.595 ********* fatal: [sut]: 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.048729", "end": "2022-08-05 19:30:28.929615", "rc": 1, "start": "2022-08-05 19:30:28.880886" } STDERR: Error: unknown connection 'statebr'. Error: cannot delete unknown connection(s): 'statebr'. Cannot find device "statebr" MSG: non-zero return code ...ignoring PLAY RECAP ********************************************************************* sut : ok=330 changed=13 unreachable=0 failed=0 skipped=189 rescued=0 ignored=11 Friday 05 August 2022 19:30:29 +0000 (0:00:00.390) 0:13:36.986 ********* =============================================================================== linux-system-roles.network : Configure networking connection profiles -- 26.63s linux-system-roles.network : Enable and start NetworkManager ----------- 22.11s linux-system-roles.network : Check which packages are installed -------- 17.33s linux-system-roles.network : Re-test connectivity ---------------------- 14.01s linux-system-roles.network : Enable and start NetworkManager ----------- 13.46s linux-system-roles.network : Configure networking connection profiles -- 12.31s linux-system-roles.network : Install packages -------------------------- 11.13s linux-system-roles.network : Check which packages are installed -------- 10.30s linux-system-roles.network : Check which services are running ----------- 9.75s linux-system-roles.network : Check which services are running ----------- 9.08s linux-system-roles.network : Check which packages are installed --------- 8.99s linux-system-roles.network : Enable and start wpa_supplicant ------------ 8.63s Gathering Facts --------------------------------------------------------- 8.54s linux-system-roles.network : Check which services are running ----------- 8.13s linux-system-roles.network : Check which packages are installed --------- 7.98s linux-system-roles.network : Re-test connectivity ----------------------- 7.60s linux-system-roles.network : Show debug messages for the network_connections --- 7.53s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 7.23s Create EPEL 8 ----------------------------------------------------------- 7.18s linux-system-roles.network : Check which packages are installed --------- 7.17s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item['when'] }} ---^---^---^---^---^---