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/tmp75rxkmc7 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/tmprqhfs1fd/tests/tests_cluster_destroy.yml PLAY [Deconfigure cluster] ***************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:3 Monday 01 August 2022 16:03:45 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:10 Monday 01 August 2022 16:03:46 +0000 (0:00:01.239) 0:00:01.253 ********* TASK [linux-system-roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:9 Monday 01 August 2022 16:03:46 +0000 (0:00:00.052) 0:00:01.305 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [linux-system-roles.ha_cluster : Ensure facts used by tests] ************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:14 Monday 01 August 2022 16:03:47 +0000 (0:00:00.055) 0:00:01.361 ********* skipping: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:20 Monday 01 August 2022 16:03:47 +0000 (0:00:00.021) 0:00:01.383 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "ha_cluster_enable_repos": false }, "changed": false } META: role_complete for /cache/rhel-9.qcow2.snap TASK [Run HA Cluster role] ***************************************************** task path: /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:15 Monday 01 August 2022 16:03:47 +0000 (0:00:00.038) 0:00:01.421 ********* TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:3 Monday 01 August 2022 16:03:47 +0000 (0:00:00.037) 0:00:01.459 ********* included: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.ha_cluster : Ensure ansible_facts used by role] ******* task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:2 Monday 01 August 2022 16:03:47 +0000 (0:00:00.028) 0:00:01.487 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:8 Monday 01 August 2022 16:03:47 +0000 (0:00:00.518) 0:00:02.006 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_facts": { "__ha_cluster_repos": [ { "id": "rhel-9-for-{{ ansible_architecture }}-highavailability-rpms", "name": "High Availability" } ] }, "ansible_included_var_files": [ "/tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Check and prepare role variables] ******** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:6 Monday 01 August 2022 16:03:47 +0000 (0:00:00.054) 0:00:02.060 ********* included: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.ha_cluster : Fail if passwords are not specified] ***** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:5 Monday 01 August 2022 16:03:47 +0000 (0:00:00.028) 0:00:02.089 ********* skipping: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:13 Monday 01 August 2022 16:03:47 +0000 (0:00:00.020) 0:00:02.110 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Discover cluster node names] ************* task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:26 Monday 01 August 2022 16:03:47 +0000 (0:00:00.018) 0:00:02.128 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__ha_cluster_node_name": "localhost" }, "changed": false } TASK [linux-system-roles.ha_cluster : Collect cluster node names] ************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:30 Monday 01 August 2022 16:03:47 +0000 (0:00:00.041) 0:00:02.169 ********* ok: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:38 Monday 01 August 2022 16:03:47 +0000 (0:00:00.050) 0:00:02.220 ********* ok: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:53 Monday 01 August 2022 16:03:47 +0000 (0:00:00.046) 0:00:02.267 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Install and configure cluster packages] *** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:9 Monday 01 August 2022 16:03:47 +0000 (0:00:00.031) 0:00:02.299 ********* included: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:3 Monday 01 August 2022 16:03:48 +0000 (0:00:00.029) 0:00:02.328 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Run platform/version specific tasks to enable repositories] *** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:24 Monday 01 August 2022 16:03:48 +0000 (0:00:00.032) 0:00:02.360 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Install cluster packages] **************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:30 Monday 01 August 2022 16:03:48 +0000 (0:00:00.019) 0:00:02.379 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ha_cluster : Set hacluster password] ****************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:45 Monday 01 August 2022 16:03:49 +0000 (0:00:01.096) 0:00:03.475 ********* changed: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:14 Monday 01 August 2022 16:03:49 +0000 (0:00:00.584) 0:00:04.060 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Configure pcs / pcsd] ******************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:17 Monday 01 August 2022 16:03:49 +0000 (0:00:00.028) 0:00:04.088 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Distribute fence-virt authkey] *********** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:20 Monday 01 August 2022 16:03:49 +0000 (0:00:00.026) 0:00:04.115 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Configure SBD] *************************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:23 Monday 01 August 2022 16:03:49 +0000 (0:00:00.020) 0:00:04.135 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Configure cluster nodes] ***************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:26 Monday 01 August 2022 16:03:49 +0000 (0:00:00.019) 0:00:04.155 ********* skipping: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:29 Monday 01 August 2022 16:03:49 +0000 (0:00:00.020) 0:00:04.175 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Pcs auth] ******************************** task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:32 Monday 01 August 2022 16:03:49 +0000 (0:00:00.021) 0:00:04.197 ********* skipping: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:37 Monday 01 August 2022 16:03:49 +0000 (0:00:00.022) 0:00:04.219 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Create and push CIB] ********************* task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:40 Monday 01 August 2022 16:03:49 +0000 (0:00:00.023) 0:00:04.243 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Remove cluster configuration] ************ task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:47 Monday 01 August 2022 16:03:49 +0000 (0:00:00.022) 0:00:04.265 ********* included: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/cluster-destroy-pcs-0.10.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.ha_cluster : Remove cluster configuration] ************ task path: /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 Monday 01 August 2022 16:03:49 +0000 (0:00:00.034) 0:00:04.299 ********* changed: [/cache/rhel-9.qcow2.snap] => (item=/etc/corosync/corosync.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "pcs", "cluster", "destroy" ], "delta": "0:00:02.263003", "end": "2022-08-01 12:03:51.644706", "item": "/etc/corosync/corosync.conf", "rc": 0, "start": "2022-08-01 12:03:49.381703" } STDERR: Shutting down pacemaker/corosync services... Killing any remaining services... Removing all cluster configuration files... ok: [/cache/rhel-9.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/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:50 Monday 01 August 2022 16:03:53 +0000 (0:00:03.117) 0:00:07.417 ********* changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "path": "/etc/cluster/fence_xvm.key", "state": "absent" } META: role_complete for /cache/rhel-9.qcow2.snap TASK [Stat corosync.conf] ****************************************************** task path: /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:19 Monday 01 August 2022 16:03:53 +0000 (0:00:00.516) 0:00:07.934 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat cib.xml] ************************************************************ task path: /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:24 Monday 01 August 2022 16:03:54 +0000 (0:00:00.475) 0:00:08.409 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat fence_xvm.key] ****************************************************** task path: /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:29 Monday 01 August 2022 16:03:54 +0000 (0:00:00.394) 0:00:08.803 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Check the files do not exist] ******************************************** task path: /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:34 Monday 01 August 2022 16:03:54 +0000 (0:00:00.345) 0:00:09.149 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=20 changed=3 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Monday 01 August 2022 16:03:54 +0000 (0:00:00.042) 0:00:09.192 ********* =============================================================================== linux-system-roles.ha_cluster : Remove cluster configuration ------------ 3.12s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 Gathering Facts --------------------------------------------------------- 1.24s /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:3 ---------------------------- linux-system-roles.ha_cluster : Install cluster packages ---------------- 1.10s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:30 linux-system-roles.ha_cluster : Set hacluster password ------------------ 0.58s /tmp/tmprqhfs1fd/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.52s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:2 linux-system-roles.ha_cluster : Remove fence-virt authkey --------------- 0.52s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:50 -- Stat corosync.conf ------------------------------------------------------ 0.48s /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:19 --------------------------- Stat cib.xml ------------------------------------------------------------ 0.39s /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:24 --------------------------- Stat fence_xvm.key ------------------------------------------------------ 0.35s /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:29 --------------------------- linux-system-roles.ha_cluster : Set node name to 'localhost' for single-node clusters --- 0.06s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:9 linux-system-roles.ha_cluster : Set platform/version specific variables --- 0.05s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:8 Set up test environment ------------------------------------------------- 0.05s /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:10 --------------------------- linux-system-roles.ha_cluster : Collect cluster node names -------------- 0.05s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:30 linux-system-roles.ha_cluster : Figure out if ATB needs to be enabled for SBD --- 0.05s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:38 Check the files do not exist -------------------------------------------- 0.04s /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:34 --------------------------- linux-system-roles.ha_cluster : Discover cluster node names ------------- 0.04s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/check-and-prepare-role-variables.yml:26 linux-system-roles.ha_cluster : Do not try to enable RHEL repositories --- 0.04s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:20 Run HA Cluster role ----------------------------------------------------- 0.04s /tmp/tmprqhfs1fd/tests/tests_cluster_destroy.yml:15 --------------------------- linux-system-roles.ha_cluster : Remove cluster configuration ------------ 0.03s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:47 -- linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.03s /tmp/tmprqhfs1fd/tests/roles/linux-system-roles.ha_cluster/tasks/install-and-configure-packages.yml:3 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/tmp75rxkmc7 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/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml PLAY [Deconfigure cluster] ***************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:3 Monday 01 August 2022 16:24:15 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:10 Monday 01 August 2022 16:24:17 +0000 (0:00:01.276) 0:00:01.289 ********* TASK [fedora.linux_system_roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 Monday 01 August 2022 16:24:17 +0000 (0:00:00.060) 0:00:01.349 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [fedora.linux_system_roles.ha_cluster : Ensure facts used by tests] ******* task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:14 Monday 01 August 2022 16:24:17 +0000 (0:00:00.044) 0:00:01.394 ********* skipping: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:20 Monday 01 August 2022 16:24:17 +0000 (0:00:00.021) 0:00:01.416 ********* ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "ha_cluster_enable_repos": false }, "changed": false } META: role_complete for /cache/rhel-9.qcow2.snap TASK [Run HA Cluster role] ***************************************************** task path: /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:15 Monday 01 August 2022 16:24:17 +0000 (0:00:00.041) 0:00:01.457 ********* TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:3 Monday 01 August 2022 16:24:17 +0000 (0:00:00.040) 0:00:01.497 ********* included: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Ensure ansible_facts used by role] *** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:2 Monday 01 August 2022 16:24:17 +0000 (0:00:00.029) 0:00:01.527 ********* ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.ha_cluster : Set platform/version specific variables] *** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:7 Monday 01 August 2022 16:24:17 +0000 (0:00:00.513) 0:00:02.041 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_facts": { "__ha_cluster_repos": [ { "id": "rhel-9-for-{{ ansible_architecture }}-highavailability-rpms", "name": "High Availability" } ] }, "ansible_included_var_files": [ "/tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/vars/RedHat_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Check and prepare role variables] *** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:6 Monday 01 August 2022 16:24:17 +0000 (0:00:00.054) 0:00:02.095 ********* included: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Fail if passwords are not specified] *** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:5 Monday 01 August 2022 16:24:17 +0000 (0:00:00.032) 0:00:02.128 ********* skipping: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:13 Monday 01 August 2022 16:24:17 +0000 (0:00:00.020) 0:00:02.148 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Discover cluster node names] ****** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:26 Monday 01 August 2022 16:24:17 +0000 (0:00:00.019) 0:00:02.167 ********* ok: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:30 Monday 01 August 2022 16:24:17 +0000 (0:00:00.039) 0:00:02.207 ********* ok: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:34 Monday 01 August 2022 16:24:18 +0000 (0:00:00.047) 0:00:02.254 ********* ok: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:44 Monday 01 August 2022 16:24:18 +0000 (0:00:00.042) 0:00:02.296 ********* skipping: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:9 Monday 01 August 2022 16:24:18 +0000 (0:00:00.030) 0:00:02.327 ********* included: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:3 Monday 01 August 2022 16:24:18 +0000 (0:00:00.033) 0:00:02.360 ********* skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:21 Monday 01 August 2022 16:24:18 +0000 (0:00:00.035) 0:00:02.396 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Install cluster packages] ********* task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:27 Monday 01 August 2022 16:24:18 +0000 (0:00:00.021) 0:00:02.417 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.ha_cluster : Set hacluster password] *********** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:34 Monday 01 August 2022 16:24:19 +0000 (0:00:01.113) 0:00:03.531 ********* changed: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:14 Monday 01 August 2022 16:24:19 +0000 (0:00:00.607) 0:00:04.138 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Configure pcs / pcsd] ************* task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:17 Monday 01 August 2022 16:24:19 +0000 (0:00:00.022) 0:00:04.161 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Distribute fence-virt authkey] **** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:20 Monday 01 August 2022 16:24:19 +0000 (0:00:00.019) 0:00:04.180 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Configure SBD] ******************** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:23 Monday 01 August 2022 16:24:19 +0000 (0:00:00.023) 0:00:04.204 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Configure cluster nodes] ********** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:26 Monday 01 August 2022 16:24:19 +0000 (0:00:00.021) 0:00:04.225 ********* skipping: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:29 Monday 01 August 2022 16:24:20 +0000 (0:00:00.019) 0:00:04.245 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Pcs auth] ************************* task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:32 Monday 01 August 2022 16:24:20 +0000 (0:00:00.019) 0:00:04.264 ********* skipping: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:37 Monday 01 August 2022 16:24:20 +0000 (0:00:00.019) 0:00:04.283 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Create and push CIB] ************** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:40 Monday 01 August 2022 16:24:20 +0000 (0:00:00.022) 0:00:04.306 ********* skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.ha_cluster : Remove cluster configuration] ***** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:47 Monday 01 August 2022 16:24:20 +0000 (0:00:00.022) 0:00:04.328 ********* included: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/cluster-destroy-pcs-0.10.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.ha_cluster : Remove cluster configuration] ***** task path: /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 Monday 01 August 2022 16:24:20 +0000 (0:00:00.033) 0:00:04.361 ********* changed: [/cache/rhel-9.qcow2.snap] => (item=/etc/corosync/corosync.conf) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "pcs", "cluster", "destroy" ], "delta": "0:00:02.325114", "end": "2022-08-01 12:24:22.096089", "item": "/etc/corosync/corosync.conf", "rc": 0, "start": "2022-08-01 12:24:19.770975" } STDERR: Shutting down pacemaker/corosync services... Killing any remaining services... Removing all cluster configuration files... ok: [/cache/rhel-9.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/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:50 Monday 01 August 2022 16:24:23 +0000 (0:00:03.183) 0:00:07.545 ********* changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "path": "/etc/cluster/fence_xvm.key", "state": "absent" } META: role_complete for /cache/rhel-9.qcow2.snap TASK [Stat corosync.conf] ****************************************************** task path: /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:19 Monday 01 August 2022 16:24:23 +0000 (0:00:00.507) 0:00:08.052 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat cib.xml] ************************************************************ task path: /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:24 Monday 01 August 2022 16:24:24 +0000 (0:00:00.481) 0:00:08.534 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Stat fence_xvm.key] ****************************************************** task path: /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:29 Monday 01 August 2022 16:24:24 +0000 (0:00:00.388) 0:00:08.922 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "exists": false } } TASK [Check the files do not exist] ******************************************** task path: /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:34 Monday 01 August 2022 16:24:25 +0000 (0:00:00.363) 0:00:09.286 ********* ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=20 changed=3 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Monday 01 August 2022 16:24:25 +0000 (0:00:00.043) 0:00:09.330 ********* =============================================================================== fedora.linux_system_roles.ha_cluster : Remove cluster configuration ----- 3.18s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/cluster-destroy-pcs-0.10.yml:9 Gathering Facts --------------------------------------------------------- 1.28s /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:3 ----------------- fedora.linux_system_roles.ha_cluster : Install cluster packages --------- 1.11s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:27 fedora.linux_system_roles.ha_cluster : Set hacluster password ----------- 0.61s /tmp/tmp75rxkmc7/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.51s /tmp/tmp75rxkmc7/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.51s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:50 Stat corosync.conf ------------------------------------------------------ 0.48s /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:19 ---------------- Stat cib.xml ------------------------------------------------------------ 0.39s /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:24 ---------------- Stat fence_xvm.key ------------------------------------------------------ 0.36s /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:29 ---------------- Set up test environment ------------------------------------------------- 0.06s /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:10 ---------------- fedora.linux_system_roles.ha_cluster : Set platform/version specific variables --- 0.05s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/set_vars.yml:7 fedora.linux_system_roles.ha_cluster : Collect cluster node names ------- 0.05s /tmp/tmp75rxkmc7/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.04s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:9 Check the files do not exist -------------------------------------------- 0.04s /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:34 ---------------- fedora.linux_system_roles.ha_cluster : Figure out if ATB needs to be enabled for SBD --- 0.04s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:34 fedora.linux_system_roles.ha_cluster : Do not try to enable RHEL repositories --- 0.04s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/test_setup.yml:20 Run HA Cluster role ----------------------------------------------------- 0.04s /tmp/tmpylpfom7v/tests/ha_cluster/tests_cluster_destroy.yml:15 ---------------- fedora.linux_system_roles.ha_cluster : Discover cluster node names ------ 0.04s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/check-and-prepare-role-variables.yml:26 fedora.linux_system_roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.04s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/install-and-configure-packages.yml:3 fedora.linux_system_roles.ha_cluster : Remove cluster configuration ----- 0.03s /tmp/tmp75rxkmc7/ansible_collections/fedora/linux_system_roles/roles/ha_cluster/tasks/main.yml:47