ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_cluster_basic_existing_psks.yml ******************************** 2 plays in /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Include vault variables] ************************************************* task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:5 Tuesday 24 September 2024 14:15:42 -0400 (0:00:00.020) 0:00:00.020 ***** ok: [managed-node1] => { "ansible_facts": { "ha_cluster_hacluster_password": { "__ansible_vault": "$ANSIBLE_VAULT;1.1;AES256\n31303833633366333561656439323930303361333161363239346166656537323933313436\n3432386236656563343237306335323637396239616230353561330a313731623238393238\n62343064666336643930663239383936616465643134646536656532323461356237646133\n3761616633323839633232353637366266350a313163633236376666653238633435306565\n3264623032333736393535663833\n" } }, "ansible_included_var_files": [ "/tmp/ha_cluster-cxt/tests/vars/vault-variables.yml" ], "changed": false } META: ran handlers META: ran handlers PLAY [Minimal cluster configuration, using existing PSKs] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:9 Tuesday 24 September 2024 14:15:42 -0400 (0:00:00.020) 0:00:00.040 ***** ok: [managed-node1] META: ran handlers TASK [Create temp directory for secrets] *************************************** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:26 Tuesday 24 September 2024 14:15:43 -0400 (0:00:01.010) 0:00:01.050 ***** changed: [managed-node1 -> localhost] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/lsr_ha_cluster_e6crun5k", "size": 6, "state": "directory", "uid": 0 } TASK [Set up test environment] ************************************************* task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:34 Tuesday 24 September 2024 14:15:43 -0400 (0:00:00.356) 0:00:01.407 ***** TASK [fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 Tuesday 24 September 2024 14:15:43 -0400 (0:00:00.060) 0:00:01.468 ***** ok: [managed-node1] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Ensure facts used by tests] ******* task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:14 Tuesday 24 September 2024 14:15:43 -0400 (0:00:00.054) 0:00:01.522 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Check if system is ostree] ******** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:22 Tuesday 24 September 2024 14:15:43 -0400 (0:00:00.048) 0:00:01.571 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:27 Tuesday 24 September 2024 14:15:44 -0400 (0:00:00.515) 0:00:02.086 ***** ok: [managed-node1] => { "ansible_facts": { "__ha_cluster_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Do not try to enable RHEL repositories] *** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:32 Tuesday 24 September 2024 14:15:44 -0400 (0:00:00.058) 0:00:02.145 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Copy nss-altfiles ha_cluster users to /etc/passwd] *** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:41 Tuesday 24 September 2024 14:15:44 -0400 (0:00:00.042) 0:00:02.188 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run PSKs and certificates fixture] *************************************** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:39 Tuesday 24 September 2024 14:15:44 -0400 (0:00:00.045) 0:00:02.234 ***** included: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tasks/fixture_psks.yml for managed-node1 TASK [List packages on the controller to see if OpenSSL is installed] ********** task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tasks/fixture_psks.yml:15 Tuesday 24 September 2024 14:15:44 -0400 (0:00:00.094) 0:00:02.329 ***** [WARNING]: Found "rpm" but Failed to import the required Python library (rpm) on ip-10-31-10-234.us-east-1.aws.redhat.com's Python /usr/bin/python3.9. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter fatal: [managed-node1 -> localhost]: FAILED! => { "changed": false } MSG: Could not detect a supported package manager from the following list: ['pkg', 'apt', 'rpm', 'portage'], or the required Python library is not installed. Check warnings for details. TASK [Clean up work directory] ************************************************* task path: /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:219 Tuesday 24 September 2024 14:15:44 -0400 (0:00:00.551) 0:00:02.880 ***** changed: [managed-node1 -> localhost] => { "changed": true, "path": "/tmp/lsr_ha_cluster_e6crun5k", "state": "absent" } PLAY RECAP ********************************************************************* managed-node1 : ok=8 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0 Tuesday 24 September 2024 14:15:45 -0400 (0:00:00.394) 0:00:03.275 ***** =============================================================================== Gathering Facts --------------------------------------------------------- 1.01s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:9 List packages on the controller to see if OpenSSL is installed ---------- 0.55s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tasks/fixture_psks.yml:15 fedora.linux_system_roles.ha_cluster : Check if system is ostree -------- 0.52s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:22 Clean up work directory ------------------------------------------------- 0.39s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:219 Create temp directory for secrets --------------------------------------- 0.36s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:26 Run PSKs and certificates fixture --------------------------------------- 0.09s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:39 Set up test environment ------------------------------------------------- 0.06s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:34 fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree --- 0.06s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:27 fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters --- 0.05s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 fedora.linux_system_roles.ha_cluster : Ensure facts used by tests ------- 0.05s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:14 fedora.linux_system_roles.ha_cluster : Copy nss-altfiles ha_cluster users to /etc/passwd --- 0.05s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:41 fedora.linux_system_roles.ha_cluster : Do not try to enable RHEL repositories --- 0.04s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:32 Include vault variables ------------------------------------------------- 0.02s /tmp/collections-Tg1/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_cluster_basic_existing_psks.yml:5