Skip to content

Commit

Permalink
Start Stop fixes (#443)
Browse files Browse the repository at this point in the history
* remove requirement.yaml from deploy/ansible.

* Fixes for ACSS start/stop functionality issues on RHEL

---------

Co-authored-by: hdamecharla <[email protected]>
  • Loading branch information
KimForss and hdamecharla authored Apr 26, 2023
1 parent ae39801 commit de62c78
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
meta resource-stickiness=5000 migration-threshold=1 failure-timeout=60 \
op monitor interval=20 on-fail=restart timeout=60 \
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
--group g-{{ sap_sid }}_{{ instance_type | upper }} \
--before nc_{{ sap_sid }}_{{ instance_type | upper }}
--group g-{{ sap_sid }}_{{ instance_type | upper }}
register: ascs_rsc_sap
failed_when: ascs_rsc_sap.rc > 1

Expand All @@ -35,8 +34,7 @@
op monitor interval=20 on-fail=restart timeout=60 \
op start interval=0 timeout=600 \
op stop interval=0 timeout=600 \
--group g-{{ sap_sid }}_ERS \
--before nc_{{ sap_sid }}_ERS
--group g-{{ sap_sid }}_ERS
register: ers_rsc_sap
failed_when: ers_rsc_sap.rc > 1

Expand Down Expand Up @@ -69,11 +67,10 @@
pcs resource create rsc_sap_{{ sap_sid }}_{{ instance_type | upper }}{{ scs_instance_number }} SAPInstance \
InstanceName={{ instance_name }} START_PROFILE="{{ start_profile_path }}" \
AUTOMATIC_RECOVER=false \
meta resource-stickiness=5000
meta resource-stickiness=5000 \
op monitor interval=20 on-fail=restart timeout=60 \
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
--group g-{{ sap_sid }}_{{ instance_type | upper }} \
--before nc_{{ sap_sid }}_{{ instance_type | upper }}
--group g-{{ sap_sid }}_{{ instance_type | upper }}
register: ascs_rsc_sap
failed_when: ascs_rsc_sap.rc > 1

Expand All @@ -88,13 +85,12 @@
op monitor interval=20 on-fail=restart timeout=60 \
op start interval=0 timeout=600 \
op stop interval=0 timeout=600 \
--group g-{{ sap_sid }}_ERS \
--before nc_{{ sap_sid }}_ERS
--group g-{{ sap_sid }}_ERS
register: ers_rsc_sap
failed_when: ers_rsc_sap.rc > 1

- name: "5.6 SCSERS - RHEL - ENSA2 - Set the ERS resource stickiness"
ansible.builtin.command: pcs resource meta rsc_sap_{{ sap_sid }}_ERS{{ ers_instance_number }} resource-stickiness=3000
ansible.builtin.command: pcs resource meta rsc_sap_{{ sap_sid }}_ERS{{ ers_instance_number }} resource-stickiness=3000

- name: "5.6 SCSERS - RHEL - ENSA2 - Configure Co-location Constraints"
ansible.builtin.shell: |
Expand Down

0 comments on commit de62c78

Please sign in to comment.