ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpcwsggv7g executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 03 August 2022 15:53:39 +0000 (0:00:00.018) 0:00:00.018 ****** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:53:40 +0000 (0:00:01.270) 0:00:01.288 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.27s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpd6fsfezc/tests/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpd6fsfezc/tests/_backup.yml:6 Wednesday 03 August 2022 15:53:40 +0000 (0:00:00.014) 0:00:01.303 ****** ok: [/cache/rhel-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659542018.8577783, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659542017.8557782, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539931.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "98781537", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpd6fsfezc/tests/_backup.yml:13 Wednesday 03 August 2022 15:53:41 +0000 (0:00:00.495) 0:00:01.799 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 752168, 'dev': 64515, 'nlink': 1, 'atime': 1659542018.8577783, 'mtime': 1659539931.0, 'ctime': 1659542017.8557782, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '98781537', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659542018.8577783, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659542017.8557782, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659539931.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "98781537", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpd6fsfezc/tests/_backup.yml:19 Wednesday 03 August 2022 15:53:41 +0000 (0:00:00.036) 0:00:01.835 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.004748", "end": "2022-08-03 11:53:40.736090", "rc": 0, "start": "2022-08-03 11:53:40.731342" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 15:53:41 +0000 (0:00:00.468) 0:00:02.304 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.27s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpd6fsfezc/tests/_backup.yml:6 ------------------------------------------ Back up system files ---------------------------------------------------- 0.47s /tmp/tmpd6fsfezc/tests/_backup.yml:19 ----------------------------------------- Check if system files exist --------------------------------------------- 0.04s /tmp/tmpd6fsfezc/tests/_backup.yml:13 ----------------------------------------- PLAYBOOK: tests_vlan_mtu_initscripts.yml *************************************** 2 plays in /tmp/tmpd6fsfezc/tests/tests_vlan_mtu_initscripts.yml PLAY [Run playbook 'playbooks/tests_vlan_mtu.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/tests_vlan_mtu_initscripts.yml:4 Wednesday 03 August 2022 15:53:41 +0000 (0:00:00.037) 0:00:02.341 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tests_vlan_mtu_initscripts.yml:7 Wednesday 03 August 2022 15:53:42 +0000 (0:00:01.060) 0:00:03.402 ****** included: /tmp/tmpd6fsfezc/tests/tasks/el_repo_setup.yml for /cache/rhel-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 15:53:42 +0000 (0:00:00.026) 0:00:03.428 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 15:53:42 +0000 (0:00:00.020) 0:00:03.449 ****** included: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml for /cache/rhel-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:4 Wednesday 03 August 2022 15:53:42 +0000 (0:00:00.030) 0:00:03.479 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:11 Wednesday 03 August 2022 15:53:43 +0000 (0:00:00.362) 0:00:03.841 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:17 Wednesday 03 August 2022 15:53:43 +0000 (0:00:00.022) 0:00:03.863 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.403272", "end": "2022-08-03 11:53:43.070382", "rc": 0, "start": "2022-08-03 11:53:42.667110" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:26 Wednesday 03 August 2022 15:53:44 +0000 (0:00:00.768) 0:00:04.631 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpd6fsfezc/tests/tests_vlan_mtu_initscripts.yml:8 Wednesday 03 August 2022 15:53:44 +0000 (0:00:00.019) 0:00:04.651 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:3 Wednesday 03 August 2022 15:53:44 +0000 (0:00:00.044) 0:00:04.696 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:9 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.877) 0:00:05.573 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.055) 0:00:05.629 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.047) 0:00:05.677 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003783", "end": "2022-08-03 11:53:44.503286", "rc": 0, "start": "2022-08-03 11:53:44.499503" } STDOUT: bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.391) 0:00:06.068 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.080) 0:00:06.149 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'rpltstbr', 'team0'] TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:10 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.067) 0:00:06.216 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml for /cache/rhel-8.qcow2 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:3 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.052) 0:00:06.269 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:8 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.030) 0:00:06.299 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:13 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.030) 0:00:06.330 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.044) 0:00:06.375 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:53:45 +0000 (0:00:00.044) 0:00:06.419 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003282", "end": "2022-08-03 11:53:45.263787", "rc": 0, "start": "2022-08-03 11:53:45.260505" } STDOUT: bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:53:46 +0000 (0:00:00.404) 0:00:06.824 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:53:46 +0000 (0:00:00.044) 0:00:06.868 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'rpltstbr', 'team0'] TASK [Install iproute] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:15 Wednesday 03 August 2022 15:53:46 +0000 (0:00:00.042) 0:00:06.911 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr101] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:21 Wednesday 03 August 2022 15:53:48 +0000 (0:00:01.699) 0:00:08.610 ****** changed: [/cache/rhel-8.qcow2] => (item=ip link add lsr101 type veth peer name peerlsr101) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "lsr101", "type", "veth", "peer", "name", "peerlsr101" ], "delta": "0:00:00.007849", "end": "2022-08-03 11:53:47.418570", "item": "ip link add lsr101 type veth peer name peerlsr101", "rc": 0, "start": "2022-08-03 11:53:47.410721" } changed: [/cache/rhel-8.qcow2] => (item=ip link set peerlsr101 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerlsr101", "up" ], "delta": "0:00:00.006524", "end": "2022-08-03 11:53:47.757508", "item": "ip link set peerlsr101 up", "rc": 0, "start": "2022-08-03 11:53:47.750984" } changed: [/cache/rhel-8.qcow2] => (item=ip link set lsr101 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "lsr101", "up" ], "delta": "0:00:00.004571", "end": "2022-08-03 11:53:48.096900", "item": "ip link set lsr101 up", "rc": 0, "start": "2022-08-03 11:53:48.092329" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:29 Wednesday 03 August 2022 15:53:49 +0000 (0:00:01.050) 0:00:09.661 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "nmcli", "d", "set", "lsr101", "managed", "true" ], "delta": "0:00:00.019920", "end": "2022-08-03 11:53:48.491502", "rc": 0, "start": "2022-08-03 11:53:48.471582" } TASK [Delete veth interface lsr101] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:36 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.394) 0:00:10.055 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface lsr101] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:42 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.039) 0:00:10.095 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr101] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:47 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.036) 0:00:10.131 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr101] ********************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:53 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.031) 0:00:10.163 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr101] ********************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:58 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.035) 0:00:10.198 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:13 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.034) 0:00:10.232 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.051) 0:00:10.284 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface lsr101] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:53:49 +0000 (0:00:00.044) 0:00:10.329 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659542027.4138563, "block_size": 4096, "blocks": 0, "ctime": 1659542027.4138563, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 39706, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr101", "lnk_target": "../../devices/virtual/net/lsr101", "mode": "0777", "mtime": 1659542027.4138563, "nlink": 1, "path": "/sys/class/net/lsr101", "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 lsr101 is present] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 15:53:50 +0000 (0:00:00.369) 0:00:10.699 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure the MTU for a vlan interface without autoconnect.] *** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:14 Wednesday 03 August 2022 15:53:50 +0000 (0:00:00.046) 0:00:10.745 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 15:53:50 +0000 (0:00:00.040) 0:00:10.786 ****** included: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:53:50 +0000 (0:00:00.042) 0:00:10.828 ****** ok: [/cache/rhel-8.qcow2] => { "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] *********** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 15:53:50 +0000 (0:00:00.510) 0:00:11.338 ****** ok: [/cache/rhel-8.qcow2] => { "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] ********* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 15:53:52 +0000 (0:00:01.708) 0:00:13.046 ****** ok: [/cache/rhel-8.qcow2] => { "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] ********************* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:53:54 +0000 (0:00:01.467) 0:00:14.513 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.059) 0:00:14.573 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.050) 0:00:14.623 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.053) 0:00:14.676 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.077) 0:00:14.753 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.051) 0:00:14.804 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.055) 0:00:14.860 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.055) 0:00:14.915 ****** skipping: [/cache/rhel-8.qcow2] => { "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] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.053) 0:00:14.969 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 15:53:54 +0000 (0:00:00.048) 0:00:15.018 ****** ok: [/cache/rhel-8.qcow2] => { "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] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 15:53:55 +0000 (0:00:00.832) 0:00:15.850 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-40982kpk1e5og/tmpmt56xuq_" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 15:53:55 +0000 (0:00:00.398) 0:00:16.249 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1492, "name": "lsr101", "state": "up", "type": "ethernet" }, { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1280, "name": "lsr101.90", "parent": "lsr101", "state": "up", "type": "vlan", "vlan_id": 90 } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101' [006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90' [007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified) [008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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"' [009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active) [010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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 : Configure networking state] ***************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 15:53:56 +0000 (0:00:00.879) 0:00:17.128 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 15:53:56 +0000 (0:00:00.052) 0:00:17.181 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101'", "[006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90'", "[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified)", "[008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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\"'", "[009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active)", "[010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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 for the network_connections] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 15:53:56 +0000 (0:00:00.061) 0:00:17.242 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1492, "name": "lsr101", "state": "up", "type": "ethernet" }, { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1280, "name": "lsr101.90", "parent": "lsr101", "state": "up", "type": "vlan", "vlan_id": 90 } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101'\n[006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90'\n[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified)\n[008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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[009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active)\n[010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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": [ "[005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101'", "[006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90'", "[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified)", "[008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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\"'", "[009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active)", "[010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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 for the network_state] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 15:53:56 +0000 (0:00:00.059) 0:00:17.301 ****** skipping: [/cache/rhel-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 15:53:56 +0000 (0:00:00.052) 0:00:17.354 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:42 Wednesday 03 August 2022 15:53:57 +0000 (0:00:00.546) 0:00:17.901 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 15:53:57 +0000 (0:00:00.119) 0:00:18.020 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface lsr101.90] **************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 15:53:57 +0000 (0:00:00.074) 0:00:18.095 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659542035.4660294, "block_size": 4096, "blocks": 0, "ctime": 1659542035.4660294, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 39834, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr101.90", "lnk_target": "../../devices/virtual/net/lsr101.90", "mode": "0777", "mtime": 1659542035.4660294, "nlink": 1, "path": "/sys/class/net/lsr101.90", "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 lsr101.90 is present] ****************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 15:53:57 +0000 (0:00:00.391) 0:00:18.486 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:45 Wednesday 03 August 2022 15:53:58 +0000 (0:00:00.063) 0:00:18.550 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=lsr101) included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=lsr101.90) TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:53:58 +0000 (0:00:00.086) 0:00:18.637 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml for /cache/rhel-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 15:53:58 +0000 (0:00:00.072) 0:00:18.709 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 15:53:58 +0000 (0:00:00.060) 0:00:18.769 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659542035.3617783, "block_size": 4096, "blocks": 8, "ctime": 1659542035.3447783, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17574582, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659542035.3447783, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-lsr101", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 114, "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] ******************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 15:53:58 +0000 (0:00:00.393) 0:00:19.162 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:53:58 +0000 (0:00:00.061) 0:00:19.224 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr101 | grep /etc", "delta": "0:00:00.021106", "end": "2022-08-03 11:53:58.115493", "rc": 1, "start": "2022-08-03 11:53:58.094387" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.470) 0:00:19.694 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-lsr101] ************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.048) 0:00:19.743 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-lsr101" ], "delta": "0:00:00.003147", "end": "2022-08-03 11:53:58.557661", "rc": 0, "start": "2022-08-03 11:53:58.554514" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-lsr101] ********************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.401) 0:00:20.145 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'lsr101' is present] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.071) 0:00:20.216 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'lsr101' is present] ************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.067) 0:00:20.284 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.063) 0:00:20.347 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml for /cache/rhel-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.072) 0:00:20.420 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 15:53:59 +0000 (0:00:00.060) 0:00:20.481 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659542035.4377782, "block_size": 4096, "blocks": 8, "ctime": 1659542035.3447783, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17716606, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659542035.3447783, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-lsr101.90", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 144, "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] ******************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 15:54:00 +0000 (0:00:00.409) 0:00:20.890 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 15:54:00 +0000 (0:00:00.162) 0:00:21.052 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr101.90 | grep /etc", "delta": "0:00:00.021633", "end": "2022-08-03 11:53:59.889220", "rc": 1, "start": "2022-08-03 11:53:59.867587" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 15:54:00 +0000 (0:00:00.417) 0:00:21.470 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-lsr101.90] ********************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 15:54:01 +0000 (0:00:00.054) 0:00:21.525 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-lsr101.90" ], "delta": "0:00:00.003040", "end": "2022-08-03 11:54:00.350311", "rc": 0, "start": "2022-08-03 11:54:00.347271" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-lsr101.90] ******************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 15:54:01 +0000 (0:00:00.405) 0:00:21.930 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'lsr101.90' is present] ****************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 15:54:01 +0000 (0:00:00.067) 0:00:21.998 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'lsr101.90' is present] *********** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 15:54:01 +0000 (0:00:00.061) 0:00:22.059 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:52 Wednesday 03 August 2022 15:54:01 +0000 (0:00:00.062) 0:00:22.122 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ################################################## TASK [linux-system-roles.network : Ensure ansible_facts used by role] ********** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:4 Wednesday 03 August 2022 15:54:01 +0000 (0:00:00.061) 0:00:22.183 ****** included: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 Wednesday 03 August 2022 15:54:01 +0000 (0:00:00.077) 0:00:22.260 ****** ok: [/cache/rhel-8.qcow2] => { "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] *********** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Wednesday 03 August 2022 15:54:02 +0000 (0:00:00.572) 0:00:22.832 ****** ok: [/cache/rhel-8.qcow2] => { "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] ********* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Wednesday 03 August 2022 15:54:03 +0000 (0:00:01.632) 0:00:24.464 ****** ok: [/cache/rhel-8.qcow2] => { "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] ********************* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:7 Wednesday 03 August 2022 15:54:05 +0000 (0:00:01.126) 0:00:25.591 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts TASK [linux-system-roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:11 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.063) 0:00:25.654 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:19 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.085) 0:00:25.740 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install packages] *************************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:30 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.053) 0:00:25.793 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:38 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.078) 0:00:25.871 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:51 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.053) 0:00:25.925 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:65 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.051) 0:00:25.977 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable and start NetworkManager] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:79 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.056) 0:00:26.033 ****** skipping: [/cache/rhel-8.qcow2] => { "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] ************ task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:90 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.050) 0:00:26.084 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Enable network service] ********************* task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 Wednesday 03 August 2022 15:54:05 +0000 (0:00:00.048) 0:00:26.133 ****** ok: [/cache/rhel-8.qcow2] => { "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] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:107 Wednesday 03 August 2022 15:54:06 +0000 (0:00:00.539) 0:00:26.673 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-40982kpk1e5og/tmpknas4mo1" } TASK [linux-system-roles.network : Configure networking connection profiles] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 Wednesday 03 August 2022 15:54:06 +0000 (0:00:00.401) 0:00:27.074 ****** redirecting (type: action) ansible.builtin.network to ansible.netcommon.network changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr101", "persistent_state": "absent", "state": "down" }, { "name": "lsr101.90", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active) [006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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"' [007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active [008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101' [009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90' TASK [linux-system-roles.network : Configure networking state] ***************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:128 Wednesday 03 August 2022 15:54:07 +0000 (0:00:00.661) 0:00:27.735 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:134 Wednesday 03 August 2022 15:54:07 +0000 (0:00:00.054) 0:00:27.789 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active)", "[006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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\"'", "[007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active", "[008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101'", "[009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90'" ] } TASK [linux-system-roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:138 Wednesday 03 August 2022 15:54:07 +0000 (0:00:00.062) 0:00:27.852 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr101", "persistent_state": "absent", "state": "down" }, { "name": "lsr101.90", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active)\n[006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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[007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active\n[008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101'\n[009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90'\n", "stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active)", "[006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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\"'", "[007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active", "[008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101'", "[009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90'" ] } } TASK [linux-system-roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:143 Wednesday 03 August 2022 15:54:07 +0000 (0:00:00.061) 0:00:27.914 ****** skipping: [/cache/rhel-8.qcow2] => {} TASK [linux-system-roles.network : Re-test connectivity] *********************** task path: /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 Wednesday 03 August 2022 15:54:07 +0000 (0:00:00.056) 0:00:27.970 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:67 Wednesday 03 August 2022 15:54:07 +0000 (0:00:00.395) 0:00:28.365 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml for /cache/rhel-8.qcow2 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:3 Wednesday 03 August 2022 15:54:07 +0000 (0:00:00.089) 0:00:28.455 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:8 Wednesday 03 August 2022 15:54:08 +0000 (0:00:00.049) 0:00:28.504 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:13 Wednesday 03 August 2022 15:54:08 +0000 (0:00:00.050) 0:00:28.555 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 15:54:08 +0000 (0:00:00.076) 0:00:28.631 ****** included: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 15:54:08 +0000 (0:00:00.110) 0:00:28.741 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003179", "end": "2022-08-03 11:54:07.558865", "rc": 0, "start": "2022-08-03 11:54:07.555686" } STDOUT: bonding_masters eth0 lo lsr101 lsr101.90 peerlsr101 rpltstbr team0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 15:54:08 +0000 (0:00:00.395) 0:00:29.137 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "lsr101", "lsr101.90", "peerlsr101", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 15:54:08 +0000 (0:00:00.061) 0:00:29.199 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'lsr101', 'lsr101.90', 'peerlsr101', 'rpltstbr', 'team0'] TASK [Install iproute] ********************************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:15 Wednesday 03 August 2022 15:54:08 +0000 (0:00:00.059) 0:00:29.258 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr101] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:21 Wednesday 03 August 2022 15:54:10 +0000 (0:00:01.457) 0:00:30.716 ****** skipping: [/cache/rhel-8.qcow2] => (item=ip link add lsr101 type veth peer name peerlsr101) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add lsr101 type veth peer name peerlsr101", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=ip link set peerlsr101 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerlsr101 up", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=ip link set lsr101 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set lsr101 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:29 Wednesday 03 August 2022 15:54:10 +0000 (0:00:00.065) 0:00:30.782 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface lsr101] ******************************************** task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:36 Wednesday 03 August 2022 15:54:10 +0000 (0:00:00.051) 0:00:30.833 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "ip", "link", "del", "lsr101", "type", "veth" ], "delta": "0:00:00.014659", "end": "2022-08-03 11:54:09.703305", "rc": 0, "start": "2022-08-03 11:54:09.688646" } TASK [Create dummy interface lsr101] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:42 Wednesday 03 August 2022 15:54:10 +0000 (0:00:00.452) 0:00:31.286 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr101] ******************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:47 Wednesday 03 August 2022 15:54:10 +0000 (0:00:00.051) 0:00:31.338 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr101] ********************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:53 Wednesday 03 August 2022 15:54:10 +0000 (0:00:00.052) 0:00:31.391 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr101] ********************************************* task path: /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:58 Wednesday 03 August 2022 15:54:10 +0000 (0:00:00.051) 0:00:31.442 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=85 changed=9 unreachable=0 failed=0 skipped=40 rescued=0 ignored=2 Wednesday 03 August 2022 15:54:11 +0000 (0:00:00.073) 0:00:31.516 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.71s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Install iproute --------------------------------------------------------- 1.70s /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:15 ----------- linux-system-roles.network : Check which services are running ----------- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.47s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Install iproute --------------------------------------------------------- 1.46s /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:15 ----------- set up internal repositories -------------------------------------------- 1.27s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- linux-system-roles.network : Check which packages are installed --------- 1.13s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmpd6fsfezc/tests/tests_vlan_mtu_initscripts.yml:4 ----------------------- Create veth interface lsr101 -------------------------------------------- 1.05s /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:21 ----------- linux-system-roles.network : Configure networking connection profiles --- 0.88s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.88s /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:3 ------------------------- linux-system-roles.network : Enable network service --------------------- 0.83s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- Enable EPEL 8 ----------------------------------------------------------- 0.77s /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:17 ------------------------------- linux-system-roles.network : Configure networking connection profiles --- 0.66s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.57s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - linux-system-roles.network : Re-test connectivity ----------------------- 0.55s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- linux-system-roles.network : Enable network service --------------------- 0.54s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.51s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpd6fsfezc/tests/_backup.yml:6 ------------------------------------------ Get NM profile info ----------------------------------------------------- 0.47s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpd6fsfezc/tests/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpd6fsfezc/tests/_restore.yml:4 Wednesday 03 August 2022 15:54:11 +0000 (0:00:00.049) 0:00:31.565 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006257", "end": "2022-08-03 11:54:10.376723", "rc": 0, "start": "2022-08-03 11:54:10.370466" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=86 changed=10 unreachable=0 failed=0 skipped=40 rescued=0 ignored=2 Wednesday 03 August 2022 15:54:11 +0000 (0:00:00.411) 0:00:31.976 ****** =============================================================================== linux-system-roles.network : Check which services are running ----------- 1.71s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 Install iproute --------------------------------------------------------- 1.70s /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:15 ----------- linux-system-roles.network : Check which services are running ----------- 1.63s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:10 linux-system-roles.network : Check which packages are installed --------- 1.47s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Install iproute --------------------------------------------------------- 1.46s /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:15 ----------- set up internal repositories -------------------------------------------- 1.27s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- linux-system-roles.network : Check which packages are installed --------- 1.13s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:15 Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmpd6fsfezc/tests/tests_vlan_mtu_initscripts.yml:4 ----------------------- Create veth interface lsr101 -------------------------------------------- 1.05s /tmp/tmpd6fsfezc/tests/playbooks/tasks/manage_test_interface.yml:21 ----------- linux-system-roles.network : Configure networking connection profiles --- 0.88s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- Gathering Facts --------------------------------------------------------- 0.88s /tmp/tmpd6fsfezc/tests/playbooks/tests_vlan_mtu.yml:3 ------------------------- linux-system-roles.network : Enable network service --------------------- 0.83s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- Enable EPEL 8 ----------------------------------------------------------- 0.77s /tmp/tmpd6fsfezc/tests/tasks/enable_epel.yml:17 ------------------------------- linux-system-roles.network : Configure networking connection profiles --- 0.66s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:116 ---- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.57s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - linux-system-roles.network : Re-test connectivity ----------------------- 0.55s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:149 ---- linux-system-roles.network : Enable network service --------------------- 0.54s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/main.yml:99 ----- linux-system-roles.network : Ensure ansible_facts used by role are present --- 0.51s /tmp/tmpd6fsfezc/tests/roles/linux-system-roles.network/tasks/set_facts.yml:3 - Get stats of system files ----------------------------------------------- 0.50s /tmp/tmpd6fsfezc/tests/_backup.yml:6 ------------------------------------------ Get NM profile info ----------------------------------------------------- 0.47s /tmp/tmpd6fsfezc/tests/playbooks/tasks/get_profile_stat.yml:24 ---------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpcwsggv7g executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Wednesday 03 August 2022 16:30:23 +0000 (0:00:00.017) 0:00:00.017 ****** ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:30:25 +0000 (0:00:01.281) 0:00:01.299 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: _backup.yml ********************************************************** 1 plays in /tmp/tmpzotb0bdj/tests/network/_backup.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Get stats of system files] *********************************************** task path: /tmp/tmpzotb0bdj/tests/network/_backup.yml:6 Wednesday 03 August 2022 16:30:25 +0000 (0:00:00.014) 0:00:01.313 ****** ok: [/cache/rhel-8.qcow2] => (item=/etc/resolv.conf) => { "ansible_loop_var": "item", "changed": false, "item": "/etc/resolv.conf", "stat": { "atime": 1659544223.3555844, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544222.3545845, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "3731249181", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Check if system files exist] ********************************************* task path: /tmp/tmpzotb0bdj/tests/network/_backup.yml:13 Wednesday 03 August 2022 16:30:25 +0000 (0:00:00.476) 0:00:01.789 ****** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.stat.exists }} ok: [/cache/rhel-8.qcow2] => (item={'changed': False, 'stat': {'exists': True, 'path': '/etc/resolv.conf', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 752168, 'dev': 64515, 'nlink': 1, 'atime': 1659544223.3555844, 'mtime': 1659542132.0, 'ctime': 1659544222.3545845, 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False, 'blocks': 8, 'block_size': 4096, 'device_type': 0, 'readable': True, 'writeable': True, 'executable': False, 'pw_name': 'root', 'gr_name': 'root', 'checksum': 'fba82b5b78ea37322e584bf452f6f8e163f0869b', 'mimetype': 'text/plain', 'charset': 'us-ascii', 'version': '3731249181', 'attributes': [], 'attr_flags': ''}, 'invocation': {'module_args': {'path': '/etc/resolv.conf', 'follow': False, 'get_md5': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1'}}, 'failed': False, 'item': '/etc/resolv.conf', 'ansible_loop_var': 'item'}) => { "ansible_facts": { "_existing_files": " /etc/resolv.conf" }, "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "failed": false, "invocation": { "module_args": { "checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": false, "get_mime": true, "path": "/etc/resolv.conf" } }, "item": "/etc/resolv.conf", "stat": { "atime": 1659544223.3555844, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fba82b5b78ea37322e584bf452f6f8e163f0869b", "ctime": 1659544222.3545845, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 752168, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1659542132.0, "nlink": 1, "path": "/etc/resolv.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 90, "uid": 0, "version": "3731249181", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } } TASK [Back up system files] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/_backup.yml:19 Wednesday 03 August 2022 16:30:25 +0000 (0:00:00.034) 0:00:01.824 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "tar", "-cf", "/tmp/network.backup.tar", "--same-owner", "--same-permissions", "/etc/resolv.conf" ], "delta": "0:00:00.003943", "end": "2022-08-03 12:30:25.209380", "rc": 0, "start": "2022-08-03 12:30:25.205437" } STDERR: tar: Removing leading `/' from member names META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 03 August 2022 16:30:26 +0000 (0:00:00.452) 0:00:02.276 ****** =============================================================================== set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- Get stats of system files ----------------------------------------------- 0.48s /tmp/tmpzotb0bdj/tests/network/_backup.yml:6 ---------------------------------- Back up system files ---------------------------------------------------- 0.45s /tmp/tmpzotb0bdj/tests/network/_backup.yml:19 --------------------------------- Check if system files exist --------------------------------------------- 0.03s /tmp/tmpzotb0bdj/tests/network/_backup.yml:13 --------------------------------- PLAYBOOK: tests_vlan_mtu_initscripts.yml *************************************** 2 plays in /tmp/tmpzotb0bdj/tests/network/tests_vlan_mtu_initscripts.yml PLAY [Run playbook 'playbooks/tests_vlan_mtu.yml' with initscripts as provider] *** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/tests_vlan_mtu_initscripts.yml:4 Wednesday 03 August 2022 16:30:26 +0000 (0:00:00.047) 0:00:02.323 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tests_vlan_mtu_initscripts.yml:7 Wednesday 03 August 2022 16:30:27 +0000 (0:00:01.034) 0:00:03.358 ****** included: /tmp/tmpzotb0bdj/tests/network/tasks/el_repo_setup.yml for /cache/rhel-8.qcow2 TASK [Fix CentOS6 Base repo] *************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/el_repo_setup.yml:2 Wednesday 03 August 2022 16:30:27 +0000 (0:00:00.026) 0:00:03.385 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/el_repo_setup.yml:27 Wednesday 03 August 2022 16:30:27 +0000 (0:00:00.021) 0:00:03.406 ****** included: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml for /cache/rhel-8.qcow2 TASK [Create EPEL 8] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:4 Wednesday 03 August 2022 16:30:27 +0000 (0:00:00.029) 0:00:03.436 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "yum", "install", "-y", "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" ], "delta": null, "end": null, "rc": 0, "start": null } STDOUT: skipped, since /etc/yum.repos.d/epel.repo exists MSG: Did not run command since '/etc/yum.repos.d/epel.repo' exists TASK [Enable EPEL 7] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:11 Wednesday 03 August 2022 16:30:27 +0000 (0:00:00.349) 0:00:03.785 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Enable EPEL 8] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:17 Wednesday 03 August 2022 16:30:27 +0000 (0:00:00.022) 0:00:03.808 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "epel" ], "delta": "0:00:00.416106", "end": "2022-08-03 12:30:27.523536", "rc": 0, "start": "2022-08-03 12:30:27.107430" } TASK [Enable EPEL 6] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:26 Wednesday 03 August 2022 16:30:28 +0000 (0:00:00.783) 0:00:04.591 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set network provider to 'initscripts'] *********************************** task path: /tmp/tmpzotb0bdj/tests/network/tests_vlan_mtu_initscripts.yml:8 Wednesday 03 August 2022 16:30:28 +0000 (0:00:00.022) 0:00:04.614 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "network_provider": "initscripts" }, "changed": false } META: ran handlers META: ran handlers PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:3 Wednesday 03 August 2022 16:30:28 +0000 (0:00:00.045) 0:00:04.660 ****** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:9 Wednesday 03 August 2022 16:30:29 +0000 (0:00:00.824) 0:00:05.484 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:30:29 +0000 (0:00:00.053) 0:00:05.537 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:30:29 +0000 (0:00:00.048) 0:00:05.585 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.003129", "end": "2022-08-03 12:30:28.938235", "rc": 0, "start": "2022-08-03 12:30:28.935106" } STDOUT: bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:30:29 +0000 (0:00:00.416) 0:00:06.001 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:30:29 +0000 (0:00:00.045) 0:00:06.047 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'rpltstbr', 'team0'] TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:10 Wednesday 03 August 2022 16:30:29 +0000 (0:00:00.068) 0:00:06.116 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml for /cache/rhel-8.qcow2 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:3 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.058) 0:00:06.174 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:8 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.059) 0:00:06.233 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:13 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.034) 0:00:06.268 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.043) 0:00:06.311 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.041) 0:00:06.353 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002980", "end": "2022-08-03 12:30:29.655187", "rc": 0, "start": "2022-08-03 12:30:29.652207" } STDOUT: bonding_masters eth0 lo rpltstbr team0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.364) 0:00:06.718 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.044) 0:00:06.762 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'rpltstbr', 'team0'] TASK [Install iproute] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:15 Wednesday 03 August 2022 16:30:30 +0000 (0:00:00.044) 0:00:06.807 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr101] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:21 Wednesday 03 August 2022 16:30:32 +0000 (0:00:01.793) 0:00:08.600 ****** changed: [/cache/rhel-8.qcow2] => (item=ip link add lsr101 type veth peer name peerlsr101) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "add", "lsr101", "type", "veth", "peer", "name", "peerlsr101" ], "delta": "0:00:00.005024", "end": "2022-08-03 12:30:31.923212", "item": "ip link add lsr101 type veth peer name peerlsr101", "rc": 0, "start": "2022-08-03 12:30:31.918188" } changed: [/cache/rhel-8.qcow2] => (item=ip link set peerlsr101 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "peerlsr101", "up" ], "delta": "0:00:00.007097", "end": "2022-08-03 12:30:32.278052", "item": "ip link set peerlsr101 up", "rc": 0, "start": "2022-08-03 12:30:32.270955" } changed: [/cache/rhel-8.qcow2] => (item=ip link set lsr101 up) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "ip", "link", "set", "lsr101", "up" ], "delta": "0:00:00.005795", "end": "2022-08-03 12:30:32.630097", "item": "ip link set lsr101 up", "rc": 0, "start": "2022-08-03 12:30:32.624302" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:28 Wednesday 03 August 2022 16:30:33 +0000 (0:00:01.097) 0:00:09.698 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "nmcli", "d", "set", "lsr101", "managed", "true" ], "delta": "0:00:00.020844", "end": "2022-08-03 12:30:33.037381", "rc": 0, "start": "2022-08-03 12:30:33.016537" } TASK [Delete veth interface lsr101] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:35 Wednesday 03 August 2022 16:30:33 +0000 (0:00:00.405) 0:00:10.104 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create dummy interface lsr101] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:40 Wednesday 03 August 2022 16:30:33 +0000 (0:00:00.035) 0:00:10.140 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr101] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:44 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.034) 0:00:10.174 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr101] ********************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:49 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.034) 0:00:10.209 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr101] ********************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:53 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.038) 0:00:10.247 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:13 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.044) 0:00:10.292 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.063) 0:00:10.355 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface lsr101] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.044) 0:00:10.400 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659544231.9218845, "block_size": 4096, "blocks": 0, "ctime": 1659544231.9218845, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 39700, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr101", "lnk_target": "../../devices/virtual/net/lsr101", "mode": "0777", "mtime": 1659544231.9218845, "nlink": 1, "path": "/sys/class/net/lsr101", "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 lsr101 is present] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.382) 0:00:10.783 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [TEST: I can configure the MTU for a vlan interface without autoconnect.] *** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:14 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.049) 0:00:10.832 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.042) 0:00:10.875 ****** included: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:30:34 +0000 (0:00:00.048) 0:00:10.924 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:30:35 +0000 (0:00:00.497) 0:00:11.422 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:30:37 +0000 (0:00:01.747) 0:00:13.169 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:30:38 +0000 (0:00:01.433) 0:00:14.603 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.067) 0:00:14.671 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.057) 0:00:14.728 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.056) 0:00:14.784 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.079) 0:00:14.863 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.057) 0:00:14.921 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.054) 0:00:14.975 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.058) 0:00:15.033 ****** skipping: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:30:38 +0000 (0:00:00.060) 0:00:15.093 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:30:39 +0000 (0:00:00.054) 0:00:15.148 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:30:39 +0000 (0:00:00.830) 0:00:15.978 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-91466mw81okgw/tmpg_9v4jaf" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:30:40 +0000 (0:00:00.437) 0:00:16.416 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1492, "name": "lsr101", "state": "up", "type": "ethernet" }, { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1280, "name": "lsr101.90", "parent": "lsr101", "state": "up", "type": "vlan", "vlan_id": 90 } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101' [006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90' [007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified) [008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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"' [009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active) [010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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 [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:30:41 +0000 (0:00:00.944) 0:00:17.360 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:30:41 +0000 (0:00:00.057) 0:00:17.418 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101'", "[006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90'", "[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified)", "[008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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\"'", "[009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active)", "[010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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 [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:30:41 +0000 (0:00:00.065) 0:00:17.483 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1492, "name": "lsr101", "state": "up", "type": "ethernet" }, { "autoconnect": false, "ip": { "auto6": false, "dhcp4": false }, "mtu": 1280, "name": "lsr101.90", "parent": "lsr101", "state": "up", "type": "vlan", "vlan_id": 90 } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101'\n[006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90'\n[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified)\n[008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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[009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active)\n[010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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": [ "[005] #0, state:up persistent_state:present, 'lsr101': add ifcfg-rh profile 'lsr101'", "[006] #1, state:up persistent_state:present, 'lsr101.90': add ifcfg-rh profile 'lsr101.90'", "[007] #0, state:up persistent_state:present, 'lsr101': up connection lsr101 (is-modified)", "[008] #0, state:up persistent_state:present, 'lsr101': call 'ifup lsr101': 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\"'", "[009] #1, state:up persistent_state:present, 'lsr101.90': up connection lsr101.90 (not-active)", "[010] #1, state:up persistent_state:present, 'lsr101.90': call 'ifup lsr101.90': 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 [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:30:41 +0000 (0:00:00.065) 0:00:17.549 ****** skipping: [/cache/rhel-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:30:41 +0000 (0:00:00.052) 0:00:17.602 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:42 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.547) 0:00:18.149 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:3 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.121) 0:00:18.271 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml for /cache/rhel-8.qcow2 TASK [Get stat for interface lsr101.90] **************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_interface_stat.yml:3 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.073) 0:00:18.344 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659544240.1926901, "block_size": 4096, "blocks": 0, "ctime": 1659544240.1926901, "dev": 21, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 39828, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": true, "isreg": false, "issock": false, "isuid": false, "lnk_source": "/sys/devices/virtual/net/lsr101.90", "lnk_target": "../../devices/virtual/net/lsr101.90", "mode": "0777", "mtime": 1659544240.1926901, "nlink": 1, "path": "/sys/class/net/lsr101.90", "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 lsr101.90 is present] ****************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_device_present.yml:4 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.383) 0:00:18.728 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:45 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.060) 0:00:18.789 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=lsr101) included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml for /cache/rhel-8.qcow2 => (item=lsr101.90) TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.090) 0:00:18.879 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/rhel-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.075) 0:00:18.955 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:30:42 +0000 (0:00:00.059) 0:00:19.014 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659544240.0845845, "block_size": 4096, "blocks": 8, "ctime": 1659544240.0665843, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17574538, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659544240.0665843, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-lsr101", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 114, "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] ******************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:30:43 +0000 (0:00:00.381) 0:00:19.396 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:30:43 +0000 (0:00:00.146) 0:00:19.542 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr101 | grep /etc", "delta": "0:00:00.022973", "end": "2022-08-03 12:30:42.882643", "rc": 1, "start": "2022-08-03 12:30:42.859670" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:30:43 +0000 (0:00:00.421) 0:00:19.964 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-lsr101] ************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:30:43 +0000 (0:00:00.052) 0:00:20.016 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-lsr101" ], "delta": "0:00:01.004013", "end": "2022-08-03 12:30:44.325942", "rc": 0, "start": "2022-08-03 12:30:43.321929" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-lsr101] ********************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:30:45 +0000 (0:00:01.392) 0:00:21.409 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'lsr101' is present] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:30:45 +0000 (0:00:00.072) 0:00:21.482 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'lsr101' is present] ************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:30:45 +0000 (0:00:00.063) 0:00:21.545 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:3 Wednesday 03 August 2022 16:30:45 +0000 (0:00:00.061) 0:00:21.606 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml for /cache/rhel-8.qcow2 TASK [Initialize NM profile exist and ansible_managed comment flag] ************ task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:3 Wednesday 03 August 2022 16:30:45 +0000 (0:00:00.121) 0:00:21.727 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": false, "lsr_net_profile_exists": false }, "changed": false } TASK [stat profile file] ******************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:8 Wednesday 03 August 2022 16:30:45 +0000 (0:00:00.066) 0:00:21.794 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "stat": { "atime": 1659544240.1645844, "block_size": 4096, "blocks": 8, "ctime": 1659544240.0665843, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17604533, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0644", "mtime": 1659544240.0665843, "nlink": 1, "path": "/etc/sysconfig/network-scripts/ifcfg-lsr101.90", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 144, "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] ******************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:16 Wednesday 03 August 2022 16:30:46 +0000 (0:00:00.386) 0:00:22.180 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_exists": true }, "changed": false } TASK [Get NM profile info] ***************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:24 Wednesday 03 August 2022 16:30:46 +0000 (0:00:00.060) 0:00:22.240 ****** fatal: [/cache/rhel-8.qcow2]: FAILED! => { "changed": false, "cmd": "nmcli -f NAME,FILENAME connection show |grep lsr101.90 | grep /etc", "delta": "0:00:00.018937", "end": "2022-08-03 12:30:45.555253", "rc": 1, "start": "2022-08-03 12:30:45.536316" } MSG: non-zero return code ...ignoring TASK [Set NM profile exist flag and ansible_managed flag true based on the nmcli output] *** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:33 Wednesday 03 August 2022 16:30:46 +0000 (0:00:00.398) 0:00:22.639 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get the ansible_managed comment in ifcfg-lsr101.90] ********************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 Wednesday 03 August 2022 16:30:46 +0000 (0:00:00.053) 0:00:22.692 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "grep", "^# Ansible managed", "/etc/sysconfig/network-scripts/ifcfg-lsr101.90" ], "delta": "0:00:01.005192", "end": "2022-08-03 12:30:47.018683", "rc": 0, "start": "2022-08-03 12:30:46.013491" } STDOUT: # Ansible managed TASK [Verify the ansible_managed comment in ifcfg-lsr101.90] ******************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:49 Wednesday 03 August 2022 16:30:47 +0000 (0:00:01.450) 0:00:24.143 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "lsr_net_profile_ansible_managed": true }, "changed": false } TASK [assert that profile 'lsr101.90' is present] ****************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:4 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.065) 0:00:24.209 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [assert that ansible managed comment in 'lsr101.90' is present] *********** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/assert_profile_present.yml:9 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.063) 0:00:24.272 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [TEARDOWN: remove profiles.] ********************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:52 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.061) 0:00:24.334 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: ################################################## TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:4 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.059) 0:00:24.393 ****** included: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.network : Ensure ansible_facts used by role are present] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.077) 0:00:24.470 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which services are running] **** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Wednesday 03 August 2022 16:30:48 +0000 (0:00:00.556) 0:00:25.027 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Check which packages are installed] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Wednesday 03 August 2022 16:30:50 +0000 (0:00:01.575) 0:00:26.602 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Print network provider] ************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:7 Wednesday 03 August 2022 16:30:51 +0000 (0:00:01.197) 0:00:27.799 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: Using network provider: initscripts TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if using the `network_state` variable with the initscripts provider] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:11 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.062) 0:00:27.862 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Abort applying the network state configuration if the system version of the managed host is below 8] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:18 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.052) 0:00:27.915 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install packages] ******************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:27 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.053) 0:00:27.969 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install NetworkManager and nmstate when using network_state variable] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:35 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.078) 0:00:28.047 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Install python3-libnmstate when using network_state variable] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:45 Wednesday 03 August 2022 16:30:51 +0000 (0:00:00.093) 0:00:28.141 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Restart NetworkManager due to wireless or team interfaces] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:56 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.052) 0:00:28.193 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable and start NetworkManager] ***** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:69 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.061) 0:00:28.254 ****** skipping: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Enable and start wpa_supplicant] ***** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:80 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.055) 0:00:28.310 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Enable network service] ************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.053) 0:00:28.363 ****** ok: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.network : Ensure initscripts network file dependency is present] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:97 Wednesday 03 August 2022 16:30:52 +0000 (0:00:00.544) 0:00:28.908 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "dest": "/etc/sysconfig/network", "src": "/root/.ansible/tmp/ansible-local-91466mw81okgw/tmpwf0eewv5" } TASK [fedora.linux_system_roles.network : Configure networking connection profiles] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 Wednesday 03 August 2022 16:30:53 +0000 (0:00:00.393) 0:00:29.302 ****** changed: [/cache/rhel-8.qcow2] => { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr101", "persistent_state": "absent", "state": "down" }, { "name": "lsr101.90", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true } STDERR: [005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active) [006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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"' [007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active [008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101' [009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90' TASK [fedora.linux_system_roles.network : Configure networking state] ********** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:118 Wednesday 03 August 2022 16:30:53 +0000 (0:00:00.637) 0:00:29.939 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.network : Show stderr messages for the network_connections] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:124 Wednesday 03 August 2022 16:30:53 +0000 (0:00:00.052) 0:00:29.991 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result.stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active)", "[006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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\"'", "[007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active", "[008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101'", "[009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90'" ] } TASK [fedora.linux_system_roles.network : Show debug messages for the network_connections] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:128 Wednesday 03 August 2022 16:30:53 +0000 (0:00:00.141) 0:00:30.133 ****** ok: [/cache/rhel-8.qcow2] => { "__network_connections_result": { "_invocation": { "module_args": { "__debug_flags": "", "__header": "#\n# Ansible managed\n#\n", "connections": [ { "name": "lsr101", "persistent_state": "absent", "state": "down" }, { "name": "lsr101.90", "persistent_state": "absent", "state": "down" } ], "force_state_change": false, "ignore_errors": false, "provider": "initscripts" } }, "changed": true, "failed": false, "stderr": "[005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active)\n[006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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[007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active\n[008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101'\n[009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90'\n", "stderr_lines": [ "[005] #0, state:down persistent_state:absent, 'lsr101': up connection lsr101 (active)", "[006] #0, state:down persistent_state:absent, 'lsr101': call 'ifdown lsr101': 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\"'", "[007] #1, state:down persistent_state:absent, 'lsr101.90': down connection lsr101.90 skipped because not active", "[008] #0, state:down persistent_state:absent, 'lsr101': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101'", "[009] #1, state:down persistent_state:absent, 'lsr101.90': delete ifcfg-rh file '/etc/sysconfig/network-scripts/ifcfg-lsr101.90'" ] } } TASK [fedora.linux_system_roles.network : Show debug messages for the network_state] *** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:133 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.063) 0:00:30.196 ****** skipping: [/cache/rhel-8.qcow2] => {} TASK [fedora.linux_system_roles.network : Re-test connectivity] **************** task path: /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.056) 0:00:30.253 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "ping": "pong" } META: role_complete for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:67 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.416) 0:00:30.669 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml for /cache/rhel-8.qcow2 TASK [Ensure state in ["present", "absent"]] *********************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:3 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.087) 0:00:30.756 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure type in ["dummy", "tap", "veth"]] ********************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:8 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.050) 0:00:30.806 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:13 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.051) 0:00:30.858 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml for /cache/rhel-8.qcow2 TASK [include_tasks] *********************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:3 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.079) 0:00:30.937 ****** included: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml for /cache/rhel-8.qcow2 TASK [Gather current interface info] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:3 Wednesday 03 August 2022 16:30:54 +0000 (0:00:00.072) 0:00:31.010 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "cmd": [ "ls", "-1" ], "delta": "0:00:00.002961", "end": "2022-08-03 12:30:54.320266", "rc": 0, "start": "2022-08-03 12:30:54.317305" } STDOUT: bonding_masters eth0 lo lsr101 lsr101.90 peerlsr101 rpltstbr team0 TASK [Set current_interfaces] ************************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_current_interfaces.yml:9 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.436) 0:00:31.447 ****** ok: [/cache/rhel-8.qcow2] => { "ansible_facts": { "current_interfaces": [ "bonding_masters", "eth0", "lo", "lsr101", "lsr101.90", "peerlsr101", "rpltstbr", "team0" ] }, "changed": false } TASK [Show current_interfaces] ************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/show_interfaces.yml:4 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.061) 0:00:31.509 ****** ok: [/cache/rhel-8.qcow2] => {} MSG: current_interfaces: ['bonding_masters', 'eth0', 'lo', 'lsr101', 'lsr101.90', 'peerlsr101', 'rpltstbr', 'team0'] TASK [Install iproute] ********************************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:15 Wednesday 03 August 2022 16:30:55 +0000 (0:00:00.061) 0:00:31.570 ****** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Create veth interface lsr101] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:21 Wednesday 03 August 2022 16:30:56 +0000 (0:00:01.486) 0:00:33.056 ****** skipping: [/cache/rhel-8.qcow2] => (item=ip link add lsr101 type veth peer name peerlsr101) => { "ansible_loop_var": "item", "changed": false, "item": "ip link add lsr101 type veth peer name peerlsr101", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=ip link set peerlsr101 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set peerlsr101 up", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8.qcow2] => (item=ip link set lsr101 up) => { "ansible_loop_var": "item", "changed": false, "item": "ip link set lsr101 up", "skip_reason": "Conditional result was False" } TASK [Set up veth as managed by NetworkManager] ******************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:28 Wednesday 03 August 2022 16:30:56 +0000 (0:00:00.066) 0:00:33.123 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete veth interface lsr101] ******************************************** task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:35 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.051) 0:00:33.174 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "ip", "link", "del", "lsr101", "type", "veth" ], "delta": "0:00:00.012228", "end": "2022-08-03 12:30:56.502139", "rc": 0, "start": "2022-08-03 12:30:56.489911" } TASK [Create dummy interface lsr101] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:40 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.410) 0:00:33.585 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete dummy interface lsr101] ******************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:44 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.051) 0:00:33.637 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Create tap interface lsr101] ********************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:49 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.114) 0:00:33.752 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete tap interface lsr101] ********************************************* task path: /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:53 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.052) 0:00:33.805 ****** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=85 changed=9 unreachable=0 failed=0 skipped=40 rescued=0 ignored=2 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.075) 0:00:33.881 ****** =============================================================================== Install iproute --------------------------------------------------------- 1.79s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:15 --- fedora.linux_system_roles.network : Check which services are running ---- 1.75s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.58s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Install iproute --------------------------------------------------------- 1.49s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:15 --- Get the ansible_managed comment in ifcfg-lsr101.90 ---------------------- 1.45s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 -------- fedora.linux_system_roles.network : Check which packages are installed --- 1.43s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Get the ansible_managed comment in ifcfg-lsr101 ------------------------- 1.39s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 -------- set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 1.20s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Create veth interface lsr101 -------------------------------------------- 1.10s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:21 --- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpzotb0bdj/tests/network/tests_vlan_mtu_initscripts.yml:4 --------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.94s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Enable network service -------------- 0.83s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:3 ----------------- Enable EPEL 8 ----------------------------------------------------------- 0.78s /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:17 ----------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.64s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.56s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.55s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Enable network service -------------- 0.54s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.50s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 PLAYBOOK: _restore.yml ********************************************************* 1 plays in /tmp/tmpzotb0bdj/tests/network/_restore.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Restore system files] **************************************************** task path: /tmp/tmpzotb0bdj/tests/network/_restore.yml:4 Wednesday 03 August 2022 16:30:57 +0000 (0:00:00.047) 0:00:33.928 ****** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "(cd /; tar -xf /tmp/network.backup.tar)", "delta": "0:00:00.006045", "end": "2022-08-03 12:30:57.228741", "rc": 0, "start": "2022-08-03 12:30:57.222696" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=86 changed=10 unreachable=0 failed=0 skipped=40 rescued=0 ignored=2 Wednesday 03 August 2022 16:30:58 +0000 (0:00:00.405) 0:00:34.334 ****** =============================================================================== Install iproute --------------------------------------------------------- 1.79s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:15 --- fedora.linux_system_roles.network : Check which services are running ---- 1.75s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 fedora.linux_system_roles.network : Check which services are running ---- 1.58s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:9 Install iproute --------------------------------------------------------- 1.49s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:15 --- Get the ansible_managed comment in ifcfg-lsr101.90 ---------------------- 1.45s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 -------- fedora.linux_system_roles.network : Check which packages are installed --- 1.43s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Get the ansible_managed comment in ifcfg-lsr101 ------------------------- 1.39s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/get_profile_stat.yml:43 -------- set up internal repositories -------------------------------------------- 1.28s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.network : Check which packages are installed --- 1.20s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:14 Create veth interface lsr101 -------------------------------------------- 1.10s /tmp/tmpzotb0bdj/tests/network/playbooks/tasks/manage_test_interface.yml:21 --- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpzotb0bdj/tests/network/tests_vlan_mtu_initscripts.yml:4 --------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.94s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Enable network service -------------- 0.83s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmpzotb0bdj/tests/network/playbooks/tests_vlan_mtu.yml:3 ----------------- Enable EPEL 8 ----------------------------------------------------------- 0.78s /tmp/tmpzotb0bdj/tests/network/tasks/enable_epel.yml:17 ----------------------- fedora.linux_system_roles.network : Configure networking connection profiles --- 0.64s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:106 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.56s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3 fedora.linux_system_roles.network : Re-test connectivity ---------------- 0.55s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:139 fedora.linux_system_roles.network : Enable network service -------------- 0.54s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/main.yml:89 fedora.linux_system_roles.network : Ensure ansible_facts used by role are present --- 0.50s /tmp/tmpcwsggv7g/ansible_collections/fedora/linux_system_roles/roles/network/tasks/set_facts.yml:3