From ce9cb251f69a4216f08105d17f38b3408056acaa Mon Sep 17 00:00:00 2001 From: hdamecharla <71097261+hdamecharla@users.noreply.github.com> Date: Thu, 14 Mar 2024 23:55:56 +0530 Subject: [PATCH] Refactor Stonith SBD configuration in 1.17 Generic Pacemaker role (#565) * Refactor Stonith SBD configuration in 1.17 Generic Pacemaker role * Update version to 3.11.0.1 --- .../tasks/1.17.2.0-cluster-Suse.yml | 18 ++++++++++++++++-- deploy/configs/version.txt | 2 +- deploy/scripts/New-SDAFDevopsProject.ps1 | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/deploy/ansible/roles-os/1.17-generic-pacemaker/tasks/1.17.2.0-cluster-Suse.yml b/deploy/ansible/roles-os/1.17-generic-pacemaker/tasks/1.17.2.0-cluster-Suse.yml index 4660876abd..25551cc85e 100644 --- a/deploy/ansible/roles-os/1.17-generic-pacemaker/tasks/1.17.2.0-cluster-Suse.yml +++ b/deploy/ansible/roles-os/1.17-generic-pacemaker/tasks/1.17.2.0-cluster-Suse.yml @@ -226,8 +226,22 @@ - name: "1.17 Generic Pacemaker - Stonith SBD is already configured in cluster" when: stonith_sbd_configured.rc == 0 - ansible.builtin.debug: - msg: "Stonith Status: {{ stonith_sbd_configured.stdout }}" + block: + - name: "1.17 Generic Pacemaker - Debug show Stonith SBD" + ansible.builtin.debug: + msg: "Stonith SBD is already configured in cluster" + + - name: "1.17 Generic Pacemaker - Stop Stonith SBD" + ansible.builtin.shell: crm resource stop stonith-sbd + + - name: "1.17 Generic Pacemaker - Delete Stonith SBD" + ansible.builtin.shell: crm configure delete stonith-sbd + + - name: "1.17 Generic Pacemaker - Recreate Stonith SBD in cluster" + ansible.builtin.shell: >- + crm configure primitive stonith-sbd stonith:external/sbd \ + params pcmk_delay_max="15" \ + op monitor interval="600" timeout="15" - name: "1.17 Generic Pacemaker - Ensure Stonith SBD is configured in cluster" when: stonith_sbd_configured.rc != 0 diff --git a/deploy/configs/version.txt b/deploy/configs/version.txt index acbeef0954..d42a62c4ad 100644 --- a/deploy/configs/version.txt +++ b/deploy/configs/version.txt @@ -1 +1 @@ -3.11.0.0 +3.11.0.1 diff --git a/deploy/scripts/New-SDAFDevopsProject.ps1 b/deploy/scripts/New-SDAFDevopsProject.ps1 index 019b5e33e6..b28f325979 100644 --- a/deploy/scripts/New-SDAFDevopsProject.ps1 +++ b/deploy/scripts/New-SDAFDevopsProject.ps1 @@ -29,7 +29,7 @@ $Workload_zoneSubscriptionName = $Env:SDAF_WorkloadZoneSubscriptionName if ($IsWindows) { $pathSeparator = "\" } else { $pathSeparator = "/" } #endregion -$versionLabel = "v3.11.0.0" +$versionLabel = "v3.11.0.1" az logout