ansible-playbook [core 2.17.5] 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-KdU executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles 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_default.yml **************************************************** 1 plays in /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml PLAY [Ensure mandatory variables are defined] ********************************** TASK [Set up test environment] ************************************************* task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:10 Tuesday 08 October 2024 08:19:50 -0400 (0:00:00.009) 0:00:00.009 ******* included: fedora.linux_system_roles.ha_cluster for managed-node2 TASK [fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 Tuesday 08 October 2024 08:19:50 -0400 (0:00:00.037) 0:00:00.046 ******* ok: [managed-node2] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Ensure facts used by tests] ******* task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:14 Tuesday 08 October 2024 08:19:50 -0400 (0:00:00.033) 0:00:00.079 ******* [WARNING]: Platform linux on host localhost 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-node2] TASK [fedora.linux_system_roles.ha_cluster : Check if system is ostree] ******** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:22 Tuesday 08 October 2024 08:19:51 -0400 (0:00:00.814) 0:00:00.894 ******* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:27 Tuesday 08 October 2024 08:19:51 -0400 (0:00:00.523) 0:00:01.417 ******* ok: [managed-node2] => { "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-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:32 Tuesday 08 October 2024 08:19:51 -0400 (0:00:00.045) 0:00:01.463 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == 'RedHat'", "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-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:41 Tuesday 08 October 2024 08:19:51 -0400 (0:00:00.032) 0:00:01.496 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "__ha_cluster_is_ostree | d(false)", "skip_reason": "Conditional result was False" } TASK [Run the role] ************************************************************ task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:15 Tuesday 08 October 2024 08:19:51 -0400 (0:00:00.106) 0:00:01.603 ******* included: fedora.linux_system_roles.ha_cluster for managed-node2 TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:3 Tuesday 08 October 2024 08:19:51 -0400 (0:00:00.086) 0:00:01.689 ******* included: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.ha_cluster : Ensure ansible_facts used by role] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:2 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.030) 0:00:01.720 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "__ha_cluster_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Check if system is ostree] ******** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:10 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.053) 0:00:01.774 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __ha_cluster_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:15 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.027) 0:00:01.802 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __ha_cluster_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:19 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.036) 0:00:01.839 ******* ok: [managed-node2] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_cloud_agents_packages": [], "__ha_cluster_fence_agent_packages_default": "{{ ['fence-agents-all'] + (['fence-virt'] if ansible_architecture == 'x86_64' else []) }}", "__ha_cluster_fullstack_node_packages": [ "corosync", "libknet1-plugins-all", "resource-agents", "pacemaker" ], "__ha_cluster_pcs_provider": "pcs-0.10", "__ha_cluster_qdevice_node_packages": [ "corosync-qdevice", "bash", "coreutils", "curl", "grep", "nss-tools", "openssl", "sed" ], "__ha_cluster_repos": [], "__ha_cluster_role_essential_packages": [ "pcs", "corosync-qnetd", "openssl" ], "__ha_cluster_sbd_packages": [ "sbd" ], "__ha_cluster_services": [ "corosync", "corosync-qdevice", "pacemaker" ] }, "ansible_included_var_files": [ "/tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [managed-node2] => (item=Fedora.yml) => { "ansible_facts": { "__ha_cluster_cloud_agents_packages": [] }, "ansible_included_var_files": [ "/tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed-node2] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Set Linux Pacemaker shell specific variables] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:34 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.070) 0:00:01.909 ******* ok: [managed-node2] => { "ansible_facts": {}, "ansible_included_var_files": [ "/tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/vars/shell_pcs.yml" ], "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Enable package repositories] ****** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:6 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.026) 0:00:01.935 ******* included: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml for managed-node2 TASK [fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:3 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.031) 0:00:01.966 ******* ok: [managed-node2] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/RedHat.yml" }, "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [managed-node2] => (item=Fedora.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/Fedora.yml" }, "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed-node2] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__ha_cluster_enable_repo_tasks_file_candidate is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=Fedora_40.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__ha_cluster_enable_repo_tasks_file_candidate is file", "item": "Fedora_40.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Run platform/version specific tasks to enable repositories] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:21 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.065) 0:00:02.032 ******* included: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/Fedora.yml for managed-node2 TASK [fedora.linux_system_roles.ha_cluster : Install role essential packages] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:11 Tuesday 08 October 2024 08:19:52 -0400 (0:00:00.061) 0:00:02.093 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ha_cluster : Check and prepare role variables] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:17 Tuesday 08 October 2024 08:19:54 -0400 (0:00:01.670) 0:00:03.764 ******* included: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml for managed-node2 TASK [fedora.linux_system_roles.ha_cluster : Discover cluster node names] ****** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:3 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.042) 0:00:03.806 ******* ok: [managed-node2] => { "ansible_facts": { "__ha_cluster_node_name": "localhost" }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Collect cluster node names] ******* task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:7 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.037) 0:00:03.844 ******* ok: [managed-node2] => { "ansible_facts": { "__ha_cluster_all_node_names": [ "localhost" ] }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Fail if ha_cluster_node_options contains unknown or duplicate nodes] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:16 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.040) 0:00:03.884 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "(\n __nodes_from_options != (__nodes_from_options | unique)\n) or (\n __nodes_from_options | difference(__ha_cluster_all_node_names)\n)\n", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Extract node options] ************* task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:30 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.047) 0:00:03.932 ******* ok: [managed-node2] => { "ansible_facts": { "__ha_cluster_local_node": {} }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Fail if passwords are not specified] *** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:43 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.061) 0:00:03.994 ******* failed: [managed-node2] (item=ha_cluster_hacluster_password) => { "ansible_loop_var": "item", "changed": false, "item": "ha_cluster_hacluster_password" } MSG: ha_cluster_hacluster_password must be specified TASK [Extract errors] ********************************************************** task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:19 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.076) 0:00:04.071 ******* ok: [managed-node2] => { "ansible_facts": { "error_list": [ "ha_cluster_hacluster_password must be specified" ] }, "changed": false } TASK [Check errors] ************************************************************ task path: /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:24 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.055) 0:00:04.126 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node2 : ok=19 changed=0 unreachable=0 failed=0 skipped=6 rescued=1 ignored=0 Tuesday 08 October 2024 08:19:54 -0400 (0:00:00.030) 0:00:04.156 ******* =============================================================================== fedora.linux_system_roles.ha_cluster : Install role essential packages --- 1.67s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:11 fedora.linux_system_roles.ha_cluster : Ensure facts used by tests ------- 0.81s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:14 fedora.linux_system_roles.ha_cluster : Check if system is ostree -------- 0.52s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:22 fedora.linux_system_roles.ha_cluster : Copy nss-altfiles ha_cluster users to /etc/passwd --- 0.11s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:41 Run the role ------------------------------------------------------------ 0.09s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:15 fedora.linux_system_roles.ha_cluster : Fail if passwords are not specified --- 0.08s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:43 fedora.linux_system_roles.ha_cluster : Set platform/version specific variables --- 0.07s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:19 fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.07s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:3 fedora.linux_system_roles.ha_cluster : Extract node options ------------- 0.06s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:30 fedora.linux_system_roles.ha_cluster : Run platform/version specific tasks to enable repositories --- 0.06s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:21 Extract errors ---------------------------------------------------------- 0.06s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:19 fedora.linux_system_roles.ha_cluster : Ensure ansible_facts used by role --- 0.05s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:2 fedora.linux_system_roles.ha_cluster : Fail if ha_cluster_node_options contains unknown or duplicate nodes --- 0.05s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:16 fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree --- 0.05s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:27 fedora.linux_system_roles.ha_cluster : Check and prepare role variables --- 0.04s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:17 fedora.linux_system_roles.ha_cluster : Collect cluster node names ------- 0.04s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:7 Set up test environment ------------------------------------------------- 0.04s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:10 fedora.linux_system_roles.ha_cluster : Discover cluster node names ------ 0.04s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:3 fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree --- 0.04s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:15 fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters --- 0.03s /tmp/collections-KdU/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9