# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Run playbook 'playbooks/tests_bridge.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:05 +0000 (0:00:00.032) 0:00:00.032 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:06 +0000 (0:00:00.894) 0:00:00.926 ************ 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 16:09:06 +0000 (0:00:00.069) 0:00:00.996 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:06 +0000 (0:00:00.054) 0:00:01.051 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/tasks/enable_epel.yml for sut TASK [Create EPEL 8] *********************************************************** Friday 27 May 2022 16:09:06 +0000 (0:00:00.061) 0:00:01.112 ************ changed: [sut] => { "changed": true, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": "0:00:02.337776", "end": "2022-05-27 16:09:08.373093", "rc": 0, "start": "2022-05-27 16:09:06.035317" } 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:15 ago on Fri May 27 16:08:51 2022. epel-release-latest-8.noarch.rpm 827 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 16:09:08 +0000 (0:00:02.692) 0:00:03.805 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** Friday 27 May 2022 16:09:08 +0000 (0:00:00.040) 0:00:03.845 ************ changed: [sut] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.521276", "end": "2022-05-27 16:09:09.195881", "rc": 0, "start": "2022-05-27 16:09:08.674605" } 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 16:09:09 +0000 (0:00:00.774) 0:00:04.620 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** Friday 27 May 2022 16:09:09 +0000 (0:00:00.029) 0:00:04.650 ************ ok: [sut] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } PLAY [Test configuring bridges] ************************************************ TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:09 +0000 (0:00:00.032) 0:00:04.683 ************ ok: [sut] TASK [set interface=LSR-TST-br31] ********************************************** Friday 27 May 2022 16:09:10 +0000 (0:00:00.583) 0:00:05.267 ************ ok: [sut] => { "ansible_facts": { "interface": "LSR-TST-br31" }, "changed": false } TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:10 +0000 (0:00:00.047) 0:00:05.314 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/show_interfaces.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 16:09:10 +0000 (0:00:00.045) 0:00:05.360 ************ 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 16:09:10 +0000 (0:00:00.064) 0:00:05.424 ************ ok: [sut] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003079", "end": "2022-05-27 16:09:10.252596", "rc": 0, "start": "2022-05-27 16:09:10.249517" } STDOUT: eth0 lo TASK [Set current_interfaces] ************************************************** Friday 27 May 2022 16:09:10 +0000 (0:00:00.251) 0:00:05.676 ************ ok: [sut] => { "ansible_facts": { "current_interfaces": [ "eth0", "lo" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* Friday 27 May 2022 16:09:10 +0000 (0:00:00.034) 0:00:05.711 ************ ok: [sut] => {} MSG: current_interfaces: ['eth0', 'lo'] TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:10 +0000 (0:00:00.034) 0:00:05.745 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 16:09:10 +0000 (0:00:00.038) 0:00:05.784 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface LSR-TST-br31] ************************************* Friday 27 May 2022 16:09:10 +0000 (0:00:00.042) 0:00:05.827 ************ ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** Friday 27 May 2022 16:09:11 +0000 (0:00:00.389) 0:00:06.216 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Add test bridge] ********************************************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:11 +0000 (0:00:00.083) 0:00:06.300 ************ ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:09:11 +0000 (0:00:00.589) 0:00:06.889 ************ 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 16:09:12 +0000 (0:00:00.177) 0:00:07.067 ************ 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 16:09:12 +0000 (0:00:00.410) 0:00:07.478 ************ 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 16:09:14 +0000 (0:00:01.836) 0:00:09.315 ************ 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 16:09:16 +0000 (0:00:01.806) 0:00:11.121 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:09:16 +0000 (0:00:00.083) 0:00:11.204 ************ changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: network-scripts-10.00.15-1.el8.x86_64", "Installed: network-scripts-team-1.31-2.el8.x86_64" ] } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** Friday 27 May 2022 16:09:27 +0000 (0:00:11.145) 0:00:22.350 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:09:27 +0000 (0:00:00.089) 0:00:22.440 ************ 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 16:09:27 +0000 (0:00:00.122) 0:00:22.563 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:09:27 +0000 (0:00:00.077) 0:00:22.640 ************ 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 16:09:28 +0000 (0:00:01.121) 0:00:23.762 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-11928m766ol_r/tmp0_l0scq8" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:09:29 +0000 (0:00:00.473) 0:00:24.235 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [003] #0, state:up persistent_state:present, 'LSR-TST-br31': add ifcfg-rh profile 'LSR-TST-br31' [004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31 (not-active) [005] #0, state:up persistent_state:present, 'LSR-TST-br31': call 'ifup LSR-TST-br31': rc=0, out='b"INFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 IPv6 address(es) to leave the 'tentative' state\nINFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 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 16:09:32 +0000 (0:00:03.279) 0:00:27.514 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add ifcfg-rh profile 'LSR-TST-br31'", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31 (not-active)", "[005] #0, state:up persistent_state:present, 'LSR-TST-br31': call 'ifup LSR-TST-br31': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 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 16:09:32 +0000 (0:00:00.090) 0:00:27.605 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "interface_name": "LSR-TST-br31", "ip": { "auto6": true, "dhcp4": false }, "name": "LSR-TST-br31", "state": "up", "type": "bridge" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[003] #0, state:up persistent_state:present, 'LSR-TST-br31': add ifcfg-rh profile 'LSR-TST-br31'\n[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31 (not-active)\n[005] #0, state:up persistent_state:present, 'LSR-TST-br31': call 'ifup LSR-TST-br31': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 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, 'LSR-TST-br31': add ifcfg-rh profile 'LSR-TST-br31'", "[004] #0, state:up persistent_state:present, 'LSR-TST-br31': up connection LSR-TST-br31 (not-active)", "[005] #0, state:up persistent_state:present, 'LSR-TST-br31': call 'ifup LSR-TST-br31': rc=0, out='b\"INFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 IPv6 address(es) to leave the 'tentative' state\\nINFO : [ipv6_wait_tentative] Waiting for interface LSR-TST-br31 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 16:09:32 +0000 (0:00:00.079) 0:00:27.685 ************ ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Run the tasklist tasks/assert_device_present.yml] ************************ TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:33 +0000 (0:00:00.427) 0:00:28.113 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:33 +0000 (0:00:00.641) 0:00:28.754 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 16:09:33 +0000 (0:00:00.128) 0:00:28.883 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface LSR-TST-br31] ************************************* Friday 27 May 2022 16:09:34 +0000 (0:00:00.140) 0:00:29.023 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667769.8937674, "block_size": 4096, "blocks": 0, "ctime": 1653667769.8937674, "dev": 20, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 21161, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/LSR-TST-br31", "lnk_target": "../../devices/virtual/net/LSR-TST-br31", "mode": "0777", "mtime": 1653667769.8937674, "nlink": 1, "path": "/sys/class/net/LSR-TST-br31", "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 LSR-TST-br31 is present] *************************** Friday 27 May 2022 16:09:34 +0000 (0:00:00.301) 0:00:29.325 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Run the tasklist tasks/assert_profile_present.yml] *********************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:34 +0000 (0:00:00.094) 0:00:29.419 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:35 +0000 (0:00:00.639) 0:00:30.058 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_present.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 16:09:35 +0000 (0:00:00.130) 0:00:30.189 ************ 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 16:09:35 +0000 (0:00:00.183) 0:00:30.372 ************ 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 16:09:35 +0000 (0:00:00.090) 0:00:30.463 ************ ok: [sut] => { "changed": false, "stat": { "atime": 1653667769.4601264, "block_size": 4096, "blocks": 8, "ctime": 1653667769.4361272, "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": 1653667769.4361272, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 129, "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 16:09:35 +0000 (0:00:00.293) 0:00:30.757 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 16:09:35 +0000 (0:00:00.087) 0:00:30.844 ************ fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.098163", "end": "2022-05-27 16:09:35.763553", "rc": 1, "start": "2022-05-27 16:09:35.665390" } 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 16:09:36 +0000 (0:00:00.388) 0:00:31.233 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-LSR-TST-br31] ******************* Friday 27 May 2022 16:09:36 +0000 (0:00:00.088) 0:00:31.321 ************ changed: [sut] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31" ], "delta": "0:00:00.002826", "end": "2022-05-27 16:09:36.148129", "rc": 0, "start": "2022-05-27 16:09:36.145303" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** Friday 27 May 2022 16:09:36 +0000 (0:00:00.296) 0:00:31.618 ************ ok: [sut] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'LSR-TST-br31' is present] *************************** Friday 27 May 2022 16:09:36 +0000 (0:00:00.091) 0:00:31.709 ************ ok: [sut] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'LSR-TST-br31' is present] ******** Friday 27 May 2022 16:09:36 +0000 (0:00:00.086) 0:00:31.795 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Set {{ profile }} down] ************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:37 +0000 (0:00:00.097) 0:00:31.893 ************ ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:09:37 +0000 (0:00:00.630) 0:00:32.524 ************ 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 16:09:37 +0000 (0:00:00.178) 0:00:32.703 ************ 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 16:09:38 +0000 (0:00:00.450) 0:00:33.153 ************ 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 16:09:40 +0000 (0:00:01.800) 0:00:34.954 ************ 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 16:09:41 +0000 (0:00:01.518) 0:00:36.473 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:09:41 +0000 (0:00:00.085) 0:00:36.558 ************ 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 16:09:41 +0000 (0:00:00.138) 0:00:36.697 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:09:41 +0000 (0:00:00.088) 0:00:36.786 ************ 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 16:09:41 +0000 (0:00:00.079) 0:00:36.865 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:09:42 +0000 (0:00:00.077) 0:00:36.942 ************ 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 16:09:42 +0000 (0:00:00.490) 0:00:37.433 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-11928m766ol_r/tmplom96s32" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:09:43 +0000 (0:00:00.469) 0:00:37.903 ************ ok: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false } STDERR: [002] #0, state:down persistent_state:present, 'LSR-TST-br31': down connection LSR-TST-br31 skipped because not active TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 16:09:43 +0000 (0:00:00.491) 0:00:38.394 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:down persistent_state:present, 'LSR-TST-br31': down connection LSR-TST-br31 skipped because not active" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 16:09:43 +0000 (0:00:00.083) 0:00:38.478 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": false, "failed": false, "stderr": "[002] #0, state:down persistent_state:present, 'LSR-TST-br31': down connection LSR-TST-br31 skipped because not active\n", "stderr_lines": [ "[002] #0, state:down persistent_state:present, 'LSR-TST-br31': down connection LSR-TST-br31 skipped because not active" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 16:09:43 +0000 (0:00:00.086) 0:00:38.565 ************ ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Delete the interface] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:43 +0000 (0:00:00.285) 0:00:38.851 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:44 +0000 (0:00:00.674) 0:00:39.525 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/delete_interface.yml for sut TASK [remove test interface if necessary] ************************************** Friday 27 May 2022 16:09:44 +0000 (0:00:00.132) 0:00:39.658 ************ ok: [sut] => { "changed": false, "cmd": [ "ip", "link", "del", "LSR-TST-br31" ], "delta": "0:00:00.019040", "end": "2022-05-27 16:09:44.506235", "rc": 0, "start": "2022-05-27 16:09:44.487195" } PLAY [Remove {{ profile }}] **************************************************** TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:45 +0000 (0:00:00.329) 0:00:39.987 ************ ok: [sut] TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** Friday 27 May 2022 16:09:45 +0000 (0:00:00.616) 0:00:40.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 16:09:45 +0000 (0:00:00.133) 0:00:40.738 ************ 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 16:09:46 +0000 (0:00:00.445) 0:00:41.183 ************ 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 16:09:48 +0000 (0:00:01.776) 0:00:42.960 ************ 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 16:09:49 +0000 (0:00:01.487) 0:00:44.447 ************ ok: [sut] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Install packages] *************************** Friday 27 May 2022 16:09:49 +0000 (0:00:00.084) 0:00:44.531 ************ 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 16:09:49 +0000 (0:00:00.136) 0:00:44.668 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ Friday 27 May 2022 16:09:49 +0000 (0:00:00.092) 0:00:44.760 ************ 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 16:09:49 +0000 (0:00:00.079) 0:00:44.839 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* Friday 27 May 2022 16:09:50 +0000 (0:00:00.076) 0:00:44.915 ************ 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 16:09:50 +0000 (0:00:00.553) 0:00:45.469 ************ ok: [sut] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/home/jenkins/.ansible/tmp/ansible-local-11928m766ol_r/tmpn0p47phg" } TASK [linux-system-roles.network : Configure networking connection profiles] *** Friday 27 May 2022 16:09:51 +0000 (0:00:00.487) 0:00:45.956 ************ changed: [sut] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [002] #0, state:None persistent_state:absent, 'LSR-TST-br31': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31' TASK [linux-system-roles.network : Show stderr messages] *********************** Friday 27 May 2022 16:09:51 +0000 (0:00:00.486) 0:00:46.442 ************ ok: [sut] => { "__network_connections_result.stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'LSR-TST-br31': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31'" ] } TASK [linux-system-roles.network : Show debug messages] ************************ Friday 27 May 2022 16:09:51 +0000 (0:00:00.087) 0:00:46.530 ************ ok: [sut] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "LSR-TST-br31", "persistent_state": "absent" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[002] #0, state:None persistent_state:absent, 'LSR-TST-br31': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31'\n", "stderr_lines": [ "[002] #0, state:None persistent_state:absent, 'LSR-TST-br31': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-LSR-TST-br31'" ] } } TASK [linux-system-roles.network : Re-test connectivity] *********************** Friday 27 May 2022 16:09:51 +0000 (0:00:00.091) 0:00:46.622 ************ ok: [sut] => { "changed": false, "ping": "pong" } PLAY [Run the tasklist tasks/assert_profile_absent.yml] ************************ TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:52 +0000 (0:00:00.301) 0:00:46.924 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:52 +0000 (0:00:00.616) 0:00:47.540 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_profile_absent.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 16:09:52 +0000 (0:00:00.135) 0:00:47.676 ************ 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 16:09:52 +0000 (0:00:00.214) 0:00:47.891 ************ 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 16:09:53 +0000 (0:00:00.079) 0:00:47.970 ************ ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set NM profile exist flag based on the profile files] ******************** Friday 27 May 2022 16:09:53 +0000 (0:00:00.288) 0:00:48.258 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get NM profile info] ***************************************************** Friday 27 May 2022 16:09:53 +0000 (0:00:00.083) 0:00:48.342 ************ fatal: [sut]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep LSR-TST-br31 | grep /etc", "delta": "0:00:00.022382", "end": "2022-05-27 16:09:53.187351", "rc": 1, "start": "2022-05-27 16:09:53.164969" } 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 16:09:53 +0000 (0:00:00.317) 0:00:48.659 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-LSR-TST-br31] ******************* Friday 27 May 2022 16:09:53 +0000 (0:00:00.086) 0:00:48.746 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify the ansible_managed comment in ifcfg-LSR-TST-br31] **************** Friday 27 May 2022 16:09:53 +0000 (0:00:00.080) 0:00:48.827 ************ skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert that profile 'LSR-TST-br31' is absent] **************************** Friday 27 May 2022 16:09:54 +0000 (0:00:00.079) 0:00:48.906 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY [Run the tasklist tasks/assert_device_absent.yml] ************************* TASK [Gathering Facts] ********************************************************* Friday 27 May 2022 16:09:54 +0000 (0:00:00.094) 0:00:49.001 ************ ok: [sut] TASK [include_tasks] *********************************************************** Friday 27 May 2022 16:09:54 +0000 (0:00:00.627) 0:00:49.629 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/assert_device_absent.yml for sut TASK [include] ***************************************************************** Friday 27 May 2022 16:09:54 +0000 (0:00:00.132) 0:00:49.762 ************ included: /WORKDIR/dist-git-network-bond_fix-IHMNac/tests/playbooks/tasks/get_interface_stat.yml for sut TASK [Get stat for interface LSR-TST-br31] ************************************* Friday 27 May 2022 16:09:55 +0000 (0:00:00.186) 0:00:49.949 ************ ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [assert that interface LSR-TST-br31 is absent] **************************** Friday 27 May 2022 16:09:55 +0000 (0:00:00.305) 0:00:50.254 ************ ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=85 changed=7 unreachable=0 failed=0 skipped=19 rescued=0 ignored=2 Friday 27 May 2022 16:09:55 +0000 (0:00:00.031) 0:00:50.286 ************ =============================================================================== linux-system-roles.network : Install packages -------------------------- 11.15s linux-system-roles.network : Configure networking connection profiles --- 3.28s Create EPEL 8 ----------------------------------------------------------- 2.69s linux-system-roles.network : Check which services are running ----------- 1.84s linux-system-roles.network : Check which packages are installed --------- 1.81s linux-system-roles.network : Check which services are running ----------- 1.80s linux-system-roles.network : Check which services are running ----------- 1.78s linux-system-roles.network : Check which packages are installed --------- 1.52s linux-system-roles.network : Check which packages are installed --------- 1.49s linux-system-roles.network : Enable network service --------------------- 1.12s Gathering Facts --------------------------------------------------------- 0.89s Enable EPEL 8 ----------------------------------------------------------- 0.77s Gathering Facts --------------------------------------------------------- 0.67s Gathering Facts --------------------------------------------------------- 0.64s Gathering Facts --------------------------------------------------------- 0.64s Gathering Facts --------------------------------------------------------- 0.63s Gathering Facts --------------------------------------------------------- 0.63s Gathering Facts --------------------------------------------------------- 0.62s Gathering Facts --------------------------------------------------------- 0.62s 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 ---^---^---^---^---^---