# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_ethernet.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:47:11 +0000 (0:00:00.285) 0:00:00.285 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:47:20 +0000 (0:00:08.163) 0:00:08.448 ********* 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 16:47:21 +0000 (0:00:01.316) 0:00:09.765 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:47:22 +0000 (0:00:01.041) 0:00:10.806 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 16:47:23 +0000 (0:00:00.889) 0:00:11.696 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.295467", "end": "2022-08-05 16:47:31.801347", "rc": 0, "start": "2022-08-05 16:47:29.505880" } STDOUT: Last metadata expiration check: 0:01:39 ago on Fri Aug 5 16:45:51 2022. epel-release-latest-8.noarch.rpm 688 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 16:47:32 +0000 (0:00:08.829) 0:00:20.525 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 16:47:33 +0000 (0:00:01.058) 0:00:21.583 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.537205", "end": "2022-08-05 16:47:35.195276", "rc": 0, "start": "2022-08-05 16:47:34.658071" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 16:47:35 +0000 (0:00:02.394) 0:00:23.978 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Friday 05 August 2022 16:47:37 +0000 (0:00:01.479) 0:00:25.457 ********* ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:47:38 +0000 (0:00:01.864) 0:00:27.321 ********* ok: [sut] TASK [Show inside ethernet tests] ********************************************** Friday 05 August 2022 16:47:42 +0000 (0:00:03.808) 0:00:31.130 ********* ok: [sut] => {} MSG: Inside ethernet tests TASK [Show network_provider] *************************************************** Friday 05 August 2022 16:47:44 +0000 (0:00:01.674) 0:00:32.804 ********* ok: [sut] => { "network_provider": "initscripts" } PLAY [Test configuring ethernet devices] *************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:47:46 +0000 (0:00:02.517) 0:00:35.321 ********* ok: [sut] TASK [set type=veth and interface=lsr27] *************************************** Friday 05 August 2022 16:47:51 +0000 (0:00:04.999) 0:00:40.321 ********* ok: [sut] => { "ansible_facts": { "interface": "lsr27", "type": "veth" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:47:55 +0000 (0:00:03.527) 0:00:43.849 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:47:56 +0000 (0:00:01.429) 0:00:45.278 ********* 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 16:47:58 +0000 (0:00:01.442) 0:00:46.720 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003670", "end": "2022-08-05 16:47:59.806669", "rc": 0, "start": "2022-08-05 16:47:59.802999" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:48:00 +0000 (0:00:02.306) 0:00:49.026 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:48:02 +0000 (0:00:01.484) 0:00:50.510 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:03 +0000 (0:00:01.399) 0:00:51.910 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 05 August 2022 16:48:04 +0000 (0:00:01.273) 0:00:53.183 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 16:48:06 +0000 (0:00:01.954) 0:00:55.137 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:07 +0000 (0:00:00.735) 0:00:55.873 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:09 +0000 (0:00:01.637) 0:00:57.510 ********* 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 16:48:11 +0000 (0:00:02.025) 0:00:59.535 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003859", "end": "2022-08-05 16:48:13.397672", "rc": 0, "start": "2022-08-05 16:48:13.393813" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 16:48:14 +0000 (0:00:03.126) 0:01:02.662 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 16:48:16 +0000 (0:00:02.496) 0:01:05.159 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 16:48:19 +0000 (0:00:02.463) 0:01:07.622 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr27] ********************************************* Friday 05 August 2022 16:48:37 +0000 (0:00:18.493) 0:01:26.116 ********* changed: [sut] => (item=ip link add lsr27 type veth peer name peerlsr27) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "lsr27", "type", "veth", "peer", "name", "peerlsr27" ], "delta": "0:00:00.065413", "end": "2022-08-05 16:48:39.587145", "item": "ip link add lsr27 type veth peer name peerlsr27", "rc": 0, "start": "2022-08-05 16:48:39.521732" } changed: [sut] => (item=ip link set peerlsr27 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerlsr27", "up" ], "delta": "0:00:00.007482", "end": "2022-08-05 16:48:40.759796", "item": "ip link set peerlsr27 up", "rc": 0, "start": "2022-08-05 16:48:40.752314" } changed: [sut] => (item=ip link set lsr27 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "lsr27", "up" ], "delta": "0:00:00.007986", "end": "2022-08-05 16:48:42.102103", "item": "ip link set lsr27 up", "rc": 0, "start": "2022-08-05 16:48:42.094117" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 16:48:42 +0000 (0:00:04.719) 0:01:30.835 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "lsr27", "managed", "true" ], "delta": "0:00:00.118652", "end": "2022-08-05 16:48:43.629210", "rc": 0, "start": "2022-08-05 16:48:43.510558" } TASK [Delete veth interface lsr27] ********************************************* Friday 05 August 2022 16:48:44 +0000 (0:00:01.724) 0:01:32.560 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface lsr27] ******************************************** Friday 05 August 2022 16:48:45 +0000 (0:00:01.092) 0:01:33.653 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr27] ******************************************** Friday 05 August 2022 16:48:46 +0000 (0:00:01.483) 0:01:35.136 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr27] ********************************************** Friday 05 August 2022 16:48:48 +0000 (0:00:01.723) 0:01:36.881 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr27] ********************************************** Friday 05 August 2022 16:48:49 +0000 (0:00:01.502) 0:01:38.383 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:51 +0000 (0:00:01.218) 0:01:39.602 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:48:52 +0000 (0:00:00.965) 0:01:40.567 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr27] ******************************************** Friday 05 August 2022 16:48:53 +0000 (0:00:01.515) 0:01:42.083 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659718119.5781546, "block_size": 4096, "blocks": 0, "ctime": 1659718119.5781546, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 22037, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr27", "lnk_target": "../../devices/virtual/net/lsr27", "mode": "0777", "mtime": 1659718119.5781546, "nlink": 1, "path": "/sys/class/net/lsr27", "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 lsr27 is present] ********************************** Friday 05 August 2022 16:49:00 +0000 (0:00:06.623) 0:01:48.707 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Test static interface up] ************************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:49:01 +0000 (0:00:01.672) 0:01:50.379 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:49:05 +0000 (0:00:03.561) 0:01:53.940 ********* 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 16:49:06 +0000 (0:00:00.886) 0:01:54.827 ********* 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 16:49:09 +0000 (0:00:03.532) 0:01:58.359 ********* 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 16:49:20 +0000 (0:00:10.294) 0:02:08.654 ********* 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 16:49:36 +0000 (0:00:15.785) 0:02:24.440 ********* ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 16:49:38 +0000 (0:00:01.992) 0:02:26.433 ********* 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 16:49:40 +0000 (0:00:02.070) 0:02:28.503 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:49:42 +0000 (0:00:02.425) 0:02:30.928 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: network-scripts-10.00.15-1.el8.x86_64", "Installed: network-scripts-team-1.31-2.el8.x86_64" ] } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** Friday 05 August 2022 16:49:48 +0000 (0:00:06.044) 0:02:36.973 ********* 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 16:49:50 +0000 (0:00:02.023) 0:02:38.996 ********* 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 16:49:52 +0000 (0:00:01.669) 0:02:40.666 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:49:54 +0000 (0:00:02.477) 0:02:43.143 ********* 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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 16:49:56 +0000 (0:00:02.083) 0:02:45.227 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:49:58 +0000 (0:00:01.489) 0:02:46.716 ********* changed: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 16:50:09 +0000 (0:00:10.916) 0:02:57.633 ********* ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-204826_n2v1v4/tmp8m4iiwf0" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:50:09 +0000 (0:00:00.730) 0:02:58.363 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "lsr27", "ip": { "address": "192.0.2.1/24" }, "name": "lsr27", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'lsr27': add ifcfg-rh profile 'lsr27' [004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27 (is-modified) [005] #0, state:up persistent_state:present, 'lsr27': call 'ifup lsr27': rc=0, out='b''', err='b"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:50:16 +0000 (0:00:06.188) 0:03:04.551 ********* 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 16:50:16 +0000 (0:00:00.175) 0:03:04.727 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'lsr27': add ifcfg-rh profile 'lsr27'", "[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27 (is-modified)", "[005] #0, state:up persistent_state:present, 'lsr27': call 'ifup lsr27': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:50:16 +0000 (0:00:00.236) 0:03:04.963 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "interface_name": "lsr27", "ip": { "address": "192.0.2.1/24" }, "name": "lsr27", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'lsr27': add ifcfg-rh profile 'lsr27'\n[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27 (is-modified)\n[005] #0, state:up persistent_state:present, 'lsr27': call 'ifup lsr27': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'lsr27': add ifcfg-rh profile 'lsr27'", "[004] #0, state:up persistent_state:present, 'lsr27': up connection lsr27 (is-modified)", "[005] #0, state:up persistent_state:present, 'lsr27': call 'ifup lsr27': rc=0, out='b''', err='b\"WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:50:16 +0000 (0:00:00.179) 0:03:05.143 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:50:16 +0000 (0:00:00.157) 0:03:05.300 ********* ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:17 +0000 (0:00:00.801) 0:03:06.102 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_output_in_stderr_without_warnings.yml for sut TASK [Assert that warnings is empty] ******************************************* Friday 05 August 2022 16:50:17 +0000 (0:00:00.295) 0:03:06.397 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert that there is output in stderr] *********************************** Friday 05 August 2022 16:50:18 +0000 (0:00:00.133) 0:03:06.531 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:18 +0000 (0:00:00.387) 0:03:06.919 ********* ok: [sut] TASK [Show network_provider] *************************************************** Friday 05 August 2022 16:50:19 +0000 (0:00:00.944) 0:03:07.864 ********* ok: [sut] => { "network_provider": "initscripts" } PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:19 +0000 (0:00:00.314) 0:03:08.178 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:50:20 +0000 (0:00:01.059) 0:03:09.238 ********* 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 16:50:21 +0000 (0:00:00.232) 0:03:09.470 ********* 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 16:50:21 +0000 (0:00:00.548) 0:03:10.019 ********* 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 16:50:23 +0000 (0:00:02.115) 0:03:12.135 ********* 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 16:50:25 +0000 (0:00:01.667) 0:03:13.802 ********* ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 16:50:25 +0000 (0:00:00.094) 0:03:13.897 ********* 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 16:50:25 +0000 (0:00:00.115) 0:03:14.012 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:50:25 +0000 (0:00:00.082) 0:03:14.095 ********* 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 16:50:25 +0000 (0:00:00.121) 0:03:14.217 ********* 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 16:50:25 +0000 (0:00:00.080) 0:03:14.297 ********* 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 16:50:25 +0000 (0:00:00.080) 0:03:14.377 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:50:26 +0000 (0:00:00.087) 0:03:14.465 ********* 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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 16:50:26 +0000 (0:00:00.082) 0:03:14.548 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:50:26 +0000 (0:00:00.075) 0:03:14.623 ********* 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 : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 16:50:26 +0000 (0:00:00.503) 0:03:15.126 ********* ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-204826_n2v1v4/tmp1p1y6596" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:50:27 +0000 (0:00:00.427) 0:03:15.554 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:down persistent_state:present, 'lsr27': up connection lsr27 (active) [003] #0, state:down persistent_state:present, 'lsr27': call 'ifdown lsr27': rc=0, out='b''', err='b"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:50:27 +0000 (0:00:00.581) 0:03:16.135 ********* 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 16:50:27 +0000 (0:00:00.085) 0:03:16.221 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:down persistent_state:present, 'lsr27': up connection lsr27 (active)", "[003] #0, state:down persistent_state:present, 'lsr27': call 'ifdown lsr27': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:50:27 +0000 (0:00:00.096) 0:03:16.317 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:down persistent_state:present, 'lsr27': up connection lsr27 (active)\n[003] #0, state:down persistent_state:present, 'lsr27': call 'ifdown lsr27': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n", "stderr_lines": [ "[002] #0, state:down persistent_state:present, 'lsr27': up connection lsr27 (active)", "[003] #0, state:down persistent_state:present, 'lsr27': call 'ifdown lsr27': rc=0, out='b''', err='b\"WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.\\nWARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:50:28 +0000 (0:00:00.185) 0:03:16.503 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:50:28 +0000 (0:00:00.080) 0:03:16.584 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:28 +0000 (0:00:00.393) 0:03:16.977 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:29 +0000 (0:00:00.821) 0:03:17.799 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 05 August 2022 16:50:29 +0000 (0:00:00.108) 0:03:17.907 ********* ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "lsr27" ], "delta": "0:00:00.013653", "end": "2022-08-05 16:50:29.745830", "rc": 0, "start": "2022-08-05 16:50:29.732177" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:29 +0000 (0:00:00.434) 0:03:18.342 ********* ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 16:50:30 +0000 (0:00:00.848) 0:03:19.190 ********* 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 16:50:30 +0000 (0:00:00.118) 0:03:19.309 ********* 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 16:50:31 +0000 (0:00:00.517) 0:03:19.826 ********* 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 16:50:33 +0000 (0:00:02.062) 0:03:21.888 ********* 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 16:50:35 +0000 (0:00:01.773) 0:03:23.662 ********* ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** Friday 05 August 2022 16:50:35 +0000 (0:00:00.117) 0:03:23.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 16:50:35 +0000 (0:00:00.096) 0:03:23.877 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 16:50:35 +0000 (0:00:00.077) 0:03:23.954 ********* 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 16:50:35 +0000 (0:00:00.122) 0:03:24.077 ********* 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 16:50:35 +0000 (0:00:00.089) 0:03:24.167 ********* 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 16:50:35 +0000 (0:00:00.086) 0:03:24.253 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 16:50:35 +0000 (0:00:00.112) 0:03:24.366 ********* 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 : Enable and start wpa_supplicant] ************ Friday 05 August 2022 16:50:36 +0000 (0:00:00.114) 0:03:24.481 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 16:50:36 +0000 (0:00:00.133) 0:03:24.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 : Ensure initscripts network file dependency is present] *** Friday 05 August 2022 16:50:36 +0000 (0:00:00.582) 0:03:25.197 ********* ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-204826_n2v1v4/tmpvb3nl61q" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 16:50:37 +0000 (0:00:00.519) 0:03:25.717 ********* changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'lsr27': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr27' TASK [linux-system-roles.network : Configure networking state] ***************** Friday 05 August 2022 16:50:38 +0000 (0:00:00.908) 0:03:26.625 ********* 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 16:50:38 +0000 (0:00:00.263) 0:03:26.888 ********* ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'lsr27': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr27'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** Friday 05 August 2022 16:50:38 +0000 (0:00:00.219) 0:03:27.108 ********* ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr27", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'lsr27': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr27'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'lsr27': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr27'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** Friday 05 August 2022 16:50:38 +0000 (0:00:00.196) 0:03:27.305 ********* skipping: [sut] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 05 August 2022 16:50:39 +0000 (0:00:00.179) 0:03:27.484 ********* ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Assert device and profile are absent] ************************************ TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 16:50:39 +0000 (0:00:00.658) 0:03:28.142 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:40 +0000 (0:00:00.967) 0:03:29.110 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:40 +0000 (0:00:00.218) 0:03:29.328 ********* 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 16:50:41 +0000 (0:00:00.307) 0:03:29.635 ********* 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 16:50:41 +0000 (0:00:00.158) 0:03:29.794 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 05 August 2022 16:50:41 +0000 (0:00:00.387) 0:03:30.182 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 05 August 2022 16:50:41 +0000 (0:00:00.160) 0:03:30.343 ********* fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr27 | grep /etc", "delta": "0:00:00.022458", "end": "2022-08-05 16:50:42.425352", "rc": 1, "start": "2022-08-05 16:50:42.402894" } 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 16:50:42 +0000 (0:00:00.754) 0:03:31.097 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-lsr27] ************************** Friday 05 August 2022 16:50:43 +0000 (0:00:00.554) 0:03:31.652 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-lsr27] *********************** Friday 05 August 2022 16:50:43 +0000 (0:00:00.529) 0:03:32.182 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'lsr27' is absent] *********************************** Friday 05 August 2022 16:50:44 +0000 (0:00:00.477) 0:03:32.660 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:44 +0000 (0:00:00.619) 0:03:33.279 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 16:50:45 +0000 (0:00:00.688) 0:03:33.967 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface lsr27] ******************************************** Friday 05 August 2022 16:50:46 +0000 (0:00:00.717) 0:03:34.684 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface lsr27 is absent] *********************************** Friday 05 August 2022 16:50:47 +0000 (0:00:01.724) 0:03:36.408 ********* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=85 changed=9 unreachable=0 failed=0 skipped=43 rescued=0 ignored=1 Friday 05 August 2022 16:50:49 +0000 (0:00:01.054) 0:03:37.462 ********* =============================================================================== Install iproute -------------------------------------------------------- 18.49s linux-system-roles.network : Check which packages are installed -------- 15.79s linux-system-roles.network : Enable network service -------------------- 10.92s linux-system-roles.network : Check which services are running ---------- 10.29s Create EPEL 8 ----------------------------------------------------------- 8.83s Gathering Facts --------------------------------------------------------- 8.16s Get stat for interface lsr27 -------------------------------------------- 6.62s linux-system-roles.network : Configure networking connection profiles --- 6.19s linux-system-roles.network : Install packages --------------------------- 6.04s Gathering Facts --------------------------------------------------------- 5.00s Create veth interface lsr27 --------------------------------------------- 4.72s Gathering Facts --------------------------------------------------------- 3.81s Gathering Facts --------------------------------------------------------- 3.56s linux-system-roles.network : Ensure ansible_facts used by role are present --- 3.53s set type=veth and interface=lsr27 --------------------------------------- 3.53s Gather current interface info ------------------------------------------- 3.13s Show network_provider --------------------------------------------------- 2.52s Set current_interfaces -------------------------------------------------- 2.50s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 2.48s Show current_interfaces ------------------------------------------------- 2.46s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---