ansible-playbook [core 2.17.8] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-gPI executable location = /usr/local/bin/ansible-playbook python version = 3.12.8 (main, Dec 3 2024, 00:00:00) [GCC 14.2.1 20241104 (Red Hat 14.2.1-6)] (/usr/bin/python3.12) jinja version = 3.1.5 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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_basic_ipa.yml ************************************************** 1 plays in /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml PLAY [Test using IPA to issue certs] ******************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:2 Monday 03 February 2025 18:51:47 -0500 (0:00:00.010) 0:00:00.010 ******* [WARNING]: Platform linux on host managed-node1 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:13 Monday 03 February 2025 18:51:51 -0500 (0:00:03.794) 0:00:03.804 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Skip if not supported] *************************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:18 Monday 03 February 2025 18:51:51 -0500 (0:00:00.554) 0:00:04.358 ******* META: end_host conditional evaluated to False, continuing execution for managed-node1 skipping: [managed-node1] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for managed-node1" } MSG: end_host conditional evaluated to false, continuing execution for managed-node1 TASK [Set __is_beaker_env] ***************************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:2 Monday 03 February 2025 18:51:51 -0500 (0:00:00.009) 0:00:04.367 ******* ok: [managed-node1] => { "ansible_facts": { "__is_beaker_env": true }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:9 Monday 03 February 2025 18:51:51 -0500 (0:00:00.055) 0:00:04.423 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:14 Monday 03 February 2025 18:51:52 -0500 (0:00:00.401) 0:00:04.824 ******* ok: [managed-node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [Install ansible-freeipa] ************************************************* task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:18 Monday 03 February 2025 18:51:52 -0500 (0:00:00.027) 0:00:04.851 ******* changed: [managed-node1 -> 127.0.0.1] => { "changed": true, "rc": 0, "results": [ "Installed: ansible-core-1:2.16.14-1.el10.noarch", "Installed: ansible-freeipa-1.14.2-2.el10.noarch", "Installed: python3-cffi-1.16.0-7.el10.x86_64", "Installed: python3-packaging-24.2-2.el10.noarch", "Installed: python3-cryptography-43.0.0-4.el10.x86_64", "Installed: python3-ply-3.11-25.el10.noarch", "Installed: python3-pycparser-2.20-16.el10.noarch", "Installed: python3-resolvelib-1.0.1-6.el10.noarch" ] } TASK [Ensure freeipa-repo is absent] ******************************************* task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:24 Monday 03 February 2025 18:51:56 -0500 (0:00:04.475) 0:00:09.327 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "not __is_beaker_env", "skip_reason": "Conditional result was False" } TASK [Clone ansible-freeipa repo] ********************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:32 Monday 03 February 2025 18:51:56 -0500 (0:00:00.020) 0:00:09.347 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "not __is_beaker_env", "skip_reason": "Conditional result was False" } TASK [Create role symlinks] **************************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:41 Monday 03 February 2025 18:51:56 -0500 (0:00:00.018) 0:00:09.365 ******* skipping: [managed-node1] => (item=ipaserver) => { "ansible_loop_var": "item", "changed": false, "false_condition": "not __is_beaker_env", "item": "ipaserver", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=ipaclient) => { "ansible_loop_var": "item", "changed": false, "false_condition": "not __is_beaker_env", "item": "ipaclient", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [Ensure hostname package is installed] ************************************ task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:53 Monday 03 February 2025 18:51:56 -0500 (0:00:00.023) 0:00:09.389 ******* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Set hostname] ************************************************************ task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:59 Monday 03 February 2025 18:52:00 -0500 (0:00:04.403) 0:00:13.792 ******* changed: [managed-node1] => { "ansible_facts": { "ansible_domain": "test.local", "ansible_fqdn": "ipaserver.test.local", "ansible_hostname": "ipaserver", "ansible_nodename": "ipaserver.test.local" }, "changed": true, "name": "ipaserver.test.local" } TASK [Ensure nss package is up-to-date] **************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:65 Monday 03 February 2025 18:52:02 -0500 (0:00:01.146) 0:00:14.939 ******* changed: [managed-node1] => { "changed": true, "rc": 0, "results": [ "Installed: nss-sysinit-3.101.0-13.el10.x86_64", "Installed: nspr-4.35.0-34.el10.x86_64", "Installed: nss-3.101.0-13.el10.x86_64", "Installed: nss-util-3.101.0-13.el10.x86_64", "Installed: nss-softokn-3.101.0-13.el10.x86_64", "Installed: nss-softokn-freebl-3.101.0-13.el10.x86_64" ] } TASK [See if collection exists] ************************************************ task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:85 Monday 03 February 2025 18:52:06 -0500 (0:00:04.229) 0:00:19.168 ******* ok: [managed-node1 -> localhost] => { "changed": false, "stat": { "atime": 1734048000.0, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1738626715.6168077, "dev": 51714, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 113246456, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/directory", "mode": "0755", "mtime": 1738626715.6168077, "nlink": 6, "path": "/usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles/ipaserver", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 76, "uid": 0, "version": "3585921106", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true } } TASK [Set name of ipa server role] ********************************************* task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:91 Monday 03 February 2025 18:52:06 -0500 (0:00:00.400) 0:00:19.568 ******* ok: [managed-node1] => { "ansible_facts": { "__ipa_server_role": "freeipa.ansible_freeipa.ipaserver" }, "changed": false } TASK [Include ipaserver role] ************************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:95 Monday 03 February 2025 18:52:06 -0500 (0:00:00.046) 0:00:19.614 ******* ERROR! the role 'freeipa.ansible_freeipa.ipaserver' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate fatal: [managed-node1]: FAILED! => { "changed": false, "reason": "the role 'freeipa.ansible_freeipa.ipaserver' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate" } TASK [FAILURE - check entropy] ************************************************* task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:99 Monday 03 February 2025 18:52:06 -0500 (0:00:00.051) 0:00:19.666 ******* ok: [managed-node1] => { "changed": false, "cmd": [ "cat", "/proc/sys/kernel/random/entropy_avail" ], "delta": "0:00:00.003213", "end": "2025-02-03 18:52:07.401526", "rc": 0, "start": "2025-02-03 18:52:07.398313" } STDOUT: 256 TASK [FAILURE - get logs for debugging] **************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:102 Monday 03 February 2025 18:52:07 -0500 (0:00:00.599) 0:00:20.265 ******* ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail\ncd /var/log\ntar -czf /tmp/ipalogs.tgz $( [[ -e messages ]] && echo messages ) $( [[ -e ipaserver-install.log ]] && echo ipaserver-install.log ) $( [[ -e ipaclient-install.log ]] && echo ipaclient-install.log ) $( [[ -e pki ]] && echo pki )\nchmod '0644' /tmp/ipalogs.tgz", "delta": "0:00:00.111958", "end": "2025-02-03 18:52:07.951980", "rc": 0, "start": "2025-02-03 18:52:07.840022" } TASK [FAILURE - grab archive] ************************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:113 Monday 03 February 2025 18:52:08 -0500 (0:00:00.554) 0:00:20.819 ******* changed: [managed-node1] => { "changed": true, "checksum": "72a3408e0ee88b58870c84ee5a40768c24dd73c0", "dest": "/tmp/ipalogs.tgz", "md5sum": "7d0ba1e5c40dec869cd3a5df80af24d4", "remote_checksum": "72a3408e0ee88b58870c84ee5a40768c24dd73c0", "remote_md5sum": null } TASK [FAILURE - unpack archive] ************************************************ task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:118 Monday 03 February 2025 18:52:08 -0500 (0:00:00.551) 0:00:21.371 ******* ok: [managed-node1 -> 127.0.0.1] => { "changed": false, "cmd": "set -euo pipefail\ncd \"/tmp\"\ntar -xvzf ipalogs.tgz\nchmod 0644 *", "delta": "0:00:00.023540", "end": "2025-02-03 18:52:08.918439", "rc": 0, "start": "2025-02-03 18:52:08.894899" } STDOUT: messages TASK [Failed] ****************************************************************** task path: /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:126 Monday 03 February 2025 18:52:09 -0500 (0:00:00.441) 0:00:21.812 ******* fatal: [managed-node1]: FAILED! => { "changed": false } MSG: failed PLAY RECAP ********************************************************************* managed-node1 : ok=15 changed=4 unreachable=0 failed=2 skipped=3 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Monday 03 February 2025 18:52:09 -0500 (0:00:00.031) 0:00:21.844 ******* =============================================================================== Install ansible-freeipa ------------------------------------------------- 4.48s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:18 Ensure hostname package is installed ------------------------------------ 4.40s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:53 Ensure nss package is up-to-date ---------------------------------------- 4.23s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:65 Gathering Facts --------------------------------------------------------- 3.79s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:2 Set hostname ------------------------------------------------------------ 1.15s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:59 FAILURE - check entropy ------------------------------------------------- 0.60s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:99 FAILURE - get logs for debugging ---------------------------------------- 0.55s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:102 Check if system is ostree ----------------------------------------------- 0.55s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:13 FAILURE - grab archive -------------------------------------------------- 0.55s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:113 FAILURE - unpack archive ------------------------------------------------ 0.44s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:118 Check if system is ostree ----------------------------------------------- 0.40s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:9 See if collection exists ------------------------------------------------ 0.40s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:85 Set __is_beaker_env ----------------------------------------------------- 0.06s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:2 Include ipaserver role -------------------------------------------------- 0.05s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:95 Set name of ipa server role --------------------------------------------- 0.05s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:91 Failed ------------------------------------------------------------------ 0.03s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:126 Set flag to indicate system is ostree ----------------------------------- 0.03s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:14 Create role symlinks ---------------------------------------------------- 0.02s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:41 Ensure freeipa-repo is absent ------------------------------------------- 0.02s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:24 Clone ansible-freeipa repo ---------------------------------------------- 0.02s /tmp/collections-gPI/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:32