# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_provider.yml' with nm as provider] ********* TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:39:33 +0000 (0:00:00.029) 0:00:00.029 *********** ok: [sut] TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.838) 0:00:00.868 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.029) 0:00:00.898 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.042) 0:00:00.941 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 34] ********************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.072) 0:00:01.014 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 7] *********************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.024) 0:00:01.038 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.026) 0:00:01.065 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 6] *********************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.025) 0:00:01.090 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.026) 0:00:01.116 *********** ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } TASK [Install NetworkManager] ************************************************** Tuesday 31 May 2022 01:39:34 +0000 (0:00:00.033) 0:00:01.150 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Get NetworkManager version] ********************************************** Tuesday 31 May 2022 01:39:38 +0000 (0:00:03.164) 0:00:04.314 *********** changed: [sut] => { "changed": true, "cmd": [ "rpm", "-q", "--qf", "%{version}", "NetworkManager" ], "delta": "0:00:00.009209", "end": "2022-05-31 01:39:37.857436", "rc": 0, "start": "2022-05-31 01:39:37.848227" } STDOUT: 1.30.6 PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Tuesday 31 May 2022 01:39:38 +0000 (0:00:00.431) 0:00:04.745 *********** ok: [sut] TASK [Show playbook name] ****************************************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.589) 0:00:05.334 *********** ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.034) 0:00:05.369 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can manage a veth interface with NM after I managed it with initscripts.] *** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.051) 0:00:05.420 *********** ok: [sut] => {} MSG: ########## I can manage a veth interface with NM after I managed it with initscripts. ########## TASK [Show item] *************************************************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.040) 0:00:05.461 *********** ok: [sut] => (item=lsr_description) => { "ansible_loop_var": "item", "item": "lsr_description", "lsr_description": "I can manage a veth interface with NM after I managed it with initscripts." } ok: [sut] => (item=lsr_setup) => { "ansible_loop_var": "item", "item": "lsr_setup", "lsr_setup": [ "tasks/setup_test_interface.yml", "tasks/provider/default_with_nm.yml", "tasks/provider/create_and_remove_with_initscripts.yml" ] } ok: [sut] => (item=lsr_test) => { "ansible_loop_var": "item", "item": "lsr_test", "lsr_test": [ "tasks/provider/create_with_nm.yml" ] } ok: [sut] => (item=lsr_assert) => { "ansible_loop_var": "item", "item": "lsr_assert", "lsr_assert": [ "tasks/assert_profile_present.yml" ] } ok: [sut] => (item=lsr_assert_when) => { "ansible_loop_var": "item", "item": "lsr_assert_when", "lsr_assert_when": "VARIABLE IS NOT DEFINED!: 'lsr_assert_when' is undefined" } ok: [sut] => (item=lsr_fail_debug) => { "ansible_loop_var": "item", "item": "lsr_fail_debug", "lsr_fail_debug": [ "__network_connections_result" ] } ok: [sut] => (item=lsr_cleanup) => { "ansible_loop_var": "item", "item": "lsr_cleanup", "lsr_cleanup": [ "tasks/cleanup_profile+device.yml" ] } TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.168) 0:00:05.629 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.046) 0:00:05.676 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.042) 0:00:05.719 *********** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003653", "end": "2022-05-31 01:39:39.130908", "rc": 0, "start": "2022-05-31 01:39:39.127255" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.286) 0:00:06.005 *********** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.037) 0:00:06.043 *********** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.035) 0:00:06.078 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/setup_test_interface.yml for sut included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/provider/default_with_nm.yml for sut included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/provider/create_and_remove_with_initscripts.yml for sut TASK [include_tasks] *********************************************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.100) 0:00:06.179 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Tuesday 31 May 2022 01:39:39 +0000 (0:00:00.052) 0:00:06.232 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Tuesday 31 May 2022 01:39:40 +0000 (0:00:00.035) 0:00:06.267 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Tuesday 31 May 2022 01:39:40 +0000 (0:00:00.033) 0:00:06.300 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Tuesday 31 May 2022 01:39:40 +0000 (0:00:00.049) 0:00:06.350 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Tuesday 31 May 2022 01:39:40 +0000 (0:00:00.043) 0:00:06.393 *********** ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003697", "end": "2022-05-31 01:39:39.799520", "rc": 0, "start": "2022-05-31 01:39:39.795823" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Tuesday 31 May 2022 01:39:40 +0000 (0:00:00.280) 0:00:06.674 *********** ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Tuesday 31 May 2022 01:39:40 +0000 (0:00:00.040) 0:00:06.714 *********** ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Tuesday 31 May 2022 01:39:40 +0000 (0:00:00.037) 0:00:06.752 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface testnic1] ****************************************** Tuesday 31 May 2022 01:39:43 +0000 (0:00:02.920) 0:00:09.672 *********** changed: [sut] => (item=ip link add testnic1 type veth peer name peertestnic1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "testnic1", "type", "veth", "peer", "name", "peertestnic1" ], "delta": "0:00:00.023886", "end": "2022-05-31 01:39:43.118963", "item": "ip link add testnic1 type veth peer name peertestnic1", "rc": 0, "start": "2022-05-31 01:39:43.095077" } changed: [sut] => (item=ip link set peertestnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peertestnic1", "up" ], "delta": "0:00:00.004127", "end": "2022-05-31 01:39:43.389565", "item": "ip link set peertestnic1 up", "rc": 0, "start": "2022-05-31 01:39:43.385438" } changed: [sut] => (item=ip link set testnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "testnic1", "up" ], "delta": "0:00:00.007126", "end": "2022-05-31 01:39:43.635667", "item": "ip link set testnic1 up", "rc": 0, "start": "2022-05-31 01:39:43.628541" } TASK [Set up veth as managed by NetworkManager] ******************************** Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.840) 0:00:10.513 *********** changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "testnic1", "managed", "true" ], "delta": "0:00:00.047442", "end": "2022-05-31 01:39:43.966126", "rc": 0, "start": "2022-05-31 01:39:43.918684" } TASK [Delete veth interface testnic1] ****************************************** Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.330) 0:00:10.843 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface testnic1] ***************************************** Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.037) 0:00:10.881 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface testnic1] ***************************************** Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.039) 0:00:10.921 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface testnic1] ******************************************* Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.038) 0:00:10.959 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface testnic1] ******************************************* Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.041) 0:00:11.001 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include network role] **************************************************** Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.041) 0:00:11.043 *********** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:39:44 +0000 (0:00:00.095) 0:00:11.138 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:39:45 +0000 (0:00:00.179) 0:00:11.318 *********** 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] *********** Tuesday 31 May 2022 01:39:45 +0000 (0:00:00.417) 0:00:11.735 *********** 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] ********* Tuesday 31 May 2022 01:39:47 +0000 (0:00:02.117) 0:00:13.852 *********** 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] ********************* Tuesday 31 May 2022 01:39:48 +0000 (0:00:01.140) 0:00:14.993 *********** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:39:48 +0000 (0:00:00.078) 0:00:15.072 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:39:48 +0000 (0:00:00.132) 0:00:15.204 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:39:49 +0000 (0:00:00.084) 0:00:15.289 *********** 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] ************ Tuesday 31 May 2022 01:39:49 +0000 (0:00:00.766) 0:00:16.055 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:39:49 +0000 (0:00:00.088) 0:00:16.144 *********** 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] *** Tuesday 31 May 2022 01:39:49 +0000 (0:00:00.074) 0:00:16.219 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:39:50 +0000 (0:00:00.075) 0:00:16.295 *********** ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false } STDERR: TASK [linux-system-roles.network : Show stderr messages] *********************** Tuesday 31 May 2022 01:39:50 +0000 (0:00:00.753) 0:00:17.048 *********** ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Tuesday 31 May 2022 01:39:50 +0000 (0:00:00.089) 0:00:17.138 *********** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": false, "failed": false, "stderr": "\n", "stderr_lines": [ "" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Tuesday 31 May 2022 01:39:50 +0000 (0:00:00.088) 0:00:17.226 *********** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Tuesday 31 May 2022 01:39:51 +0000 (0:00:00.435) 0:00:17.662 *********** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:39:51 +0000 (0:00:00.148) 0:00:17.811 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:39:51 +0000 (0:00:00.156) 0:00:17.967 *********** 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] *********** Tuesday 31 May 2022 01:39:52 +0000 (0:00:00.468) 0:00:18.435 *********** 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] ********* Tuesday 31 May 2022 01:39:54 +0000 (0:00:01.977) 0:00:20.413 *********** 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] ********************* Tuesday 31 May 2022 01:39:55 +0000 (0:00:00.877) 0:00:21.290 *********** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:39:55 +0000 (0:00:00.079) 0:00:21.370 *********** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: network-scripts-10.09-1.fc34.x86_64", "Installed: chkconfig-1.15-2.fc34.x86_64" ] } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:39:59 +0000 (0:00:04.842) 0:00:26.213 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:40:00 +0000 (0:00:00.086) 0:00:26.299 *********** 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] ************ Tuesday 31 May 2022 01:40:00 +0000 (0:00:00.115) 0:00:26.414 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:40:00 +0000 (0:00:00.077) 0:00:26.492 *********** 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] *** Tuesday 31 May 2022 01:40:01 +0000 (0:00:00.779) 0:00:27.271 *********** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-31942xm5k33q9/tmp1dky_h9j" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:40:01 +0000 (0:00:00.565) 0:00:27.836 *********** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "ip": { "address": "192.0.2.1/24" }, "name": "testnic1", "persistent_state": "present", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'testnic1': add ifcfg-rh profile 'testnic1' [004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1 (is-modified) [005] #0, state:up persistent_state:present, 'testnic1': call 'ifup testnic1': 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 from distribution in near future.\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' TASK [linux-system-roles.network : Show stderr messages] *********************** Tuesday 31 May 2022 01:40:05 +0000 (0:00:03.698) 0:00:31.535 *********** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'testnic1': add ifcfg-rh profile 'testnic1'", "[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1 (is-modified)", "[005] #0, state:up persistent_state:present, 'testnic1': call 'ifup testnic1': 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 from distribution in near future.\\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] ************************ Tuesday 31 May 2022 01:40:05 +0000 (0:00:00.095) 0:00:31.630 *********** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "ip": { "address": "192.0.2.1/24" }, "name": "testnic1", "persistent_state": "present", "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, 'testnic1': add ifcfg-rh profile 'testnic1'\n[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1 (is-modified)\n[005] #0, state:up persistent_state:present, 'testnic1': call 'ifup testnic1': 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 from distribution in near future.\\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, 'testnic1': add ifcfg-rh profile 'testnic1'", "[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1 (is-modified)", "[005] #0, state:up persistent_state:present, 'testnic1': call 'ifup testnic1': 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 from distribution in near future.\\nWARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Tuesday 31 May 2022 01:40:05 +0000 (0:00:00.133) 0:00:31.764 *********** ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Tuesday 31 May 2022 01:40:05 +0000 (0:00:00.291) 0:00:32.055 *********** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:40:05 +0000 (0:00:00.167) 0:00:32.223 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:40:06 +0000 (0:00:00.142) 0:00:32.366 *********** ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Check which services are running] *********** Tuesday 31 May 2022 01:40:06 +0000 (0:00:00.476) 0:00:32.842 *********** 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] ********* Tuesday 31 May 2022 01:40:08 +0000 (0:00:02.077) 0:00:34.920 *********** 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] ********************* Tuesday 31 May 2022 01:40:09 +0000 (0:00:00.878) 0:00:35.798 *********** ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:40:09 +0000 (0:00:00.080) 0:00:35.879 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:40:09 +0000 (0:00:00.128) 0:00:36.008 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:40:09 +0000 (0:00:00.089) 0:00:36.097 *********** 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] ************ Tuesday 31 May 2022 01:40:09 +0000 (0:00:00.078) 0:00:36.176 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:40:10 +0000 (0:00:00.076) 0:00:36.252 *********** 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] *** Tuesday 31 May 2022 01:40:10 +0000 (0:00:00.508) 0:00:36.761 *********** ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-31942xm5k33q9/tmpsd6ei4sd" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:40:10 +0000 (0:00:00.457) 0:00:37.219 *********** changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "testnic1", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'testnic1': up connection testnic1 (active) [004] #0, state:down persistent_state:absent, 'testnic1': call 'ifdown testnic1': 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 from distribution in near future.\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\n"' [005] #0, state:down persistent_state:absent, 'testnic1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-testnic1' TASK [linux-system-roles.network : Show stderr messages] *********************** Tuesday 31 May 2022 01:40:11 +0000 (0:00:00.612) 0:00:37.832 *********** ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'testnic1': up connection testnic1 (active)", "[004] #0, state:down persistent_state:absent, 'testnic1': call 'ifdown testnic1': 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 from distribution in near future.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'testnic1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-testnic1'" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Tuesday 31 May 2022 01:40:11 +0000 (0:00:00.084) 0:00:37.917 *********** ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "testnic1", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:down persistent_state:absent, 'testnic1': up connection testnic1 (active)\n[004] #0, state:down persistent_state:absent, 'testnic1': call 'ifdown testnic1': 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 from distribution in near future.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'\n[005] #0, state:down persistent_state:absent, 'testnic1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-testnic1'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'testnic1': up connection testnic1 (active)", "[004] #0, state:down persistent_state:absent, 'testnic1': call 'ifdown testnic1': 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 from distribution in near future.\\nWARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.\\n\"'", "[005] #0, state:down persistent_state:absent, 'testnic1': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-testnic1'" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Tuesday 31 May 2022 01:40:11 +0000 (0:00:00.085) 0:00:38.002 *********** ok: [sut] => { "changed": false, "ping": "pong" } TASK [test] ******************************************************************** Tuesday 31 May 2022 01:40:12 +0000 (0:00:00.285) 0:00:38.287 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/provider/create_with_nm.yml for sut TASK [Include network role] **************************************************** Tuesday 31 May 2022 01:40:12 +0000 (0:00:00.148) 0:00:38.436 *********** TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Tuesday 31 May 2022 01:40:12 +0000 (0:00:00.137) 0:00:38.573 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/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] *** Tuesday 31 May 2022 01:40:12 +0000 (0:00:00.132) 0:00:38.706 *********** 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] *********** Tuesday 31 May 2022 01:40:12 +0000 (0:00:00.481) 0:00:39.188 *********** 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] ********* Tuesday 31 May 2022 01:40:14 +0000 (0:00:02.035) 0:00:41.223 *********** 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] ********************* Tuesday 31 May 2022 01:40:15 +0000 (0:00:00.826) 0:00:42.050 *********** ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Tuesday 31 May 2022 01:40:15 +0000 (0:00:00.087) 0:00:42.137 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Tuesday 31 May 2022 01:40:16 +0000 (0:00:00.153) 0:00:42.290 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Tuesday 31 May 2022 01:40:16 +0000 (0:00:00.088) 0:00:42.379 *********** 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] ************ Tuesday 31 May 2022 01:40:16 +0000 (0:00:00.524) 0:00:42.904 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Tuesday 31 May 2022 01:40:16 +0000 (0:00:00.090) 0:00:42.995 *********** 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] *** Tuesday 31 May 2022 01:40:16 +0000 (0:00:00.080) 0:00:43.075 *********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Tuesday 31 May 2022 01:40:16 +0000 (0:00:00.078) 0:00:43.153 *********** fatal: [sut]: FAILED! => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "ip": { "address": "192.0.2.1/24" }, "name": "testnic1", "persistent_state": "present", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78 [004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78 (not-active) [005] #0, state:up persistent_state:present, 'testnic1': up connection failed while waiting: connection not activated: device-disconnected MSG: error: up connection failed while waiting: connection not activated: device-disconnected TASK [Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.'] *** Tuesday 31 May 2022 01:40:17 +0000 (0:00:00.638) 0:00:43.792 *********** ok: [sut] => {} MSG: !!!!! Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.' !!!!! TASK [Show item that failed] *************************************************** Tuesday 31 May 2022 01:40:17 +0000 (0:00:00.083) 0:00:43.876 *********** ok: [sut] => (item=__network_connections_result) => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": true, "ip": { "address": "192.0.2.1/24" }, "name": "testnic1", "persistent_state": "present", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "nm" } }, "changed": true, "failed": true, "msg": "error: up connection failed while waiting: connection not activated: device-disconnected", "stderr": "[003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78\n[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78 (not-active)\n[005] #0, state:up persistent_state:present, 'testnic1': up connection failed while waiting: connection not activated: device-disconnected\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78", "[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78 (not-active)", "[005] #0, state:up persistent_state:present, 'testnic1': up connection failed while waiting: connection not activated: device-disconnected" ], "warnings": [ "[003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78", "[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78 (not-active)", "[005] #0, state:up persistent_state:present, 'testnic1': up connection failed while waiting: connection not activated: device-disconnected" ] }, "ansible_loop_var": "item", "item": "__network_connections_result" } TASK [Issue failed message] **************************************************** Tuesday 31 May 2022 01:40:17 +0000 (0:00:00.098) 0:00:43.975 *********** fatal: [sut]: FAILED! => { "changed": false } MSG: !!!!! Failure in test 'I can manage a veth interface with NM after I managed it with initscripts.' !!!!! TASK [cleanup] ***************************************************************** Tuesday 31 May 2022 01:40:17 +0000 (0:00:00.084) 0:00:44.059 *********** included: /WORKDIR/dist-git-network-bond_fix-RiXHNB/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** Tuesday 31 May 2022 01:40:17 +0000 (0:00:00.158) 0:00:44.217 *********** ok: [sut] => { "changed": false, "cmd": "nmcli con delete testnic1\nnmcli con load /etc/sysconfig/network-scripts/ifcfg-testnic1\nrm -f /etc/sysconfig/network-scripts/ifcfg-testnic1\nip link del testnic1\n", "delta": "0:00:00.051922", "end": "2022-05-31 01:40:17.647544", "rc": 0, "start": "2022-05-31 01:40:17.595622" } STDERR: Error: unknown connection 'testnic1'. Error: cannot delete unknown connection(s): 'testnic1'. to retry, use: --limit @/tmp/tests_provider_nm.retry PLAY RECAP ********************************************************************* sut : ok=72 changed=7 unreachable=0 failed=1 skipped=29 rescued=1 ignored=0 Tuesday 31 May 2022 01:40:18 +0000 (0:00:00.305) 0:00:44.523 *********** =============================================================================== linux-system-roles.network : Install packages --------------------------- 4.84s linux-system-roles.network : Configure networking connection profiles --- 3.70s Install NetworkManager -------------------------------------------------- 3.16s Install iproute --------------------------------------------------------- 2.92s linux-system-roles.network : Check which services are running ----------- 2.12s linux-system-roles.network : Check which services are running ----------- 2.08s linux-system-roles.network : Check which services are running ----------- 2.04s linux-system-roles.network : Check which services are running ----------- 1.98s linux-system-roles.network : Check which packages are installed --------- 1.14s linux-system-roles.network : Check which packages are installed --------- 0.88s linux-system-roles.network : Check which packages are installed --------- 0.88s Create veth interface testnic1 ------------------------------------------ 0.84s Gathering Facts --------------------------------------------------------- 0.84s linux-system-roles.network : Check which packages are installed --------- 0.83s linux-system-roles.network : Enable network service --------------------- 0.78s linux-system-roles.network : Enable and start NetworkManager ------------ 0.77s linux-system-roles.network : Configure networking connection profiles --- 0.75s linux-system-roles.network : Configure networking connection profiles --- 0.64s linux-system-roles.network : Configure networking connection profiles --- 0.61s Gathering Facts --------------------------------------------------------- 0.59s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature [WARNING]: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. [WARNING]: [003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78 [WARNING]: [004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 57513386-fd82-4233-9d14-3d2f6261ee78 (not-active) [WARNING]: [005] #0, state:up persistent_state:present, 'testnic1': up connection failed while waiting: connection not activated: device-disconnected ---^---^---^---^---^---