# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_vlan_mtu.yml' with nm as provider] ********* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 21:25:45 +0000 (0:00:00.049) 0:00:00.049 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:25:47 +0000 (0:00:02.006) 0:00:02.056 ********* 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 21:25:47 +0000 (0:00:00.104) 0:00:02.160 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:25:47 +0000 (0:00:00.080) 0:00:02.240 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 9] *********************************************************** Friday 05 August 2022 21:25:47 +0000 (0:00:00.118) 0:00:02.359 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Friday 05 August 2022 21:25:47 +0000 (0:00:00.090) 0:00:02.450 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 21:25:47 +0000 (0:00:00.092) 0:00:02.542 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 21:25:47 +0000 (0:00:00.171) 0:00:02.714 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 05 August 2022 21:25:47 +0000 (0:00:00.240) 0:00:02.955 ********* ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 21:25:48 +0000 (0:00:00.553) 0:00:03.508 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:25:50 +0000 (0:00:01.613) 0:00:05.122 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:25:50 +0000 (0:00:00.427) 0:00:05.549 ********* 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 21:25:50 +0000 (0:00:00.356) 0:00:05.906 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003594", "end": "2022-08-05 21:25:52.721983", "rc": 0, "start": "2022-08-05 21:25:52.718389" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 21:25:53 +0000 (0:00:02.556) 0:00:08.463 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 21:25:54 +0000 (0:00:00.651) 0:00:09.114 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:25:54 +0000 (0:00:00.501) 0:00:09.616 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 21:25:55 +0000 (0:00:00.832) 0:00:10.449 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 21:25:55 +0000 (0:00:00.400) 0:00:10.850 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:25:56 +0000 (0:00:00.710) 0:00:11.560 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:25:57 +0000 (0:00:00.492) 0:00:12.052 ********* 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 21:25:57 +0000 (0:00:00.529) 0:00:12.582 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003524", "end": "2022-08-05 21:25:58.282998", "rc": 0, "start": "2022-08-05 21:25:58.279474" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 21:25:58 +0000 (0:00:01.204) 0:00:13.787 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 21:25:59 +0000 (0:00:00.907) 0:00:14.694 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 21:26:00 +0000 (0:00:00.384) 0:00:15.079 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr101] ******************************************** Friday 05 August 2022 21:26:03 +0000 (0:00:03.342) 0:00:18.421 ********* changed: [sut] => (item=ip link add lsr101 type veth peer name peerlsr101) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "lsr101", "type", "veth", "peer", "name", "peerlsr101" ], "delta": "0:00:00.094836", "end": "2022-08-05 21:26:04.514396", "item": "ip link add lsr101 type veth peer name peerlsr101", "rc": 0, "start": "2022-08-05 21:26:04.419560" } changed: [sut] => (item=ip link set peerlsr101 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerlsr101", "up" ], "delta": "0:00:00.003820", "end": "2022-08-05 21:26:05.083305", "item": "ip link set peerlsr101 up", "rc": 0, "start": "2022-08-05 21:26:05.079485" } changed: [sut] => (item=ip link set lsr101 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "lsr101", "up" ], "delta": "0:00:00.007700", "end": "2022-08-05 21:26:05.659531", "item": "ip link set lsr101 up", "rc": 0, "start": "2022-08-05 21:26:05.651831" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 21:26:05 +0000 (0:00:02.465) 0:00:20.887 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "lsr101", "managed", "true" ], "delta": "0:00:00.147588", "end": "2022-08-05 21:26:06.993574", "rc": 0, "start": "2022-08-05 21:26:06.845986" } TASK [Delete veth interface lsr101] ******************************************** Friday 05 August 2022 21:26:07 +0000 (0:00:01.337) 0:00:22.224 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface lsr101] ******************************************* Friday 05 August 2022 21:26:07 +0000 (0:00:00.271) 0:00:22.495 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr101] ******************************************* Friday 05 August 2022 21:26:07 +0000 (0:00:00.445) 0:00:22.941 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr101] ********************************************* Friday 05 August 2022 21:26:08 +0000 (0:00:00.460) 0:00:23.401 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr101] ********************************************* Friday 05 August 2022 21:26:08 +0000 (0:00:00.414) 0:00:23.816 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:26:09 +0000 (0:00:00.494) 0:00:24.310 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:26:10 +0000 (0:00:00.764) 0:00:25.075 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr101] ******************************************* Friday 05 August 2022 21:26:11 +0000 (0:00:01.603) 0:00:26.679 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659734764.5078394, "block_size": 4096, "blocks": 0, "ctime": 1659734764.5078394, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22436, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr101", "lnk_target": "../../devices/virtual/net/lsr101", "mode": "0777", "mtime": 1659734764.5078394, "nlink": 1, "path": "/sys/class/net/lsr101", "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 lsr101 is present] ********************************* Friday 05 August 2022 21:26:14 +0000 (0:00:02.439) 0:00:29.118 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure the MTU for a vlan interface without autoconnect.] *** Friday 05 August 2022 21:26:14 +0000 (0:00:00.495) 0:00:29.613 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 21:26:15 +0000 (0:00:00.659) 0:00:30.273 ********* 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 21:26:16 +0000 (0:00:00.774) 0:00:31.048 ********* 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 21:26:17 +0000 (0:00:01.437) 0:00:32.485 ********* 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 21:26:22 +0000 (0:00:05.395) 0:00:37.881 ********* 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 21:26:29 +0000 (0:00:06.608) 0:00:44.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 21:26:31 +0000 (0:00:01.857) 0:00:46.348 ********* 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 21:26:31 +0000 (0:00:00.475) 0:00:46.824 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 21:26:32 +0000 (0:00:00.521) 0:00:47.345 ********* 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 21:26:33 +0000 (0:00:01.599) 0:00:48.945 ********* 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 21:26:34 +0000 (0:00:00.826) 0:00:49.771 ********* 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 21:26:35 +0000 (0:00:00.607) 0:00:50.379 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 21:26:36 +0000 (0:00:00.763) 0:00:51.143 ********* 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 21:26:42 +0000 (0:00:06.058) 0:00:57.202 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 21:26:43 +0000 (0:00:00.971) 0:00:58.174 ********* 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 21:26:43 +0000 (0:00:00.641) 0:00:58.815 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 21:26:44 +0000 (0:00:00.437) 0:00:59.253 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1492, "name": "lsr101", "state": "up", "type": "ethernet" }, { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1280, "name": "lsr101.90", "parent": "lsr101", "state": "up", "type": "vlan", "vlan_id": 90 } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [005] #0, state:up persistent_state:present, 'lsr101': add connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97 [006] #1, state:up persistent_state:present, 'lsr101.90': add connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582 [007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97 (not-active) [008] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582 (not-active) TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 21:26:49 +0000 (0:00:05.336) 0:01:04.589 ********* 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 21:26:51 +0000 (0:00:01.576) 0:01:06.166 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[005] #0, state:up persistent_state:present, 'lsr101': add connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97", "[006] #1, state:up persistent_state:present, 'lsr101.90': add connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582", "[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97 (not-active)", "[008] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582 (not-active)" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 21:26:52 +0000 (0:00:00.878) 0:01:07.045 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1492, "name": "lsr101", "state": "up", "type": "ethernet" }, { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1280, "name": "lsr101.90", "parent": "lsr101", "state": "up", "type": "vlan", "vlan_id": 90 } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": false, "stderr": "[005] #0, state:up persistent_state:present, 'lsr101': add connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97\n[006] #1, state:up persistent_state:present, 'lsr101.90': add connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582\n[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97 (not-active)\n[008] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582 (not-active)\n", "stderr_lines": [ "[005] #0, state:up persistent_state:present, 'lsr101': add connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97", "[006] #1, state:up persistent_state:present, 'lsr101.90': add connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582", "[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101, 24ec251d-20cf-4494-91d4-45e23d554b97 (not-active)", "[008] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90, db6d658b-29e4-47f6-a4f7-c24da9d3b582 (not-active)" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 21:26:52 +0000 (0:00:00.659) 0:01:07.704 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 21:26:53 +0000 (0:00:00.614) 0:01:08.319 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:26:55 +0000 (0:00:02.560) 0:01:10.880 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:26:56 +0000 (0:00:00.989) 0:01:11.869 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr101.90] **************************************** Friday 05 August 2022 21:26:57 +0000 (0:00:00.771) 0:01:12.640 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659734809.145698, "block_size": 4096, "blocks": 0, "ctime": 1659734809.145698, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22912, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr101.90", "lnk_target": "../../devices/virtual/net/lsr101.90", "mode": "0777", "mtime": 1659734809.145698, "nlink": 1, "path": "/sys/class/net/lsr101.90", "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 lsr101.90 is present] ****************************** Friday 05 August 2022 21:26:58 +0000 (0:00:01.267) 0:01:13.908 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:26:59 +0000 (0:00:00.867) 0:01:14.775 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=lsr101) included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/assert_profile_present.yml for sut => (item=lsr101.90) TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:27:00 +0000 (0:00:00.717) 0:01:15.493 ********* 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 21:27:01 +0000 (0:00:00.667) 0:01:16.160 ********* 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 21:27:02 +0000 (0:00:01.376) 0:01:17.557 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 21:27:03 +0000 (0:00:00.840) 0:01:18.397 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 21:27:03 +0000 (0:00:00.506) 0:01:18.904 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr101 | grep /etc", "delta": "0:00:00.026408", "end": "2022-08-05 21:27:04.469180", "rc": 0, "start": "2022-08-05 21:27:04.442772" } STDOUT: lsr101 /etc/NetworkManager/system-connections/lsr101.nmconnection lsr101.90 /etc/NetworkManager/system-connections/lsr101.90.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 21:27:04 +0000 (0:00:00.967) 0:01:19.872 ********* 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-lsr101] ************************* Friday 05 August 2022 21:27:05 +0000 (0:00:00.471) 0:01:20.344 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-lsr101] ********************** Friday 05 August 2022 21:27:05 +0000 (0:00:00.521) 0:01:20.866 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'lsr101' is present] ********************************* Friday 05 August 2022 21:27:06 +0000 (0:00:00.543) 0:01:21.409 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'lsr101' is present] ************** Friday 05 August 2022 21:27:07 +0000 (0:00:00.686) 0:01:22.096 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:27:07 +0000 (0:00:00.583) 0:01:22.679 ********* 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 21:27:08 +0000 (0:00:00.572) 0:01:23.252 ********* 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 21:27:08 +0000 (0:00:00.608) 0:01:23.861 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 21:27:09 +0000 (0:00:01.135) 0:01:24.996 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 21:27:10 +0000 (0:00:00.494) 0:01:25.490 ********* ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr101.90 | grep /etc", "delta": "0:00:00.024435", "end": "2022-08-05 21:27:11.249799", "rc": 0, "start": "2022-08-05 21:27:11.225364" } STDOUT: lsr101.90 /etc/NetworkManager/system-connections/lsr101.90.nmconnection TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 05 August 2022 21:27:11 +0000 (0:00:01.118) 0:01:26.608 ********* 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-lsr101.90] ********************** Friday 05 August 2022 21:27:12 +0000 (0:00:01.212) 0:01:27.821 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-lsr101.90] ******************* Friday 05 August 2022 21:27:13 +0000 (0:00:00.481) 0:01:28.303 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'lsr101.90' is present] ****************************** Friday 05 August 2022 21:27:13 +0000 (0:00:00.451) 0:01:28.754 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'lsr101.90' is present] *********** Friday 05 August 2022 21:27:14 +0000 (0:00:00.556) 0:01:29.310 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** Friday 05 August 2022 21:27:14 +0000 (0:00:00.563) 0:01:29.874 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 21:27:15 +0000 (0:00:00.557) 0:01:30.431 ********* 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 21:27:16 +0000 (0:00:00.730) 0:01:31.162 ********* 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 21:27:17 +0000 (0:00:01.488) 0:01:32.650 ********* 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 21:27:20 +0000 (0:00:02.726) 0:01:35.376 ********* 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 21:27:22 +0000 (0:00:02.615) 0:01:37.992 ********* 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 21:27:24 +0000 (0:00:01.491) 0:01:39.483 ********* 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 21:27:25 +0000 (0:00:00.692) 0:01:40.176 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 21:27:25 +0000 (0:00:00.492) 0:01:40.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 21:27:26 +0000 (0:00:00.975) 0:01:41.644 ********* 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 21:27:27 +0000 (0:00:00.410) 0:01:42.055 ********* 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 21:27:27 +0000 (0:00:00.646) 0:01:42.701 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 21:27:28 +0000 (0:00:01.057) 0:01:43.759 ********* 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 21:27:30 +0000 (0:00:01.746) 0:01:45.505 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 21:27:31 +0000 (0:00:00.805) 0:01:46.311 ********* 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 21:27:31 +0000 (0:00:00.435) 0:01:46.746 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 21:27:32 +0000 (0:00:00.374) 0:01:47.120 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr101", "persistent_state": "absent", "state": "down" }, { "name": "lsr101.90", "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 21:27:34 +0000 (0:00:02.329) 0:01:49.449 ********* 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 21:27:34 +0000 (0:00:00.525) 0:01:49.975 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 21:27:35 +0000 (0:00:00.614) 0:01:50.590 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr101", "persistent_state": "absent", "state": "down" }, { "name": "lsr101.90", "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 21:27:37 +0000 (0:00:01.866) 0:01:52.457 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 21:27:37 +0000 (0:00:00.528) 0:01:52.985 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:27:39 +0000 (0:00:01.506) 0:01:54.492 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 21:27:40 +0000 (0:00:00.961) 0:01:55.454 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 21:27:40 +0000 (0:00:00.452) 0:01:55.906 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:27:41 +0000 (0:00:00.425) 0:01:56.332 ********* included: /WORKDIR/dist-git-network-idempotent_fix-KIFB8a/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 21:27:42 +0000 (0:00:01.045) 0:01:57.377 ********* 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 21:27:43 +0000 (0:00:00.719) 0:01:58.096 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003461", "end": "2022-08-05 21:27:43.928206", "rc": 0, "start": "2022-08-05 21:27:43.924745" } STDOUT: eth0 lo lsr101 peerlsr101 TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 21:27:44 +0000 (0:00:01.338) 0:01:59.435 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "lsr101", "peerlsr101" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 21:27:45 +0000 (0:00:00.665) 0:02:00.122 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'lsr101', 'peerlsr101'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 21:27:45 +0000 (0:00:00.748) 0:02:00.870 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr101] ******************************************** Friday 05 August 2022 21:27:48 +0000 (0:00:02.225) 0:02:03.096 ********* skipping: [sut] => (item=ip link add lsr101 type veth peer name peerlsr101) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add lsr101 type veth peer name peerlsr101", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerlsr101 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerlsr101 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set lsr101 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set lsr101 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 21:27:49 +0000 (0:00:01.403) 0:02:04.500 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface lsr101] ******************************************** Friday 05 August 2022 21:27:50 +0000 (0:00:00.844) 0:02:05.344 ********* changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "lsr101", "type", "veth" ], "delta": "0:00:00.011043", "end": "2022-08-05 21:27:51.629175", "rc": 0, "start": "2022-08-05 21:27:51.618132" } TASK [Create dummy interface lsr101] ******************************************* Friday 05 August 2022 21:27:52 +0000 (0:00:01.812) 0:02:07.157 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr101] ******************************************* Friday 05 August 2022 21:27:53 +0000 (0:00:00.963) 0:02:08.121 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr101] ********************************************* Friday 05 August 2022 21:27:54 +0000 (0:00:01.162) 0:02:09.284 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr101] ********************************************* Friday 05 August 2022 21:27:55 +0000 (0:00:01.243) 0:02:10.527 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=73 changed=5 unreachable=0 failed=0 skipped=48 rescued=0 ignored=0 Friday 05 August 2022 21:27:57 +0000 (0:00:02.111) 0:02:12.639 ********* =============================================================================== linux-system-roles.network : Check which packages are installed --------- 6.61s linux-system-roles.network : Enable and start NetworkManager ------------ 6.06s linux-system-roles.network : Check which services are running ----------- 5.40s linux-system-roles.network : Configure networking connection profiles --- 5.34s Install iproute --------------------------------------------------------- 3.34s linux-system-roles.network : Check which services are running ----------- 2.75s linux-system-roles.network : Check which packages are installed --------- 2.60s linux-system-roles.network : Re-test connectivity ----------------------- 2.56s Gather current interface info ------------------------------------------- 2.56s Create veth interface lsr101 -------------------------------------------- 2.47s Get stat for interface lsr101 ------------------------------------------- 2.44s linux-system-roles.network : Configure networking connection profiles --- 2.33s Install iproute --------------------------------------------------------- 2.23s Delete tap interface lsr101 --------------------------------------------- 2.11s Gathering Facts --------------------------------------------------------- 2.01s linux-system-roles.network : Print network provider --------------------- 1.88s linux-system-roles.network : Show debug messages for the network_connections --- 1.87s Delete veth interface lsr101 -------------------------------------------- 1.86s linux-system-roles.network : Enable and start NetworkManager ------------ 1.75s Gathering Facts --------------------------------------------------------- 1.61s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---