# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_auto_gateway.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 13:05:44 +0000 (0:00:00.022) 0:00:00.022 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:05:46 +0000 (0:00:01.251) 0:00:01.273 ********* 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 13:05:46 +0000 (0:00:00.041) 0:00:01.315 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:05:46 +0000 (0:00:00.033) 0:00:01.349 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 05 August 2022 13:05:46 +0000 (0:00:00.043) 0:00:01.392 ********* changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.389267", "end": "2022-08-05 13:05:49.129703", "rc": 0, "start": "2022-08-05 13:05:46.740436" } STDOUT: Last metadata expiration check: 0:00:14 ago on Fri Aug 5 13:05:33 2022. epel-release-latest-8.noarch.rpm 751 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 13:05:49 +0000 (0:00:02.811) 0:00:04.203 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 05 August 2022 13:05:49 +0000 (0:00:00.032) 0:00:04.236 ********* changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.575322", "end": "2022-08-05 13:05:49.995939", "rc": 0, "start": "2022-08-05 13:05:49.420617" } TASK [Enable EPEL 6] *********************************************************** Friday 05 August 2022 13:05:50 +0000 (0:00:00.836) 0:00:05.073 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Friday 05 August 2022 13:05:50 +0000 (0:00:00.036) 0:00:05.109 ********* ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 05 August 2022 13:05:50 +0000 (0:00:00.076) 0:00:05.186 ********* ok: [sut] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:05:50 +0000 (0:00:00.781) 0:00:05.967 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:05:51 +0000 (0:00:00.089) 0:00:06.057 ********* 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 13:05:51 +0000 (0:00:00.066) 0:00:06.123 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.004023", "end": "2022-08-05 13:05:51.323813", "rc": 0, "start": "2022-08-05 13:05:51.319790" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 13:05:51 +0000 (0:00:00.269) 0:00:06.393 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 13:05:51 +0000 (0:00:00.068) 0:00:06.462 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:05:51 +0000 (0:00:00.066) 0:00:06.529 ********* 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 13:05:51 +0000 (0:00:00.096) 0:00:06.625 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 05 August 2022 13:05:51 +0000 (0:00:00.070) 0:00:06.696 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:05:51 +0000 (0:00:00.060) 0:00:06.756 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:05:51 +0000 (0:00:00.072) 0:00:06.829 ********* 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 13:05:51 +0000 (0:00:00.081) 0:00:06.911 ********* ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003900", "end": "2022-08-05 13:05:52.135390", "rc": 0, "start": "2022-08-05 13:05:52.131490" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 05 August 2022 13:05:52 +0000 (0:00:00.293) 0:00:07.204 ********* ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 05 August 2022 13:05:52 +0000 (0:00:00.096) 0:00:07.301 ********* ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 05 August 2022 13:05:52 +0000 (0:00:00.086) 0:00:07.387 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 05 August 2022 13:06:02 +0000 (0:00:10.114) 0:00:17.502 ********* changed: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "veth0", "type", "veth", "peer", "name", "peerveth0" ], "delta": "0:00:00.082663", "end": "2022-08-05 13:06:03.282991", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-08-05 13:06:03.200328" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.008134", "end": "2022-08-05 13:06:04.092240", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-08-05 13:06:04.084106" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.009604", "end": "2022-08-05 13:06:04.573301", "item": "ip link set veth0 up", "rc": 0, "start": "2022-08-05 13:06:04.563697" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 05 August 2022 13:06:04 +0000 (0:00:02.322) 0:00:19.824 ********* changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.090192", "end": "2022-08-05 13:06:06.025406", "rc": 0, "start": "2022-08-05 13:06:05.935214" } TASK [Delete veth interface veth0] ********************************************* Friday 05 August 2022 13:06:06 +0000 (0:00:01.385) 0:00:21.209 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 05 August 2022 13:06:06 +0000 (0:00:00.638) 0:00:21.847 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 05 August 2022 13:06:07 +0000 (0:00:00.527) 0:00:22.375 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 05 August 2022 13:06:07 +0000 (0:00:00.534) 0:00:22.910 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 05 August 2022 13:06:08 +0000 (0:00:00.753) 0:00:23.663 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 05 August 2022 13:06:08 +0000 (0:00:00.360) 0:00:24.024 ********* 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 13:06:09 +0000 (0:00:00.624) 0:00:24.648 ********* included: /WORKDIR/dist-git-network-idempotent_fix-r_eg5t/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 05 August 2022 13:06:10 +0000 (0:00:00.637) 0:00:25.285 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1659704763.2723958, "block_size": 4096, "blocks": 0, "ctime": 1659704763.2723958, "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/veth0", "lnk_target": "../../devices/virtual/net/veth0", "mode": "0777", "mtime": 1659704763.2723958, "nlink": 1, "path": "/sys/class/net/veth0", "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 veth0 is present] ********************************** Friday 05 August 2022 13:06:12 +0000 (0:00:02.596) 0:00:27.882 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure an interface with auto_gateway enabled] ************ Friday 05 August 2022 13:06:13 +0000 (0:00:01.156) 0:00:29.039 ********* ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 05 August 2022 13:06:14 +0000 (0:00:00.710) 0:00:29.749 ********* 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 13:06:15 +0000 (0:00:00.494) 0:00:30.243 ********* 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 13:06:16 +0000 (0:00:01.239) 0:00:31.482 ********* 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 13:06:20 +0000 (0:00:04.178) 0:00:35.661 ********* 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 13:06:29 +0000 (0:00:09.030) 0:00:44.692 ********* 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 13:06:31 +0000 (0:00:02.236) 0:00:46.929 ********* 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 13:06:32 +0000 (0:00:00.728) 0:00:47.657 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** Friday 05 August 2022 13:06:33 +0000 (0:00:00.697) 0:00:48.355 ********* 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 13:06:38 +0000 (0:00:05.227) 0:00:53.583 ********* 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 13:06:40 +0000 (0:00:01.571) 0:00:55.154 ********* 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 13:06:41 +0000 (0:00:01.781) 0:00:56.935 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 05 August 2022 13:06:44 +0000 (0:00:02.329) 0:00:59.265 ********* 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 13:06:45 +0000 (0:00:01.756) 0:01:01.022 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 05 August 2022 13:06:47 +0000 (0:00:01.928) 0:01:02.950 ********* 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 13:06:57 +0000 (0:00:09.894) 0:01:12.845 ********* ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-2087nfxv96ta/tmpjucrzfbc" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 05 August 2022 13:07:00 +0000 (0:00:02.927) 0:01:15.773 ********* fatal: [sut]: UNREACHABLE! => { "changed": false, "unreachable": true } MSG: Data could not be sent to remote host "10.31.10.87". Make sure this host can be reached over ssh: to retry, use: --limit @/tmp/tests_auto_gateway_initscripts.retry PLAY RECAP ********************************************************************* sut : ok=34 changed=6 unreachable=1 failed=0 skipped=17 rescued=0 ignored=0 Friday 05 August 2022 15:18:26 +0000 (2:11:25.906) 2:12:41.679 ********* =============================================================================== linux-system-roles.network : Configure networking connection profiles 7885.91s Install iproute -------------------------------------------------------- 10.11s linux-system-roles.network : Enable network service --------------------- 9.89s linux-system-roles.network : Check which packages are installed --------- 9.03s linux-system-roles.network : Install packages --------------------------- 5.23s linux-system-roles.network : Check which services are running ----------- 4.18s linux-system-roles.network : Ensure initscripts network file dependency is present --- 2.93s Create EPEL 8 ----------------------------------------------------------- 2.81s Get stat for interface veth0 -------------------------------------------- 2.60s linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces --- 2.33s Create veth interface veth0 --------------------------------------------- 2.32s linux-system-roles.network : Print network provider --------------------- 2.24s linux-system-roles.network : Enable and start wpa_supplicant ------------ 1.93s linux-system-roles.network : Install python3-libnmstate when using network_state variable --- 1.78s linux-system-roles.network : Enable and start NetworkManager ------------ 1.76s linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable --- 1.57s Set up veth as managed by NetworkManager -------------------------------- 1.38s Gathering Facts --------------------------------------------------------- 1.25s linux-system-roles.network : Ensure ansible_facts used by role are present --- 1.24s assert that interface veth0 is present ---------------------------------- 1.16s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---