# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-cikrqx6nl8/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 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: tests_mesh_cert.yml ************************************************** 1 plays in /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml PLAY [Test mesh tunnels with certificates] ************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:3 Sunday 09 June 2024 04:30:11 +0000 (0:00:00.013) 0:00:00.013 *********** ok: [sut] TASK [Set up test environment] ************************************************* task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:16 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.850) 0:00:00.864 *********** included: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml for sut TASK [Set platform/version specific variables] ********************************* task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:2 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.022) 0:00:00.886 *********** TASK [fedora.linux_system_roles.vpn : Ensure ansible_facts used by role] ******* task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:2 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.017) 0:00:00.904 *********** skipping: [sut] => { "changed": false, "false_condition": "__vpn_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.vpn : Check if system is ostree] *************** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:10 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.018) 0:00:00.923 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.vpn : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:15 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.248) 0:00:01.171 *********** ok: [sut] => { "ansible_facts": { "__vpn_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.vpn : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:19 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.016) 0:00:01.187 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vpn_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vpn_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_8.yml) => { "ansible_facts": { "__vpn_nss_location": "/etc/ipsec.d" }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [sut] => (item=CentOS_8.yml) => { "ansible_facts": { "__vpn_nss_location": "/etc/ipsec.d" }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [Change inventory_hostname] *********************************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:11 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.028) 0:00:01.215 *********** skipping: [sut] => { "changed": false, "false_condition": "not (__vpn_opportunistic | d(false) | bool)", "skip_reason": "Conditional result was False" } TASK [Add sample main host] **************************************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:18 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.023) 0:00:01.238 *********** skipping: [sut] => { "changed": false, "false_condition": "not (__vpn_opportunistic | d(false) | bool)", "skip_reason": "Conditional result was False" } TASK [Create nss directory for testing] **************************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:22 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.023) 0:00:01.262 *********** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/etc/ipsec.d", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create /etc/ipsec.d directory for testing] ******************************* task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:28 Sunday 09 June 2024 04:30:12 +0000 (0:00:00.265) 0:00:01.527 *********** ok: [sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/etc/ipsec.d", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Dynamically add more hosts] ********************************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:34 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.194) 0:00:01.722 *********** included: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/add_hosts.yml for sut TASK [Dynamically add multiple hosts for testing] ****************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/add_hosts.yml:2 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.011) 0:00:01.734 *********** creating host via 'add_host': hostname=host01.local creating host via 'add_host': hostname=host02.local changed: [sut] => (item=1) => { "add_host": { "groups": [ "testing" ], "host_name": "host01.local", "host_vars": { "cert_name": "dyn_cert", "current_ip": "169.254.1.1", "current_subnet": "169.254.0.0/16" } }, "ansible_loop_var": "item", "changed": true, "item": 1 } changed: [sut] => (item=2) => { "add_host": { "groups": [ "testing" ], "host_name": "host02.local", "host_vars": { "cert_name": "dyn_cert", "current_ip": "169.254.1.1", "current_subnet": "169.254.0.0/16" } }, "ansible_loop_var": "item", "changed": true, "item": 2 } TASK [Create mock vpn_connections] ********************************************* task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/add_hosts.yml:11 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.025) 0:00:01.759 *********** ok: [sut] => { "ansible_facts": { "vpn_connections": [ { "hosts": { "host01.local": "", "host02.local": "", "sut": "" } } ] }, "changed": false } TASK [Create sample policies directory for testing] **************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:40 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.015) 0:00:01.775 *********** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/etc/ipsec.d/policies", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create sample policy files for testing] ********************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:46 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.215) 0:00:01.990 *********** changed: [sut] => { "changed": true, "dest": "/etc/ipsec.d/policies/private", "gid": 0, "group": "root", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [Create sample policy files for testing] ********************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:52 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.203) 0:00:02.194 *********** changed: [sut] => { "changed": true, "dest": "/etc/ipsec.d/policies/private-or-clear", "gid": 0, "group": "root", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [Create sample policy files for testing] ********************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:58 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.210) 0:00:02.404 *********** changed: [sut] => { "changed": true, "dest": "/etc/ipsec.d/policies/clear", "gid": 0, "group": "root", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [Ensure firewalld not running if not testing firewall] ******************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:67 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.205) 0:00:02.610 *********** skipping: [sut] => { "changed": false, "false_condition": "not vpn_manage_firewall | d(false)", "skip_reason": "Conditional result was False" } TASK [Add extra options to check] ********************************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:21 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.017) 0:00:02.627 *********** ok: [sut] => { "ansible_facts": { "vpn_connections": [ { "auth_method": "cert", "hosts": { "host01.local": "", "host02.local": "", "sut": "" }, "opportunistic": true, "policies": [ { "cidr": "203.0.113.0/24", "policy": "private" }, { "cidr": "198.51.100.0/24", "policy": "clear" } ] } ] }, "changed": false } TASK [Add cert_name fact to controller] **************************************** task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:36 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.012) 0:00:02.640 *********** ok: [sut] => { "ansible_facts": { "cert_name": "main_cert" }, "changed": false } TASK [Use vpn role] ************************************************************ task path: /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:40 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.010) 0:00:02.650 *********** TASK [fedora.linux_system_roles.vpn : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/main.yml:3 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.029) 0:00:02.679 *********** included: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.vpn : Ensure ansible_facts used by role] ******* task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:2 Sunday 09 June 2024 04:30:13 +0000 (0:00:00.012) 0:00:02.691 *********** skipping: [sut] => { "changed": false, "false_condition": "__vpn_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.vpn : Check if system is ostree] *************** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:10 Sunday 09 June 2024 04:30:14 +0000 (0:00:00.018) 0:00:02.710 *********** skipping: [sut] => { "changed": false, "false_condition": "not __vpn_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.vpn : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:15 Sunday 09 June 2024 04:30:14 +0000 (0:00:00.010) 0:00:02.721 *********** skipping: [sut] => { "changed": false, "false_condition": "not __vpn_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.vpn : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:19 Sunday 09 June 2024 04:30:14 +0000 (0:00:00.011) 0:00:02.732 *********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vpn_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vpn_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_8.yml) => { "ansible_facts": { "__vpn_nss_location": "/etc/ipsec.d" }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [sut] => (item=CentOS_8.yml) => { "ansible_facts": { "__vpn_nss_location": "/etc/ipsec.d" }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [fedora.linux_system_roles.vpn : Ensure required packages are installed] *** task path: /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/main.yml:6 Sunday 09 June 2024 04:30:14 +0000 (0:00:00.025) 0:00:02.757 *********** fatal: [sut]: FAILED! => { "changed": false, "rc": 1, "results": [] } MSG: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist to retry, use: --limit @/tmp/tests_mesh_cert.retry PLAY RECAP ********************************************************************* sut : ok=18 changed=6 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0 Sunday 09 June 2024 04:30:14 +0000 (0:00:00.817) 0:00:03.575 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 0.85s /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:3 -------------------- fedora.linux_system_roles.vpn : Ensure required packages are installed --- 0.82s /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/main.yml:6 Create nss directory for testing ---------------------------------------- 0.27s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:22 ------------------ fedora.linux_system_roles.vpn : Check if system is ostree --------------- 0.25s /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:10 Create sample policies directory for testing ---------------------------- 0.22s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:40 ------------------ Create sample policy files for testing ---------------------------------- 0.21s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:52 ------------------ Create sample policy files for testing ---------------------------------- 0.21s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:58 ------------------ Create sample policy files for testing ---------------------------------- 0.20s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:46 ------------------ Create /etc/ipsec.d directory for testing ------------------------------- 0.19s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:28 ------------------ Use vpn role ------------------------------------------------------------ 0.03s /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:40 ------------------- fedora.linux_system_roles.vpn : Set platform/version specific variables --- 0.03s /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:19 fedora.linux_system_roles.vpn : Set platform/version specific variables --- 0.03s /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:19 Dynamically add multiple hosts for testing ------------------------------ 0.03s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/add_hosts.yml:2 -------------------- Add sample main host ---------------------------------------------------- 0.02s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:18 ------------------ Change inventory_hostname ----------------------------------------------- 0.02s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:11 ------------------ Set up test environment ------------------------------------------------- 0.02s /WORKDIR/git-weekly-cikrqx6nl8/tests/tests_mesh_cert.yml:16 ------------------- fedora.linux_system_roles.vpn : Ensure ansible_facts used by role ------- 0.02s /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:2 fedora.linux_system_roles.vpn : Ensure ansible_facts used by role ------- 0.02s /WORKDIR/git-weekly-cikrqx6nl8/.collection/ansible_collections/fedora/linux_system_roles/roles/vpn/tasks/set_vars.yml:2 Set platform/version specific variables --------------------------------- 0.02s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:2 ------------------- Ensure firewalld not running if not testing firewall -------------------- 0.02s /WORKDIR/git-weekly-cikrqx6nl8/tests/tasks/setup_test.yml:67 ------------------ ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---