# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_ipv6.yml' with initscripts as provider] **** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:41:04 +0000 (0:00:00.035) 0:00:00.035 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:41:05 +0000 (0:00:01.005) 0:00:01.041 ************ 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:41:05 +0000 (0:00:00.038) 0:00:01.079 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:41:05 +0000 (0:00:00.055) 0:00:01.134 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 17:41:05 +0000 (0:00:00.085) 0:00:01.219 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.305283", "end": "2022-05-27 17:41:07.818493", "rc": 0, "start": "2022-05-27 17:41:05.513210" } 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:16 ago on Fri May 27 17:40:50 2022. epel-release-latest-8.noarch.rpm 726 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:41:08 +0000 (0:00:02.754) 0:00:03.974 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 17:41:08 +0000 (0:00:00.125) 0:00:04.100 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.526243", "end": "2022-05-27 17:41:08.753274", "rc": 0, "start": "2022-05-27 17:41:08.227031" } 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:41:09 +0000 (0:00:00.845) 0:00:04.945 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Friday 27 May 2022 17:41:09 +0000 (0:00:00.077) 0:00:05.022 ************ ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 17:41:09 +0000 (0:00:00.165) 0:00:05.187 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:41:10 +0000 (0:00:00.770) 0:00:05.958 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:41:10 +0000 (0:00:00.154) 0:00:06.113 ************ 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:41:10 +0000 (0:00:00.240) 0:00:06.353 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003468", "end": "2022-05-27 17:41:10.546411", "rc": 0, "start": "2022-05-27 17:41:10.542943" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:41:11 +0000 (0:00:00.389) 0:00:06.742 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:41:11 +0000 (0:00:00.143) 0:00:06.886 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:41:11 +0000 (0:00:00.140) 0:00:07.026 ************ 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:41:11 +0000 (0:00:00.177) 0:00:07.204 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 17:41:11 +0000 (0:00:00.071) 0:00:07.275 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 17:41:11 +0000 (0:00:00.141) 0:00:07.417 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:41:11 +0000 (0:00:00.192) 0:00:07.609 ************ 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:41:12 +0000 (0:00:00.260) 0:00:07.870 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003318", "end": "2022-05-27 17:41:12.168756", "rc": 0, "start": "2022-05-27 17:41:12.165438" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:41:12 +0000 (0:00:00.484) 0:00:08.354 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:41:12 +0000 (0:00:00.221) 0:00:08.576 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 17:41:13 +0000 (0:00:00.096) 0:00:08.673 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 27 May 2022 17:41:23 +0000 (0:00:10.210) 0:00:18.883 ************ 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.070977", "end": "2022-05-27 17:41:23.170056", "item": "ip link add veth0 type veth peer name peerveth0", "rc": 0, "start": "2022-05-27 17:41:23.099079" } changed: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerveth0", "up" ], "delta": "0:00:00.003994", "end": "2022-05-27 17:41:23.456601", "item": "ip link set peerveth0 up", "rc": 0, "start": "2022-05-27 17:41:23.452607" } changed: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "veth0", "up" ], "delta": "0:00:00.005734", "end": "2022-05-27 17:41:23.843817", "item": "ip link set veth0 up", "rc": 0, "start": "2022-05-27 17:41:23.838083" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 17:41:24 +0000 (0:00:01.201) 0:00:20.084 ************ changed: [sut] => { "changed": true, "cmd": [ "nmcli", "d", "set", "veth0", "managed", "true" ], "delta": "0:00:00.114796", "end": "2022-05-27 17:41:24.494985", "rc": 0, "start": "2022-05-27 17:41:24.380189" } TASK [Delete veth interface veth0] ********************************************* Friday 27 May 2022 17:41:25 +0000 (0:00:00.621) 0:00:20.706 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface veth0] ******************************************** Friday 27 May 2022 17:41:25 +0000 (0:00:00.205) 0:00:20.912 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 27 May 2022 17:41:25 +0000 (0:00:00.108) 0:00:21.021 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 27 May 2022 17:41:25 +0000 (0:00:00.201) 0:00:21.222 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 27 May 2022 17:41:25 +0000 (0:00:00.115) 0:00:21.338 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set up gateway ip on veth peer] ****************************************** Friday 27 May 2022 17:41:25 +0000 (0:00:00.103) 0:00:21.441 ************ changed: [sut] => { "changed": true, "cmd": "ip netns add ns1\nip link set peerveth0 netns ns1\nip netns exec ns1 ip -6 addr add 2001:db8::1/32 dev peerveth0\nip netns exec ns1 ip link set peerveth0 up\n", "delta": "0:00:00.043075", "end": "2022-05-27 17:41:25.744220", "rc": 0, "start": "2022-05-27 17:41:25.701145" } TASK [TEST: I can configure an interface with static ipv6 config] ************** Friday 27 May 2022 17:41:26 +0000 (0:00:00.480) 0:00:21.922 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:41:26 +0000 (0:00:00.142) 0:00:22.065 ************ 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:41:27 +0000 (0:00:00.617) 0:00:22.683 ************ 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:41:27 +0000 (0:00:00.572) 0:00:23.256 ************ 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:41:29 +0000 (0:00:02.111) 0:00:25.367 ************ 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:41:31 +0000 (0:00:02.047) 0:00:27.415 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:41:32 +0000 (0:00:00.213) 0:00:27.629 ************ 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:41:36 +0000 (0:00:04.052) 0:00:31.682 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:41:36 +0000 (0:00:00.145) 0:00:31.827 ************ 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:41:36 +0000 (0:00:00.186) 0:00:32.013 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:41:36 +0000 (0:00:00.155) 0:00:32.169 ************ 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:41:37 +0000 (0:00:01.441) 0:00:33.611 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-331896pm4e19l/tmpbmxzbrio" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:41:38 +0000 (0:00:00.875) 0:00:34.487 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/32", "2001:db8::3/32", "2001:db8::4/32" ], "auto6": false, "dhcp4": false, "gateway6": "2001:db8::1" }, "name": "veth0", "state": "up", "type": "ethernet" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0' [004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified) [005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\n"', 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:41:43 +0000 (0:00:04.192) 0:00:38.679 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', 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:41:43 +0000 (0:00:00.141) 0:00:38.821 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "ip": { "address": [ "2001:db8::2/32", "2001:db8::3/32", "2001:db8::4/32" ], "auto6": false, "dhcp4": false, "gateway6": "2001:db8::1" }, "name": "veth0", "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, 'veth0': add ifcfg-rh profile 'veth0'\n[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)\n[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', 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, 'veth0': add ifcfg-rh profile 'veth0'", "[004] #0, state:up persistent_state:present, 'veth0': up connection veth0 (is-modified)", "[005] #0, state:up persistent_state:present, 'veth0': call 'ifup veth0': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface veth0 IPv6 address(es) to leave the 'tentative' state\\n\"', 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:41:43 +0000 (0:00:00.191) 0:00:39.012 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:41:43 +0000 (0:00:00.534) 0:00:39.547 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:41:44 +0000 (0:00:00.297) 0:00:39.845 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface veth0] ******************************************** Friday 27 May 2022 17:41:44 +0000 (0:00:00.169) 0:00:40.015 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653673283.1674042, "block_size": 4096, "blocks": 0, "ctime": 1653673283.1674042, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21346, "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": 1653673283.1674042, "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 27 May 2022 17:41:44 +0000 (0:00:00.361) 0:00:40.376 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:41:44 +0000 (0:00:00.154) 0:00:40.531 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:41:45 +0000 (0:00:00.253) 0:00:40.785 ************ 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:41:45 +0000 (0:00:00.203) 0:00:40.988 ************ 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:41:45 +0000 (0:00:00.141) 0:00:41.129 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653673299.0791016, "block_size": 4096, "blocks": 8, "ctime": 1653673299.0781014, "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": 1653673299.0781014, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-veth0", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 231, "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:41:45 +0000 (0:00:00.458) 0:00:41.588 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 17:41:46 +0000 (0:00:00.094) 0:00:41.683 ************ fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep veth0 | grep /etc", "delta": "0:00:00.023817", "end": "2022-05-27 17:41:45.809528", "rc": 1, "start": "2022-05-27 17:41:45.785711" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** Friday 27 May 2022 17:41:46 +0000 (0:00:00.347) 0:00:42.031 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-veth0] ************************** Friday 27 May 2022 17:41:46 +0000 (0:00:00.169) 0:00:42.200 ************ changed: [sut] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-veth0" ], "delta": "0:00:00.003150", "end": "2022-05-27 17:41:46.315461", "rc": 0, "start": "2022-05-27 17:41:46.312311" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-veth0] *********************** Friday 27 May 2022 17:41:46 +0000 (0:00:00.343) 0:00:42.544 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'veth0' is present] ********************************** Friday 27 May 2022 17:41:47 +0000 (0:00:00.128) 0:00:42.672 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'veth0' is present] *************** Friday 27 May 2022 17:41:47 +0000 (0:00:00.094) 0:00:42.767 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ip address information] ********************************************** Friday 27 May 2022 17:41:47 +0000 (0:00:00.099) 0:00:42.866 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "addr", "show", "veth0" ], "delta": "0:00:00.003631", "end": "2022-05-27 17:41:46.974598", "rc": 0, "start": "2022-05-27 17:41:46.970967" } STDOUT: 4: veth0@if3: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 92:bf:9e:f4:33:25 brd ff:ff:ff:ff:ff:ff link-netns ns1 inet6 2001:db8::4/32 scope global valid_lft forever preferred_lft forever inet6 2001:db8::3/32 scope global valid_lft forever preferred_lft forever inet6 2001:db8::2/32 scope global valid_lft forever preferred_lft forever inet6 fe80::90bf:9eff:fef4:3325/64 scope link valid_lft forever preferred_lft forever TASK [Show ip_addr] ************************************************************ Friday 27 May 2022 17:41:47 +0000 (0:00:00.398) 0:00:43.265 ************ ok: [sut] => { "ip_addr.stdout": "4: veth0@if3: mtu 1500 qdisc noqueue state UP group default qlen 1000\n link/ether 92:bf:9e:f4:33:25 brd ff:ff:ff:ff:ff:ff link-netns ns1\n inet6 2001:db8::4/32 scope global \n valid_lft forever preferred_lft forever\n inet6 2001:db8::3/32 scope global \n valid_lft forever preferred_lft forever\n inet6 2001:db8::2/32 scope global \n valid_lft forever preferred_lft forever\n inet6 fe80::90bf:9eff:fef4:3325/64 scope link \n valid_lft forever preferred_lft forever" } TASK [Assert ipv6 addresses are correctly set] ********************************* Friday 27 May 2022 17:41:47 +0000 (0:00:00.192) 0:00:43.457 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get ipv6 routes] ********************************************************* Friday 27 May 2022 17:41:47 +0000 (0:00:00.131) 0:00:43.588 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "-6", "route" ], "delta": "0:00:00.003616", "end": "2022-05-27 17:41:47.732183", "rc": 0, "start": "2022-05-27 17:41:47.728567" } STDOUT: ::1 dev lo proto kernel metric 256 pref medium 2001:db8::/32 dev veth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev veth0 proto kernel metric 256 pref medium default via 2001:db8::1 dev veth0 metric 1 pref medium TASK [Show ipv6_route] ********************************************************* Friday 27 May 2022 17:41:48 +0000 (0:00:00.367) 0:00:43.956 ************ ok: [sut] => { "ipv6_route.stdout": "::1 dev lo proto kernel metric 256 pref medium\n2001:db8::/32 dev veth0 proto kernel metric 256 pref medium\nfe80::/64 dev eth0 proto kernel metric 256 pref medium\nfe80::/64 dev veth0 proto kernel metric 256 pref medium\ndefault via 2001:db8::1 dev veth0 metric 1 pref medium" } TASK [Assert default ipv6 route is set] **************************************** Friday 27 May 2022 17:41:48 +0000 (0:00:00.135) 0:00:44.091 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Test gateway can be pinged] ********************************************** Friday 27 May 2022 17:41:48 +0000 (0:00:00.111) 0:00:44.203 ************ changed: [sut] => { "changed": true, "cmd": [ "ping6", "-c1", "2001:db8::1" ], "delta": "0:00:00.005661", "end": "2022-05-27 17:41:48.315726", "rc": 0, "start": "2022-05-27 17:41:48.310065" } STDOUT: PING 2001:db8::1(2001:db8::1) 56 data bytes 64 bytes from 2001:db8::1: icmp_seq=1 ttl=64 time=0.070 ms --- 2001:db8::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.070/0.070/0.070/0.000 ms TASK [TEARDOWN: remove profiles.] ********************************************** Friday 27 May 2022 17:41:48 +0000 (0:00:00.318) 0:00:44.521 ************ ok: [sut] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 17:41:48 +0000 (0:00:00.091) 0:00:44.613 ************ 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:41:49 +0000 (0:00:00.164) 0:00:44.777 ************ 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:41:49 +0000 (0:00:00.674) 0:00:45.452 ************ 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:41:51 +0000 (0:00:01.976) 0:00:47.428 ************ 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:41:53 +0000 (0:00:01.543) 0:00:48.971 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 17:41:53 +0000 (0:00:00.094) 0:00:49.065 ************ 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:41:53 +0000 (0:00:00.180) 0:00:49.246 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 17:41:53 +0000 (0:00:00.099) 0:00:49.345 ************ 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:41:53 +0000 (0:00:00.148) 0:00:49.494 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 17:41:54 +0000 (0:00:00.190) 0:00:49.684 ************ 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:41:54 +0000 (0:00:00.566) 0:00:50.250 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-331896pm4e19l/tmpch8bhjgk" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 17:41:55 +0000 (0:00:00.548) 0:00:50.799 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active) [004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': 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, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0' TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 17:41:55 +0000 (0:00:00.681) 0:00:51.481 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': 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, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 17:41:55 +0000 (0:00:00.095) 0:00:51.577 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "veth0", "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, 'veth0': up connection veth0 (active)\n[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': 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, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'\n", "stderr_lines": [ "[003] #0, state:down persistent_state:absent, 'veth0': up connection veth0 (active)", "[004] #0, state:down persistent_state:absent, 'veth0': call 'ifdown veth0': 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, 'veth0': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-veth0'" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 17:41:56 +0000 (0:00:00.128) 0:00:51.706 ************ ok: [sut] => { "changed": false, "ping": "pong" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 17:41:56 +0000 (0:00:00.357) 0:00:52.063 ************ 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:41:56 +0000 (0:00:00.182) 0:00:52.246 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* Friday 27 May 2022 17:41:56 +0000 (0:00:00.125) 0:00:52.371 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include] ***************************************************************** Friday 27 May 2022 17:41:56 +0000 (0:00:00.109) 0:00:52.481 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 17:41:57 +0000 (0:00:00.227) 0:00:52.708 ************ 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:41:57 +0000 (0:00:00.204) 0:00:52.912 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003458", "end": "2022-05-27 17:41:57.022757", "rc": 0, "start": "2022-05-27 17:41:57.019299" } STDOUT: eth0 lo veth0 TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 17:41:57 +0000 (0:00:00.327) 0:00:53.240 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo", "veth0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 17:41:57 +0000 (0:00:00.195) 0:00:53.436 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo', 'veth0'] TASK [Install iproute] ********************************************************* Friday 27 May 2022 17:41:57 +0000 (0:00:00.134) 0:00:53.571 ************ ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface veth0] ********************************************* Friday 27 May 2022 17:41:59 +0000 (0:00:01.863) 0:00:55.434 ************ skipping: [sut] => (item=ip link add veth0 type veth peer name peerveth0) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add veth0 type veth peer name peerveth0", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set peerveth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerveth0 up", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ip link set veth0 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set veth0 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** Friday 27 May 2022 17:42:00 +0000 (0:00:00.194) 0:00:55.628 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface veth0] ********************************************* Friday 27 May 2022 17:42:00 +0000 (0:00:00.118) 0:00:55.747 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "link", "del", "veth0", "type", "veth" ], "delta": "0:00:00.011669", "end": "2022-05-27 17:41:59.872292", "rc": 0, "start": "2022-05-27 17:41:59.860623" } TASK [Create dummy interface veth0] ******************************************** Friday 27 May 2022 17:42:00 +0000 (0:00:00.361) 0:00:56.109 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface veth0] ******************************************** Friday 27 May 2022 17:42:00 +0000 (0:00:00.113) 0:00:56.223 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface veth0] ********************************************** Friday 27 May 2022 17:42:00 +0000 (0:00:00.095) 0:00:56.319 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface veth0] ********************************************** Friday 27 May 2022 17:42:00 +0000 (0:00:00.165) 0:00:56.484 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Clean up namespace] ****************************************************** Friday 27 May 2022 17:42:01 +0000 (0:00:00.152) 0:00:56.636 ************ changed: [sut] => { "changed": true, "cmd": [ "ip", "netns", "delete", "ns1" ], "delta": "0:00:00.007545", "end": "2022-05-27 17:42:00.753381", "rc": 0, "start": "2022-05-27 17:42:00.745836" } PLAY RECAP ********************************************************************* sut : ok=77 changed=15 unreachable=0 failed=0 skipped=26 rescued=0 ignored=1 Friday 27 May 2022 17:42:01 +0000 (0:00:00.276) 0:00:56.913 ************ =============================================================================== Install iproute -------------------------------------------------------- 10.18s linux-system-roles.network : Configure networking connection profiles --- 4.19s linux-system-roles.network : Install packages --------------------------- 4.05s Create EPEL 8 ----------------------------------------------------------- 2.75s linux-system-roles.network : Check which services are running ----------- 2.11s linux-system-roles.network : Check which packages are installed --------- 2.05s linux-system-roles.network : Check which services are running ----------- 1.98s Install iproute --------------------------------------------------------- 1.86s linux-system-roles.network : Check which packages are installed --------- 1.54s linux-system-roles.network : Enable network service --------------------- 1.44s Create veth interface veth0 --------------------------------------------- 1.21s Gathering Facts --------------------------------------------------------- 1.01s linux-system-roles.network : Ensure initscripts network file dependency is present --- 0.88s Enable EPEL 8 ----------------------------------------------------------- 0.85s Gathering Facts --------------------------------------------------------- 0.77s linux-system-roles.network : Configure networking connection profiles --- 0.68s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.67s linux-system-roles.network : Ensure ansible_facts used by role ---------- 0.62s Set up veth as managed by NetworkManager -------------------------------- 0.62s linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.57s ---^---^---^---^---^--- # 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 ---^---^---^---^---^---