# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bridge.yml' with nm as provider] *********** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:42:26 +0000 (0:00:00.739) 0:00:00.739 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:42:40 +0000 (0:00:14.314) 0:00:15.053 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 05 August 2022 17:42:41 +0000 (0:00:00.805) 0:00:15.859 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:42:42 +0000 (0:00:00.683) 0:00:16.542 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 17:42:42 +0000 (0:00:00.598) 0:00:17.140 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 17:42:43 +0000 (0:00:01.290) 0:00:18.431 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 17:42:45 +0000 (0:00:01.702) 0:00:20.133 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 17:42:47 +0000 (0:00:01.403) 0:00:21.537 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 17:42:48 +0000 (0:00:01.400) 0:00:22.938 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [Test configuring bridges] ************************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:42:50 +0000 (0:00:01.718) 0:00:24.657 ********* ok: [sut] TASK [set interface=LSR-TST-br31] ********************************************** Friday 05 August 2022 17:42:54 +0000 (0:00:04.230) 0:00:28.887 ********* ok: [sut] => { "ansible_facts": { "interface": "LSR-TST-br31" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:42:55 +0000 (0:00:01.183) 0:00:30.071 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:42:56 +0000 (0:00:01.377) 0:00:31.448 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 05 August 2022 17:42:59 +0000 (0:00:02.116) 0:00:33.564 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003646", "end": "2022-08-05 17:43:06.995009", "rc": 0, "start": "2022-08-05 17:43:06.991363" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 17:43:07 +0000 (0:00:08.445) 0:00:42.010 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 17:43:09 +0000 (0:00:02.449) 0:00:44.460 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:43:12 +0000 (0:00:02.159) 0:00:46.619 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:43:14 +0000 (0:00:02.353) 0:00:48.973 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface LSR-TST-br31] ************************************* Friday 05 August 2022 17:43:15 +0000 (0:00:00.846) 0:00:49.820 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** Friday 05 August 2022 17:43:22 +0000 (0:00:07.075) 0:00:56.895 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Add test bridge] ********************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:43:25 +0000 (0:00:02.864) 0:00:59.760 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:43:30 +0000 (0:00:05.145) 0:01:04.905 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/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 17:43:32 +0000 (0:00:01.894) 0:01:06.800 ********* 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 17:43:36 +0000 (0:00:04.063) 0:01:10.863 ********* 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 17:43:43 +0000 (0:00:07.440) 0:01:18.304 ********* 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 17:44:00 +0000 (0:00:16.306) 0:01:34.610 ********* 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 17:44:01 +0000 (0:00:01.267) 0:01:35.878 ********* 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 17:44:02 +0000 (0:00:01.215) 0:01:37.094 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:44:04 +0000 (0:00:01.711) 0:01:38.805 ********* 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 17:44:07 +0000 (0:00:03.342) 0:01:42.147 ********* 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 17:44:09 +0000 (0:00:02.030) 0:01:44.178 ********* 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 17:44:11 +0000 (0:00:02.303) 0:01:46.482 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:44:14 +0000 (0:00:02.326) 0:01:48.809 ********* 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 17:44:27 +0000 (0:00:13.064) 0:02:01.873 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:44:29 +0000 (0:00:01.892) 0:02:03.766 ********* 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 17:44:30 +0000 (0:00:01.321) 0:02:05.087 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:44:31 +0000 (0:00:01.290) 0:02:06.377 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d [004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 17:44:47 +0000 (0:00:15.303) 0:02:21.681 ********* 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 17:44:48 +0000 (0:00:01.630) 0:02:23.311 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 17:44:50 +0000 (0:00:01.925) 0:02:25.237 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d\n[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31, 206287a3-1cf6-455d-a0b7-1a6f00e9423d (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 17:44:53 +0000 (0:00:02.770) 0:02:28.007 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:44:54 +0000 (0:00:01.385) 0:02:29.393 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Run the tasklist tasks/assert_device_present.yml] ************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:45:07 +0000 (0:00:12.845) 0:02:42.239 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:08 +0000 (0:00:01.045) 0:02:43.285 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:09 +0000 (0:00:00.340) 0:02:43.625 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface LSR-TST-br31] ************************************* Friday 05 August 2022 17:45:09 +0000 (0:00:00.329) 0:02:43.955 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659721486.2375093, "block_size": 4096, "blocks": 0, "ctime": 1659721486.2375093, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22252, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/LSR-TST-br31", "lnk_target": "../../devices/virtual/net/LSR-TST-br31", "mode": "0777", "mtime": 1659721486.2375093, "nlink": 1, "path": "/sys/class/net/LSR-TST-br31", "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 LSR-TST-br31 is present] *************************** Friday 05 August 2022 17:45:09 +0000 (0:00:00.445) 0:02:44.401 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Run the tasklist tasks/assert_profile_present.yml] *********************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:45:10 +0000 (0:00:00.538) 0:02:44.939 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:11 +0000 (0:00:01.064) 0:02:46.004 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:11 +0000 (0:00:00.177) 0:02:46.182 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:45:11 +0000 (0:00:00.161) 0:02:46.343 ********* 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 17:45:12 +0000 (0:00:00.238) 0:02:46.582 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:45:12 +0000 (0:00:00.462) 0:02:47.044 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:45:12 +0000 (0:00:00.085) 0:02:47.130 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.163785", "end": "2022-08-05 17:45:13.149431", "rc": 0, "start": "2022-08-05 17:45:12.985646" } STDOUT: LSR-TST-br31 /etc/NetworkManager/system-connections/LSR-TST-br31.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 17:45:13 +0000 (0:00:00.610) 0:02:47.741 ********* 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-LSR-TST-br31] ******************* Friday 05 August 2022 17:45:13 +0000 (0:00:00.201) 0:02:47.943 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** Friday 05 August 2022 17:45:13 +0000 (0:00:00.180) 0:02:48.123 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is present] *************************** Friday 05 August 2022 17:45:13 +0000 (0:00:00.161) 0:02:48.285 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'LSR-TST-br31' is present] ******** Friday 05 August 2022 17:45:14 +0000 (0:00:00.236) 0:02:48.524 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:45:14 +0000 (0:00:00.296) 0:02:48.820 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:45:15 +0000 (0:00:01.025) 0:02:49.846 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/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 17:45:15 +0000 (0:00:00.147) 0:02:49.994 ********* 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 17:45:16 +0000 (0:00:00.579) 0:02:50.573 ********* 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 17:45:17 +0000 (0:00:01.785) 0:02:52.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 17:45:18 +0000 (0:00:00.851) 0:02:53.210 ********* 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 17:45:18 +0000 (0:00:00.153) 0:02:53.363 ********* 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 17:45:18 +0000 (0:00:00.088) 0:02:53.452 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:45:19 +0000 (0:00:00.166) 0:02:53.619 ********* 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 17:45:19 +0000 (0:00:00.237) 0:02:53.856 ********* 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 17:45:19 +0000 (0:00:00.151) 0:02:54.008 ********* 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 17:45:19 +0000 (0:00:00.110) 0:02:54.118 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:45:19 +0000 (0:00:00.129) 0:02:54.247 ********* 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 17:45:20 +0000 (0:00:00.568) 0:02:54.816 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:45:20 +0000 (0:00:00.138) 0:02:54.954 ********* 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 17:45:20 +0000 (0:00:00.069) 0:02:55.024 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:45:20 +0000 (0:00:00.074) 0:02:55.098 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "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 17:45:21 +0000 (0:00:00.563) 0:02:55.661 ********* 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 17:45:21 +0000 (0:00:00.109) 0:02:55.771 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 17:45:21 +0000 (0:00:00.080) 0:02:55.851 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "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 17:45:21 +0000 (0:00:00.097) 0:02:55.949 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:45:21 +0000 (0:00:00.076) 0:02:56.025 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:45:22 +0000 (0:00:00.578) 0:02:56.604 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:22 +0000 (0:00:00.842) 0:02:57.446 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 17:45:23 +0000 (0:00:00.136) 0:02:57.582 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": [ "ip", "link", "del", "LSR-TST-br31" ], "delta": "0:00:00.007686", "end": "2022-08-05 17:45:23.358069", "rc": 1, "start": "2022-08-05 17:45:23.350383" } STDERR: Cannot find device "LSR-TST-br31" MSG: non-zero return code ...ignoring PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:45:23 +0000 (0:00:00.399) 0:02:57.982 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 17:45:24 +0000 (0:00:00.826) 0:02:58.809 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/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 17:45:24 +0000 (0:00:00.109) 0:02:58.919 ********* 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 17:45:24 +0000 (0:00:00.512) 0:02:59.431 ********* 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 17:45:26 +0000 (0:00:01.788) 0:03:01.219 ********* 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 17:45:27 +0000 (0:00:00.763) 0:03:01.983 ********* 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 17:45:27 +0000 (0:00:00.072) 0:03:02.056 ********* 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 17:45:27 +0000 (0:00:00.060) 0:03:02.116 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 17:45:27 +0000 (0:00:00.059) 0:03:02.175 ********* 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 17:45:27 +0000 (0:00:00.145) 0:03:02.321 ********* 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 17:45:27 +0000 (0:00:00.062) 0:03:02.383 ********* 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 17:45:27 +0000 (0:00:00.081) 0:03:02.464 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 17:45:28 +0000 (0:00:00.151) 0:03:02.615 ********* 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 17:45:28 +0000 (0:00:00.597) 0:03:03.213 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 17:45:28 +0000 (0:00:00.140) 0:03:03.354 ********* 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 17:45:28 +0000 (0:00:00.087) 0:03:03.441 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 17:45:29 +0000 (0:00:00.064) 0:03:03.506 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "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 17:45:29 +0000 (0:00:00.692) 0:03:04.198 ********* 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 17:45:29 +0000 (0:00:00.059) 0:03:04.258 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 17:45:29 +0000 (0:00:00.102) 0:03:04.360 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "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 17:45:29 +0000 (0:00:00.089) 0:03:04.450 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 17:45:30 +0000 (0:00:00.065) 0:03:04.516 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Run the tasklist tasks/assert_profile_absent.yml] ************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:45:30 +0000 (0:00:00.419) 0:03:04.936 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:31 +0000 (0:00:00.778) 0:03:05.714 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:31 +0000 (0:00:00.136) 0:03:05.850 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 05 August 2022 17:45:31 +0000 (0:00:00.100) 0:03:05.951 ********* 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 17:45:31 +0000 (0:00:00.071) 0:03:06.023 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 17:45:31 +0000 (0:00:00.283) 0:03:06.306 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 17:45:31 +0000 (0:00:00.100) 0:03:06.407 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.020184", "end": "2022-08-05 17:45:32.168051", "rc": 1, "start": "2022-08-05 17:45:32.147867" } 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 17:45:32 +0000 (0:00:00.308) 0:03:06.715 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-LSR-TST-br31] ******************* Friday 05 August 2022 17:45:32 +0000 (0:00:00.073) 0:03:06.789 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** Friday 05 August 2022 17:45:32 +0000 (0:00:00.064) 0:03:06.853 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is absent] **************************** Friday 05 August 2022 17:45:32 +0000 (0:00:00.064) 0:03:06.918 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Run the tasklist tasks/assert_device_absent.yml] ************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 17:45:32 +0000 (0:00:00.150) 0:03:07.068 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:33 +0000 (0:00:00.828) 0:03:07.896 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 17:45:33 +0000 (0:00:00.114) 0:03:08.011 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface LSR-TST-br31] ************************************* Friday 05 August 2022 17:45:33 +0000 (0:00:00.131) 0:03:08.142 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** Friday 05 August 2022 17:45:33 +0000 (0:00:00.311) 0:03:08.454 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=77 changed=3 unreachable=0 failed=0 skipped=45 rescued=0 ignored=2 Friday 05 August 2022 17:45:34 +0000 (0:00:00.140) 0:03:08.594 ********* =============================================================================== linux-system-roles.network : Check which packages are installed -------- 16.31s linux-system-roles.network : Configure networking connection profiles -- 15.30s Gathering Facts -------------------------------------------------------- 14.31s linux-system-roles.network : Enable and start NetworkManager ----------- 13.06s linux-system-roles.network : Re-test connectivity ---------------------- 12.85s Gather current interface info ------------------------------------------- 8.45s linux-system-roles.network : Check which services are running ----------- 7.38s Get stat for interface LSR-TST-br31 ------------------------------------- 7.08s Gathering Facts --------------------------------------------------------- 5.15s Gathering Facts --------------------------------------------------------- 4.23s linux-system-roles.network : Ensure ansible_facts used by role are present --- 4.13s linux-system-roles.network : Install packages --------------------------- 3.34s assert that interface LSR-TST-br31 is absent ---------------------------- 2.86s linux-system-roles.network : Show debug messages for the network_connections --- 2.77s Set current_interfaces -------------------------------------------------- 2.45s include_tasks ----------------------------------------------------------- 2.35s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 2.33s linux-system-roles.network : Install python3-libnmstate when using network_state variable --- 2.30s Show current_interfaces ------------------------------------------------- 2.16s include_tasks ----------------------------------------------------------- 2.12s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---