Skip to content

Commit ee9113f

Browse files
committed
Update SCS high availability documentation and refactor ASCS resource migration commands for improved clarity and consistency
1 parent 29d3608 commit ee9113f

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

docs/SCS_HIGH_AVAILABILITY.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
| Test Case | Type | Description | More Info |
66
|------------------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
77
| HA Parameters Validation | Configuration | The HA parameter validation test validates HA configuration including Corosync settings, Pacemaker resources, SBD device configuration, and SCS system replication setup. | [ha-config.yml](../src/roles/ha_scs/tasks/ha-config.yml) |
8-
| Azure Load Balancer | Configuration | The Azure LB configuration test validates Azure Load Balancer setup including health probe configuration, backend pool settings, load balancing rules, and frontend IP configuration. | [azure-lb.yml](../src/roles/ha_scs/tasks/azure-lb.yml) |
98
| Resource Migration | Failover | The Resource Migration test validates planned failover scenarios by controlling resource movement between SCS nodes, ensuring proper role changes and data synchronization. | [ascs-migration.yml](../src/roles/ha_scs/tasks/ascs-migration.yml) |
10-
| Block Network | Network | The Block Network test validates SCS behavior during network partition scenarios by blocking communication between primary and secondary nodes, confirming split-brain prevention. | [block-network.yml](../src/roles/ha_scs/tasks/block-network.yml) |
9+
| ASCS Node Crash | Network | The ASCS Node Crash test simulates cluster behavior when the ASCS node crashes. It simulates an ASCS node failure by forcefully terminating the process, then verifies automatic failover to the ERS node, monitors system replication status, and confirms service recovery without data loss. | [ascs-node-crash.yml](../src/roles/ha_scs/tasks/ascs-node-crash.yml) |

src/roles/ha_scs/tasks/ascs-migration.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
become: true
3535
block:
3636
- name: "Test Execution: Migrate ASCS resource"
37-
ansible.builtin.command: "crm resource move rsc_sap_{{ sap_sid }}_ASCS{{ scs_instance_number }} force"
37+
ansible.builtin.command: "{{ commands | selectattr(
38+
'name', 'equalto', 'ascs_resource_migration_cmd') | map(
39+
attribute=(ansible_os_family | upper)) | first }}"
3840
register: migration_result
3941

4042
- name: "Test Execution: Validate SCS cluster status"
@@ -50,7 +52,9 @@
5052
and cluster_status_test_execution.ers_node == cluster_status_pre.ascs_node
5153
5254
- name: "Test Execution: Remove location constraints"
53-
ansible.builtin.command: "crm resource clear rsc_sap_{{ sap_sid }}_ASCS{{ scs_instance_number }}"
55+
ansible.builtin.command: "{{ commands | selectattr(
56+
'name', 'equalto', 'ascs_resource_unmigrate_cmd') | map(
57+
attribute=(ansible_os_family | upper)) | first }}"
5458
register: unmigrate_result
5559

5660
- name: "Test Execution: Cleanup resources"

src/vars/input-api.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,13 @@ commands:
170170
SUSE: "crm_report -f '{{ test_group_start_time }}' /tmp/{{ test_group_invocation_id }}"
171171
REDHAT: "crm_report -f '{{ test_group_start_time }}' --dest /tmp/{{ test_group_invocation_id }} -yes"
172172

173+
- name: ascs_resource_migration_cmd
174+
SUSE: "crm resource move rsc_sap_{{ sap_sid }}_ASCS{{ scs_instance_number }} force"
175+
REDHAT: "pcs resource move rsc_sap_{{ sap_sid }}_ASCS{{ scs_instance_number }}"
176+
177+
- name: ascs_resource_unmigrate_cmd
178+
SUSE: "crm resource clear rsc_sap_{{ sap_sid }}_ASCS{{ scs_instance_number }}"
179+
REDHAT: "pcs resource clear rsc_sap_{{ sap_sid }}_ASCS{{ scs_instance_number }}"
180+
173181
sap_sid: "HDB"
174182
db_sid: "HDB"

0 commit comments

Comments
 (0)