ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpqiil5c75 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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_cluster_destroy.yml ******************************************** 1 plays in /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml PLAY [Deconfigure cluster] ***************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:3 Monday 01 August 2022 16:51:17 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:10 Monday 01 August 2022 16:51:18 +0000 (0:00:01.464) 0:00:01.478 ********* TASK [linux-system-roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:9 Monday 01 August 2022 16:51:18 +0000 (0:00:00.032) 0:00:01.511 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [linux-system-roles.ha_cluster : Ensure facts used by tests] ************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:14 Monday 01 August 2022 16:51:18 +0000 (0:00:00.041) 0:00:01.552 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Do not try to enable RHEL repositories] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:20 Monday 01 August 2022 16:51:18 +0000 (0:00:00.022) 0:00:01.575 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/fedora-36.qcow2.snap TASK [Run HA Cluster role] ***************************************************** task path: /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:15 Monday 01 August 2022 16:51:18 +0000 (0:00:00.027) 0:00:01.602 ********* TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:3 Monday 01 August 2022 16:51:18 +0000 (0:00:00.037) 0:00:01.640 ********* included: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.ha_cluster : Ensure ansible_facts used by role] ******* task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:2 Monday 01 August 2022 16:51:18 +0000 (0:00:00.026) 0:00:01.666 ********* ok: [/cache/fedora-36.qcow2.snap] TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:8 Monday 01 August 2022 16:51:19 +0000 (0:00:00.702) 0:00:02.369 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Check and prepare role variables] ******** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:6 Monday 01 August 2022 16:51:19 +0000 (0:00:00.040) 0:00:02.410 ********* included: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.ha_cluster : Fail if passwords are not specified] ***** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:5 Monday 01 August 2022 16:51:19 +0000 (0:00:00.028) 0:00:02.439 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=ha_cluster_hacluster_password) => { "ansible_loop_var": "item", "changed": false, "item": "ha_cluster_hacluster_password", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Fail if nodes do not have the same number of SBD devices specified] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:13 Monday 01 August 2022 16:51:19 +0000 (0:00:00.022) 0:00:02.462 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Discover cluster node names] ************* task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:26 Monday 01 August 2022 16:51:19 +0000 (0:00:00.019) 0:00:02.481 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__ha_cluster_node_name": "localhost" }, "changed": false } TASK [linux-system-roles.ha_cluster : Collect cluster node names] ************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:30 Monday 01 August 2022 16:51:19 +0000 (0:00:00.041) 0:00:02.523 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__ha_cluster_all_node_names": [ "localhost" ] }, "changed": false } TASK [linux-system-roles.ha_cluster : Figure out if ATB needs to be enabled for SBD] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:38 Monday 01 August 2022 16:51:19 +0000 (0:00:00.049) 0:00:02.572 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__ha_cluster_sbd_needs_atb": false }, "changed": false } TASK [linux-system-roles.ha_cluster : Fail if SBD needs ATB enabled and the user configured ATB to be disabled] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:53 Monday 01 August 2022 16:51:19 +0000 (0:00:00.042) 0:00:02.615 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Install and configure cluster packages] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:9 Monday 01 August 2022 16:51:19 +0000 (0:00:00.030) 0:00:02.646 ********* included: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:3 Monday 01 August 2022 16:51:19 +0000 (0:00:00.030) 0:00:02.676 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/RedHat.yml" }, "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [/cache/fedora-36.qcow2.snap] => (item=Fedora.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/Fedora.yml" }, "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Run platform/version specific tasks to enable repositories] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:24 Monday 01 August 2022 16:51:20 +0000 (0:00:00.060) 0:00:02.736 ********* TASK [linux-system-roles.ha_cluster : Install cluster packages] **************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:30 Monday 01 August 2022 16:51:20 +0000 (0:00:00.031) 0:00:02.768 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ha_cluster : Set hacluster password] ****************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:45 Monday 01 August 2022 16:51:22 +0000 (0:00:02.265) 0:00:05.034 ********* changed: [/cache/fedora-36.qcow2.snap] => { "append": false, "changed": true, "comment": "cluster user", "group": 189, "home": "/home/hacluster", "move_home": false, "name": "hacluster", "password": "NOT_LOGGING_PASSWORD", "shell": "/sbin/nologin", "state": "present", "uid": 189 } TASK [linux-system-roles.ha_cluster : Configure firewall] ********************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:14 Monday 01 August 2022 16:51:23 +0000 (0:00:00.779) 0:00:05.814 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Configure pcs / pcsd] ******************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:17 Monday 01 August 2022 16:51:23 +0000 (0:00:00.021) 0:00:05.835 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Distribute fence-virt authkey] *********** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:20 Monday 01 August 2022 16:51:23 +0000 (0:00:00.021) 0:00:05.857 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Configure SBD] *************************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:23 Monday 01 August 2022 16:51:23 +0000 (0:00:00.019) 0:00:05.876 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Configure cluster nodes] ***************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:26 Monday 01 August 2022 16:51:23 +0000 (0:00:00.021) 0:00:05.897 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Enable or disable cluster services on boot] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:29 Monday 01 August 2022 16:51:23 +0000 (0:00:00.018) 0:00:05.916 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Pcs auth] ******************************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:32 Monday 01 August 2022 16:51:23 +0000 (0:00:00.018) 0:00:05.935 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Start the cluster and reload corosync.conf] *** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:37 Monday 01 August 2022 16:51:23 +0000 (0:00:00.017) 0:00:05.952 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Create and push CIB] ********************* task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:40 Monday 01 August 2022 16:51:23 +0000 (0:00:00.019) 0:00:05.972 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Remove cluster configuration] ************ task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:47 Monday 01 August 2022 16:51:23 +0000 (0:00:00.020) 0:00:05.992 ********* included: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/cluster-destroy-pcs-0.10.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.ha_cluster : Remove cluster configuration] ************ task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 Monday 01 August 2022 16:51:23 +0000 (0:00:00.032) 0:00:06.025 ********* changed: [/cache/fedora-36.qcow2.snap] => (item=/etc/corosync/corosync.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "pcs", "cluster", "destroy" ], "delta": "0:00:02.965313", "end": "2022-08-01 16:51:26.526448", "item": "/etc/corosync/corosync.conf", "rc": 0, "start": "2022-08-01 16:51:23.561135" } STDERR: Shutting down pacemaker/corosync services... Killing any remaining services... Removing all cluster configuration files... ok: [/cache/fedora-36.qcow2.snap] => (item=/var/lib/pacemaker/cib/cib.xml) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "pcs", "cluster", "destroy" ], "delta": null, "end": null, "item": "/var/lib/pacemaker/cib/cib.xml", "rc": 0, "start": null } STDOUT: skipped, since /var/lib/pacemaker/cib/cib.xml does not exist MSG: Did not run command since '/var/lib/pacemaker/cib/cib.xml' does not exist TASK [linux-system-roles.ha_cluster : Remove fence-virt authkey] *************** task path: /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:50 Monday 01 August 2022 16:51:27 +0000 (0:00:04.083) 0:00:10.108 ********* changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "path": "/etc/cluster/fence_xvm.key", "state": "absent" } META: role_complete for /cache/fedora-36.qcow2.snap TASK [Stat corosync.conf] ****************************************************** task path: /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:19 Monday 01 August 2022 16:51:28 +0000 (0:00:00.645) 0:00:10.754 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat cib.xml] ************************************************************ task path: /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:24 Monday 01 August 2022 16:51:28 +0000 (0:00:00.629) 0:00:11.384 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat fence_xvm.key] ****************************************************** task path: /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:29 Monday 01 August 2022 16:51:29 +0000 (0:00:00.494) 0:00:11.878 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Check the files do not exist] ******************************************** task path: /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:34 Monday 01 August 2022 16:51:29 +0000 (0:00:00.489) 0:00:12.368 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=19 changed=3 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Monday 01 August 2022 16:51:29 +0000 (0:00:00.043) 0:00:12.412 ********* =============================================================================== linux-system-roles.ha_cluster : Remove cluster configuration ------------ 4.08s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 linux-system-roles.ha_cluster : Install cluster packages ---------------- 2.27s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:30 Gathering Facts --------------------------------------------------------- 1.46s /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:3 ---------------------------- linux-system-roles.ha_cluster : Set hacluster password ------------------ 0.78s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:45 linux-system-roles.ha_cluster : Ensure ansible_facts used by role ------- 0.70s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:2 linux-system-roles.ha_cluster : Remove fence-virt authkey --------------- 0.65s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:50 -- Stat corosync.conf ------------------------------------------------------ 0.63s /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:19 --------------------------- Stat cib.xml ------------------------------------------------------------ 0.49s /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:24 --------------------------- Stat fence_xvm.key ------------------------------------------------------ 0.49s /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:29 --------------------------- linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.06s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:3 linux-system-roles.ha_cluster : Collect cluster node names -------------- 0.05s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:30 Check the files do not exist -------------------------------------------- 0.04s /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:34 --------------------------- linux-system-roles.ha_cluster : Figure out if ATB needs to be enabled for SBD --- 0.04s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:38 linux-system-roles.ha_cluster : Set node name to 'localhost' for single-node clusters --- 0.04s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:9 linux-system-roles.ha_cluster : Discover cluster node names ------------- 0.04s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:26 linux-system-roles.ha_cluster : Set platform/version specific variables --- 0.04s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:8 Run HA Cluster role ----------------------------------------------------- 0.04s /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:15 --------------------------- Set up test environment ------------------------------------------------- 0.03s /tmp/tmpzqy26c9a/tests/tests_cluster_destroy.yml:10 --------------------------- linux-system-roles.ha_cluster : Remove cluster configuration ------------ 0.03s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:47 -- linux-system-roles.ha_cluster : Run platform/version specific tasks to enable repositories --- 0.03s /tmp/tmpzqy26c9a/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:24 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpqiil5c75 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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_cluster_destroy.yml ******************************************** 1 plays in /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml PLAY [Deconfigure cluster] ***************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:3 Monday 01 August 2022 17:15:50 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:10 Monday 01 August 2022 17:15:51 +0000 (0:00:01.482) 0:00:01.496 ********* TASK [fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 Monday 01 August 2022 17:15:51 +0000 (0:00:00.033) 0:00:01.530 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Ensure facts used by tests] ******* task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:14 Monday 01 August 2022 17:15:51 +0000 (0:00:00.045) 0:00:01.575 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Do not try to enable RHEL repositories] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:20 Monday 01 August 2022 17:15:51 +0000 (0:00:00.020) 0:00:01.595 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/fedora-36.qcow2.snap TASK [Run HA Cluster role] ***************************************************** task path: /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:15 Monday 01 August 2022 17:15:51 +0000 (0:00:00.026) 0:00:01.622 ********* TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:3 Monday 01 August 2022 17:15:51 +0000 (0:00:00.037) 0:00:01.660 ********* included: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Ensure ansible_facts used by role] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:2 Monday 01 August 2022 17:15:51 +0000 (0:00:00.026) 0:00:01.687 ********* ok: [/cache/fedora-36.qcow2.snap] TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:7 Monday 01 August 2022 17:15:52 +0000 (0:00:00.683) 0:00:02.370 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Check and prepare role variables] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:6 Monday 01 August 2022 17:15:52 +0000 (0:00:00.037) 0:00:02.408 ********* included: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Fail if passwords are not specified] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:5 Monday 01 August 2022 17:15:52 +0000 (0:00:00.028) 0:00:02.437 ********* skipping: [/cache/fedora-36.qcow2.snap] => (item=ha_cluster_hacluster_password) => { "ansible_loop_var": "item", "changed": false, "item": "ha_cluster_hacluster_password", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Fail if nodes do not have the same number of SBD devices specified] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:13 Monday 01 August 2022 17:15:52 +0000 (0:00:00.021) 0:00:02.458 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Discover cluster node names] ****** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:26 Monday 01 August 2022 17:15:52 +0000 (0:00:00.018) 0:00:02.477 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__ha_cluster_node_name": "localhost" }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Collect cluster node names] ******* task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:30 Monday 01 August 2022 17:15:52 +0000 (0:00:00.040) 0:00:02.517 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__ha_cluster_all_node_names": [ "localhost" ] }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Figure out if ATB needs to be enabled for SBD] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:34 Monday 01 August 2022 17:15:52 +0000 (0:00:00.052) 0:00:02.569 ********* ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__ha_cluster_sbd_needs_atb": false }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Fail if SBD needs ATB enabled and the user configured ATB to be disabled] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:44 Monday 01 August 2022 17:15:52 +0000 (0:00:00.043) 0:00:02.613 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Install and configure cluster packages] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:9 Monday 01 August 2022 17:15:52 +0000 (0:00:00.033) 0:00:02.646 ********* included: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:3 Monday 01 August 2022 17:15:52 +0000 (0:00:00.031) 0:00:02.678 ********* ok: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/RedHat.yml" }, "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [/cache/fedora-36.qcow2.snap] => (item=Fedora.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/enable-repositories/Fedora.yml" }, "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.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/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:21 Monday 01 August 2022 17:15:52 +0000 (0:00:00.060) 0:00:02.738 ********* TASK [fedora.linux_system_roles.ha_cluster : Install cluster packages] ********* task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:27 Monday 01 August 2022 17:15:52 +0000 (0:00:00.034) 0:00:02.772 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ha_cluster : Set hacluster password] *********** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:34 Monday 01 August 2022 17:15:55 +0000 (0:00:02.236) 0:00:05.009 ********* changed: [/cache/fedora-36.qcow2.snap] => { "append": false, "changed": true, "comment": "cluster user", "group": 189, "home": "/home/hacluster", "move_home": false, "name": "hacluster", "password": "NOT_LOGGING_PASSWORD", "shell": "/sbin/nologin", "state": "present", "uid": 189 } TASK [fedora.linux_system_roles.ha_cluster : Configure firewall] *************** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:14 Monday 01 August 2022 17:15:55 +0000 (0:00:00.742) 0:00:05.752 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Configure pcs / pcsd] ************* task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:17 Monday 01 August 2022 17:15:55 +0000 (0:00:00.023) 0:00:05.775 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Distribute fence-virt authkey] **** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:20 Monday 01 August 2022 17:15:56 +0000 (0:00:00.019) 0:00:05.795 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Configure SBD] ******************** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:23 Monday 01 August 2022 17:15:56 +0000 (0:00:00.021) 0:00:05.816 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Configure cluster nodes] ********** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:26 Monday 01 August 2022 17:15:56 +0000 (0:00:00.020) 0:00:05.837 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Enable or disable cluster services on boot] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:29 Monday 01 August 2022 17:15:56 +0000 (0:00:00.020) 0:00:05.858 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Pcs auth] ************************* task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:32 Monday 01 August 2022 17:15:56 +0000 (0:00:00.019) 0:00:05.878 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Start the cluster and reload corosync.conf] *** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:37 Monday 01 August 2022 17:15:56 +0000 (0:00:00.018) 0:00:05.896 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Create and push CIB] ************** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:40 Monday 01 August 2022 17:15:56 +0000 (0:00:00.019) 0:00:05.915 ********* skipping: [/cache/fedora-36.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Remove cluster configuration] ***** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:47 Monday 01 August 2022 17:15:56 +0000 (0:00:00.018) 0:00:05.934 ********* included: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/cluster-destroy-pcs-0.10.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Remove cluster configuration] ***** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 Monday 01 August 2022 17:15:56 +0000 (0:00:00.030) 0:00:05.964 ********* changed: [/cache/fedora-36.qcow2.snap] => (item=/etc/corosync/corosync.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "pcs", "cluster", "destroy" ], "delta": "0:00:02.880754", "end": "2022-08-01 17:15:59.003715", "item": "/etc/corosync/corosync.conf", "rc": 0, "start": "2022-08-01 17:15:56.122961" } STDERR: Shutting down pacemaker/corosync services... Killing any remaining services... Removing all cluster configuration files... ok: [/cache/fedora-36.qcow2.snap] => (item=/var/lib/pacemaker/cib/cib.xml) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "pcs", "cluster", "destroy" ], "delta": null, "end": null, "item": "/var/lib/pacemaker/cib/cib.xml", "rc": 0, "start": null } STDOUT: skipped, since /var/lib/pacemaker/cib/cib.xml does not exist MSG: Did not run command since '/var/lib/pacemaker/cib/cib.xml' does not exist TASK [fedora.linux_system_roles.ha_cluster : Remove fence-virt authkey] ******** task path: /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:50 Monday 01 August 2022 17:16:00 +0000 (0:00:03.978) 0:00:09.942 ********* changed: [/cache/fedora-36.qcow2.snap] => { "changed": true, "path": "/etc/cluster/fence_xvm.key", "state": "absent" } META: role_complete for /cache/fedora-36.qcow2.snap TASK [Stat corosync.conf] ****************************************************** task path: /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:19 Monday 01 August 2022 17:16:00 +0000 (0:00:00.621) 0:00:10.564 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat cib.xml] ************************************************************ task path: /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:24 Monday 01 August 2022 17:16:01 +0000 (0:00:00.608) 0:00:11.173 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat fence_xvm.key] ****************************************************** task path: /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:29 Monday 01 August 2022 17:16:01 +0000 (0:00:00.493) 0:00:11.667 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Check the files do not exist] ******************************************** task path: /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:34 Monday 01 August 2022 17:16:02 +0000 (0:00:00.492) 0:00:12.160 ********* ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=19 changed=3 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Monday 01 August 2022 17:16:02 +0000 (0:00:00.041) 0:00:12.202 ********* =============================================================================== fedora.linux_system_roles.ha_cluster : Remove cluster configuration ----- 3.98s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 fedora.linux_system_roles.ha_cluster : Install cluster packages --------- 2.24s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:27 Gathering Facts --------------------------------------------------------- 1.48s /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:3 ----------------- fedora.linux_system_roles.ha_cluster : Set hacluster password ----------- 0.74s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:34 fedora.linux_system_roles.ha_cluster : Ensure ansible_facts used by role --- 0.68s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:2 fedora.linux_system_roles.ha_cluster : Remove fence-virt authkey -------- 0.62s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:50 Stat corosync.conf ------------------------------------------------------ 0.61s /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:19 ---------------- Stat cib.xml ------------------------------------------------------------ 0.49s /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:24 ---------------- Stat fence_xvm.key ------------------------------------------------------ 0.49s /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:29 ---------------- fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.06s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:3 fedora.linux_system_roles.ha_cluster : Collect cluster node names ------- 0.05s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:30 fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters --- 0.05s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 fedora.linux_system_roles.ha_cluster : Figure out if ATB needs to be enabled for SBD --- 0.04s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:34 Check the files do not exist -------------------------------------------- 0.04s /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:34 ---------------- fedora.linux_system_roles.ha_cluster : Discover cluster node names ------ 0.04s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:26 fedora.linux_system_roles.ha_cluster : Set platform/version specific variables --- 0.04s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:7 Run HA Cluster role ----------------------------------------------------- 0.04s /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:15 ---------------- fedora.linux_system_roles.ha_cluster : Run platform/version specific tasks to enable repositories --- 0.03s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:21 Set up test environment ------------------------------------------------- 0.03s /tmp/tmp66qc7d6y/tests/ha_cluster/tests_cluster_destroy.yml:10 ---------------- fedora.linux_system_roles.ha_cluster : Fail if SBD needs ATB enabled and the user configured ATB to be disabled --- 0.03s /tmp/tmpqiil5c75/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:44