# 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] ********************************************************* Friday 27 May 2022 17:43:49 +0000 (0:00:00.030) 0:00:00.030 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:43:50 +0000 (0:00:00.855) 0:00:00.886 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/el_repo_setup.yml for sut TASK [Fix CentOS6 Base repo] *************************************************** Friday 27 May 2022 17:43:50 +0000 (0:00:00.037) 0:00:00.923 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:43:50 +0000 (0:00:00.050) 0:00:00.974 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 17:43:50 +0000 (0:00:00.083) 0:00:01.057 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.493248", "end": "2022-05-27 17:43:52.964246", "rc": 0, "start": "2022-05-27 17:43:50.470998" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Last metadata expiration check: 0:00:14 ago on Fri May 27 17:43:37 2022. epel-release-latest-8.noarch.rpm 167 kB/s | 23 kB 00:00 Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-15.el8 @commandline 23 k Transaction Summary ================================================================================ Install 1 Package Total size: 23 k Installed size: 32 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-15.el8.noarch 1/1 Running scriptlet: epel-release-8-15.el8.noarch 1/1 Verifying : epel-release-8-15.el8.noarch 1/1 Installed products updated. Installed: epel-release-8-15.el8.noarch Complete! TASK [Enable EPEL 7] *********************************************************** Friday 27 May 2022 17:43:53 +0000 (0:00:02.880) 0:00:03.938 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 17:43:53 +0000 (0:00:00.034) 0:00:03.972 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.537379", "end": "2022-05-27 17:43:53.817444", "rc": 0, "start": "2022-05-27 17:43:53.280065" } STDOUT: Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. TASK [Enable EPEL 6] *********************************************************** Friday 27 May 2022 17:43:54 +0000 (0:00:00.817) 0:00:04.789 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'nm'] ******************************************** Friday 27 May 2022 17:43:54 +0000 (0:00:00.032) 0:00:04.822 ************ ok: [sut] => { "ansible_facts": { "network_provider": "nm" }, "changed": false } TASK [Install NetworkManager] ************************************************** Friday 27 May 2022 17:43:54 +0000 (0:00:00.039) 0:00:04.861 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Get NetworkManager version] ********************************************** Friday 27 May 2022 17:44:03 +0000 (0:00:09.545) 0:00:14.406 ************ changed: [sut] => { "changed": true, "cmd": [ "rpm", "-q", "--qf", "%{version}", "NetworkManager" ], "delta": "0:00:00.014353", "end": "2022-05-27 17:44:03.751192", "rc": 0, "start": "2022-05-27 17:44:03.736839" } STDOUT: 1.32.10 PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:44:04 +0000 (0:00:00.333) 0:00:14.740 ************ ok: [sut] TASK [Show playbook name] ****************************************************** Friday 27 May 2022 17:44:04 +0000 (0:00:00.633) 0:00:15.374 ************ ok: [sut] => {} MSG: this is: playbooks/tests_states.yml TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:44:04 +0000 (0:00:00.048) 0:00:15.423 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/run_test.yml for sut TASK [TEST: I can manage a veth interface with NM after I managed it with initscripts.] *** Friday 27 May 2022 17:44:05 +0000 (0:00:00.065) 0:00:15.488 ************ ok: [sut] => {} MSG: ########## I can manage a veth interface with NM after I managed it with initscripts. ########## TASK [Show item] *************************************************************** Friday 27 May 2022 17:44:05 +0000 (0:00:00.041) 0:00:15.529 ************ 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] *********************************************************** Friday 27 May 2022 17:44:05 +0000 (0:00:00.185) 0:00:15.715 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:44:05 +0000 (0:00:00.055) 0:00:15.770 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 27 May 2022 17:44:05 +0000 (0:00:00.050) 0:00:15.820 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003445", "end": "2022-05-27 17:44:05.145102", "rc": 0, "start": "2022-05-27 17:44:05.141657" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:44:05 +0000 (0:00:00.296) 0:00:16.116 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:44:05 +0000 (0:00:00.042) 0:00:16.158 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [setup] ******************************************************************* Friday 27 May 2022 17:44:05 +0000 (0:00:00.040) 0:00:16.198 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/setup_test_interface.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/provider/default_with_nm.yml for sut included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/provider/create_and_remove_with_initscripts.yml for sut TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:44:05 +0000 (0:00:00.119) 0:00:16.318 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/manage_test_interface.yml for sut TASK [Ensure state in ["present", "absent"]] *********************************** Friday 27 May 2022 17:44:05 +0000 (0:00:00.060) 0:00:16.378 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 17:44:05 +0000 (0:00:00.038) 0:00:16.417 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 17:44:06 +0000 (0:00:00.035) 0:00:16.452 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:44:06 +0000 (0:00:00.051) 0:00:16.503 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_current_interfaces.yml for sut TASK [Gather current interface info] ******************************************* Friday 27 May 2022 17:44:06 +0000 (0:00:00.059) 0:00:16.563 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003301", "end": "2022-05-27 17:44:05.880229", "rc": 0, "start": "2022-05-27 17:44:05.876928" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:44:06 +0000 (0:00:00.288) 0:00:16.852 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:44:06 +0000 (0:00:00.044) 0:00:16.897 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 17:44:06 +0000 (0:00:00.041) 0:00:16.939 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface testnic1] ****************************************** Friday 27 May 2022 17:44:08 +0000 (0:00:01.914) 0:00:18.853 ************ 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.048491", "end": "2022-05-27 17:44:08.226800", "item": "ip link add testnic1 type veth peer name peertestnic1", "rc": 0, "start": "2022-05-27 17:44:08.178309" } changed: [sut] => (item=ip link set peertestnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peertestnic1", "up" ], "delta": "0:00:00.004705", "end": "2022-05-27 17:44:08.508061", "item": "ip link set peertestnic1 up", "rc": 0, "start": "2022-05-27 17:44:08.503356" } changed: [sut] => (item=ip link set testnic1 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "testnic1", "up" ], "delta": "0:00:00.004356", "end": "2022-05-27 17:44:08.751350", "item": "ip link set testnic1 up", "rc": 0, "start": "2022-05-27 17:44:08.746994" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 17:44:09 +0000 (0:00:00.871) 0:00:19.725 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "testnic1", "managed", "true" ], "delta": "0:00:00.060038", "end": "2022-05-27 17:44:09.098784", "rc": 0, "start": "2022-05-27 17:44:09.038746" } TASK [Delete veth interface testnic1] ****************************************** Friday 27 May 2022 17:44:09 +0000 (0:00:00.346) 0:00:20.072 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface testnic1] ***************************************** Friday 27 May 2022 17:44:09 +0000 (0:00:00.042) 0:00:20.114 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface testnic1] ***************************************** Friday 27 May 2022 17:44:09 +0000 (0:00:00.046) 0:00:20.161 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface testnic1] ******************************************* Friday 27 May 2022 17:44:09 +0000 (0:00:00.040) 0:00:20.202 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface testnic1] ******************************************* Friday 27 May 2022 17:44:09 +0000 (0:00:00.040) 0:00:20.243 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include network role] **************************************************** Friday 27 May 2022 17:44:09 +0000 (0:00:00.039) 0:00:20.283 ************ TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:44:09 +0000 (0:00:00.102) 0:00:20.385 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:44:10 +0000 (0:00:00.160) 0:00:20.545 ************ 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 27 May 2022 17:44:10 +0000 (0:00:00.419) 0:00:20.964 ************ 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 27 May 2022 17:44:12 +0000 (0:00:01.816) 0:00:22.781 ************ 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 27 May 2022 17:44:14 +0000 (0:00:01.818) 0:00:24.599 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:44:14 +0000 (0:00:00.095) 0:00:24.695 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:44:14 +0000 (0:00:00.154) 0:00:24.849 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:44:14 +0000 (0:00:00.100) 0:00:24.950 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 17:44:15 +0000 (0:00:00.817) 0:00:25.767 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:44:15 +0000 (0:00:00.096) 0:00:25.863 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 17:44:15 +0000 (0:00:00.089) 0:00:25.953 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:44:15 +0000 (0:00:00.087) 0:00:26.041 ************ 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] *********************** Friday 27 May 2022 17:44:16 +0000 (0:00:00.796) 0:00:26.837 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:44:16 +0000 (0:00:00.093) 0:00:26.931 ************ 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] *********************** Friday 27 May 2022 17:44:16 +0000 (0:00:00.100) 0:00:27.032 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Friday 27 May 2022 17:44:17 +0000 (0:00:00.410) 0:00:27.443 ************ TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:44:17 +0000 (0:00:00.161) 0:00:27.604 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:44:17 +0000 (0:00:00.161) 0:00:27.766 ************ 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 27 May 2022 17:44:17 +0000 (0:00:00.492) 0:00:28.258 ************ 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 27 May 2022 17:44:19 +0000 (0:00:01.701) 0:00:29.959 ************ 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 27 May 2022 17:44:21 +0000 (0:00:01.548) 0:00:31.508 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:44:21 +0000 (0:00:00.102) 0:00:31.610 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: network-scripts-team-1.31-2.el8.x86_64", "Installed: network-scripts-10.00.15-1.el8.x86_64" ] } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:44:25 +0000 (0:00:04.108) 0:00:35.719 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:44:25 +0000 (0:00:00.113) 0:00:35.833 ************ 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 27 May 2022 17:44:25 +0000 (0:00:00.123) 0:00:35.956 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:44:25 +0000 (0:00:00.129) 0:00:36.086 ************ 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 27 May 2022 17:44:26 +0000 (0:00:00.942) 0:00:37.029 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-33937zfjx7r0u/tmpj9qtualc" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:44:27 +0000 (0:00:00.760) 0:00:37.789 ************ 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 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 stderr messages] *********************** Friday 27 May 2022 17:44:32 +0000 (0:00:04.971) 0:00:42.760 ************ 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 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] ************************ Friday 27 May 2022 17:44:32 +0000 (0:00:00.177) 0:00:42.937 ************ 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 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, '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 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 : Re-test connectivity] *********************** Friday 27 May 2022 17:44:32 +0000 (0:00:00.128) 0:00:43.066 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [Include network role] **************************************************** Friday 27 May 2022 17:44:32 +0000 (0:00:00.356) 0:00:43.422 ************ TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:44:33 +0000 (0:00:00.413) 0:00:43.836 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:44:33 +0000 (0:00:00.225) 0:00:44.061 ************ 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 27 May 2022 17:44:34 +0000 (0:00:00.831) 0:00:44.893 ************ 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 27 May 2022 17:44:36 +0000 (0:00:01.992) 0:00:46.886 ************ 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 27 May 2022 17:44:38 +0000 (0:00:01.562) 0:00:48.448 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:44:38 +0000 (0:00:00.095) 0:00:48.544 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:44:38 +0000 (0:00:00.149) 0:00:48.693 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:44:38 +0000 (0:00:00.105) 0:00:48.799 ************ 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 27 May 2022 17:44:38 +0000 (0:00:00.095) 0:00:48.894 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:44:38 +0000 (0:00:00.086) 0:00:48.981 ************ 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 27 May 2022 17:44:39 +0000 (0:00:00.528) 0:00:49.509 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-33937zfjx7r0u/tmp4ypgfock" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:44:39 +0000 (0:00:00.515) 0:00:50.025 ************ 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 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"' [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] *********************** Friday 27 May 2022 17:44:40 +0000 (0:00:00.694) 0:00:50.719 ************ 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 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\"'", "[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] ************************ Friday 27 May 2022 17:44:40 +0000 (0:00:00.122) 0:00:50.841 ************ 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 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[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 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\"'", "[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] *********************** Friday 27 May 2022 17:44:40 +0000 (0:00:00.167) 0:00:51.009 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [test] ******************************************************************** Friday 27 May 2022 17:44:40 +0000 (0:00:00.314) 0:00:51.323 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/provider/create_with_nm.yml for sut TASK [Include network role] **************************************************** Friday 27 May 2022 17:44:41 +0000 (0:00:00.171) 0:00:51.495 ************ TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:44:41 +0000 (0:00:00.172) 0:00:51.668 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/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 27 May 2022 17:44:41 +0000 (0:00:00.155) 0:00:51.823 ************ 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 27 May 2022 17:44:41 +0000 (0:00:00.478) 0:00:52.302 ************ 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 27 May 2022 17:44:43 +0000 (0:00:01.796) 0:00:54.098 ************ 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 27 May 2022 17:44:45 +0000 (0:00:01.491) 0:00:55.590 ************ ok: [sut] => {} MSG: Using network provider: nm TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:44:45 +0000 (0:00:00.092) 0:00:55.682 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 17:44:45 +0000 (0:00:00.141) 0:00:55.824 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:44:45 +0000 (0:00:00.094) 0:00:55.918 ************ ok: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Enable and start wpa_supplicant] ************ Friday 27 May 2022 17:44:45 +0000 (0:00:00.511) 0:00:56.430 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:44:46 +0000 (0:00:00.109) 0:00:56.539 ************ skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.network : Ensure initscripts network file dependency is present] *** Friday 27 May 2022 17:44:46 +0000 (0:00:00.088) 0:00:56.628 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:44:46 +0000 (0:00:00.098) 0:00:56.727 ************ 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": "nm" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b [004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b (not-active) TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 17:44:46 +0000 (0:00:00.658) 0:00:57.385 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b", "[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b (not-active)" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:44:47 +0000 (0:00:00.096) 0:00:57.481 ************ 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": "nm" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b\n[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b (not-active)\n", "stderr_lines": [ "[003] #0, state:up persistent_state:present, 'testnic1': add connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b", "[004] #0, state:up persistent_state:present, 'testnic1': up connection testnic1, 7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b (not-active)" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 17:44:47 +0000 (0:00:00.093) 0:00:57.574 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [asserts] ***************************************************************** Friday 27 May 2022 17:44:47 +0000 (0:00:00.301) 0:00:57.876 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:44:47 +0000 (0:00:00.167) 0:00:58.043 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_profile_stat.yml for sut TASK [Initialize NM profile exist and ansible_managed comment flag] ************ Friday 27 May 2022 17:44:47 +0000 (0:00:00.149) 0:00:58.193 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* Friday 27 May 2022 17:44:47 +0000 (0:00:00.084) 0:00:58.277 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653673486.3425338, "block_size": 4096, "blocks": 8, "ctime": 1653673486.2915354, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 566165, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1653673486.2915354, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-testnic1", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 313, "uid": 0, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 17:44:48 +0000 (0:00:00.303) 0:00:58.581 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 17:44:48 +0000 (0:00:00.097) 0:00:58.678 ************ ok: [sut] => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep testnic1 | grep /etc", "delta": "0:00:00.025697", "end": "2022-05-27 17:44:47.986760", "rc": 0, "start": "2022-05-27 17:44:47.961063" } STDOUT: testnic1 /etc/sysconfig/network-scripts/ifcfg-testnic1 TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 17:44:48 +0000 (0:00:00.326) 0:00:59.005 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true, "lsr_net_profile_exists": true }, "changed": false } TASK [Get the ansible_managed comment in ifcfg-testnic1] *********************** Friday 27 May 2022 17:44:48 +0000 (0:00:00.146) 0:00:59.152 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-testnic1] ******************** Friday 27 May 2022 17:44:48 +0000 (0:00:00.089) 0:00:59.241 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'testnic1' is present] ******************************* Friday 27 May 2022 17:44:48 +0000 (0:00:00.097) 0:00:59.339 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'testnic1' is present] ************ Friday 27 May 2022 17:44:48 +0000 (0:00:00.093) 0:00:59.432 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [conditional asserts] ***************************************************** Friday 27 May 2022 17:44:49 +0000 (0:00:00.092) 0:00:59.525 ************ TASK [Success in test 'I can manage a veth interface with NM after I managed it with initscripts.'] *** Friday 27 May 2022 17:44:49 +0000 (0:00:00.098) 0:00:59.624 ************ ok: [sut] => {} MSG: +++++ Success in test 'I can manage a veth interface with NM after I managed it with initscripts.' +++++ TASK [cleanup] ***************************************************************** Friday 27 May 2022 17:44:49 +0000 (0:00:00.105) 0:00:59.729 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/cleanup_profile+device.yml for sut TASK [Cleanup profile and device] ********************************************** Friday 27 May 2022 17:44:49 +0000 (0:00:00.170) 0:00:59.900 ************ 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.078575", "end": "2022-05-27 17:44:49.262901", "rc": 0, "start": "2022-05-27 17:44:49.184326" } STDOUT: Connection 'testnic1' (7b3ffd34-8ea0-4d51-a6c0-f4e2c61a417b) successfully deleted. PLAY RECAP ********************************************************************* sut : ok=86 changed=10 unreachable=0 failed=0 skipped=30 rescued=0 ignored=0 Friday 27 May 2022 17:44:49 +0000 (0:00:00.329) 0:01:00.230 ************ =============================================================================== Install NetworkManager -------------------------------------------------- 9.55s linux-system-roles.network : Configure networking connection profiles --- 4.97s linux-system-roles.network : Install packages --------------------------- 4.11s Create EPEL 8 ----------------------------------------------------------- 2.88s linux-system-roles.network : Check which services are running ----------- 1.99s Install iproute --------------------------------------------------------- 1.91s linux-system-roles.network : Check which packages are installed --------- 1.82s linux-system-roles.network : Check which services are running ----------- 1.82s linux-system-roles.network : Check which services are running ----------- 1.80s linux-system-roles.network : Check which services are running ----------- 1.70s linux-system-roles.network : Check which packages are installed --------- 1.56s linux-system-roles.network : Check which packages are installed --------- 1.55s linux-system-roles.network : Check which packages are installed --------- 1.49s linux-system-roles.network : Enable network service --------------------- 0.94s Create veth interface testnic1 ------------------------------------------ 0.87s Gathering Facts --------------------------------------------------------- 0.86s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.83s linux-system-roles.network : Enable and start NetworkManager ------------ 0.82s Enable EPEL 8 ----------------------------------------------------------- 0.82s linux-system-roles.network : Configure networking connection profiles --- 0.80s ---^---^---^---^---^--- # 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. ---^---^---^---^---^---