ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [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_default.yml **************************************************** 1 plays in /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml PLAY [Ensure mandatory variables are defined] ********************************** META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:10 Friday 20 September 2024 20:41:45 -0400 (0:00:00.036) 0:00:00.036 ****** TASK [fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 Friday 20 September 2024 20:41:45 -0400 (0:00:00.136) 0:00:00.172 ****** ok: [managed_node3] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Ensure facts used by tests] ******* task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:14 Friday 20 September 2024 20:41:45 -0400 (0:00:00.048) 0:00:00.221 ****** ok: [managed_node3] TASK [fedora.linux_system_roles.ha_cluster : Check if system is ostree] ******** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:22 Friday 20 September 2024 20:41:46 -0400 (0:00:00.726) 0:00:00.948 ****** ok: [managed_node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:27 Friday 20 September 2024 20:41:47 -0400 (0:00:00.503) 0:00:01.451 ****** ok: [managed_node3] => { "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-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:32 Friday 20 September 2024 20:41:47 -0400 (0:00:00.064) 0:00:01.516 ****** skipping: [managed_node3] => { "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-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:41 Friday 20 September 2024 20:41:47 -0400 (0:00:00.053) 0:00:01.570 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Run the role] ************************************************************ task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:15 Friday 20 September 2024 20:41:47 -0400 (0:00:00.053) 0:00:01.624 ****** TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:3 Friday 20 September 2024 20:41:47 -0400 (0:00:00.086) 0:00:01.710 ****** included: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.ha_cluster : Ensure ansible_facts used by role] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:2 Friday 20 September 2024 20:41:47 -0400 (0:00:00.040) 0:00:01.751 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Check if system is ostree] ******** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:10 Friday 20 September 2024 20:41:47 -0400 (0:00:00.057) 0:00:01.808 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:15 Friday 20 September 2024 20:41:47 -0400 (0:00:00.054) 0:00:01.862 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:19 Friday 20 September 2024 20:41:47 -0400 (0:00:00.053) 0:00:01.916 ****** ok: [managed_node3] => (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-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [managed_node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Set Linux Pacemaker shell specific variables] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:34 Friday 20 September 2024 20:41:47 -0400 (0:00:00.102) 0:00:02.019 ****** ok: [managed_node3] => { "ansible_facts": {}, "ansible_included_var_files": [ "/tmp/collections-vRJ/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-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:6 Friday 20 September 2024 20:41:47 -0400 (0:00:00.059) 0:00:02.079 ****** included: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml for managed_node3 TASK [fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:3 Friday 20 September 2024 20:41:47 -0400 (0:00:00.033) 0:00:02.112 ****** ok: [managed_node3] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/collections-vRJ/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_node3] => (item=CentOS.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/CentOS.yml" }, "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml" } skipping: [managed_node3] => (item=CentOS_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.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-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:21 Friday 20 September 2024 20:41:47 -0400 (0:00:00.129) 0:00:02.241 ****** included: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/CentOS.yml for managed_node3 TASK [fedora.linux_system_roles.ha_cluster : List active CentOS repositories] *** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/CentOS.yml:3 Friday 20 September 2024 20:41:48 -0400 (0:00:00.113) 0:00:02.355 ****** [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. fatal: [managed_node3]: FAILED! => { "changed": false, "cmd": "dnf repolist", "rc": 2 } MSG: [Errno 2] No such file or directory TASK [Extract errors] ********************************************************** task path: /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:19 Friday 20 September 2024 20:41:48 -0400 (0:00:00.469) 0:00:02.825 ****** fatal: [managed_node3]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'results' The error appears to be in '/tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml': line 19, column 11, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: rescue: - name: Extract errors ^ here NO MORE HOSTS LEFT ************************************************************* PLAY RECAP ********************************************************************* managed_node3 : ok=10 changed=0 unreachable=0 failed=1 skipped=5 rescued=1 ignored=0 Friday 20 September 2024 20:41:48 -0400 (0:00:00.034) 0:00:02.859 ****** =============================================================================== fedora.linux_system_roles.ha_cluster : Ensure facts used by tests ------- 0.73s /tmp/collections-vRJ/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.50s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:22 fedora.linux_system_roles.ha_cluster : List active CentOS repositories --- 0.47s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/CentOS.yml:3 Set up test environment ------------------------------------------------- 0.14s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:10 fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.13s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:3 fedora.linux_system_roles.ha_cluster : Run platform/version specific tasks to enable repositories --- 0.11s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-package-repositories.yml:21 fedora.linux_system_roles.ha_cluster : Set platform/version specific variables --- 0.10s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:19 Run the role ------------------------------------------------------------ 0.09s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:15 fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree --- 0.06s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:27 fedora.linux_system_roles.ha_cluster : Set Linux Pacemaker shell specific variables --- 0.06s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:34 fedora.linux_system_roles.ha_cluster : Ensure ansible_facts used by role --- 0.06s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:2 fedora.linux_system_roles.ha_cluster : Check if system is ostree -------- 0.05s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:10 fedora.linux_system_roles.ha_cluster : Do not try to enable RHEL repositories --- 0.05s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:32 fedora.linux_system_roles.ha_cluster : Copy nss-altfiles ha_cluster users to /etc/passwd --- 0.05s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:41 fedora.linux_system_roles.ha_cluster : Set flag to indicate system is ostree --- 0.05s /tmp/collections-vRJ/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.05s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 fedora.linux_system_roles.ha_cluster : Set platform/version specific variables --- 0.04s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:3 Extract errors ---------------------------------------------------------- 0.03s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/tests/ha_cluster/tests_default.yml:19 fedora.linux_system_roles.ha_cluster : Enable package repositories ------ 0.03s /tmp/collections-vRJ/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:6