Skip to content

Commit 09fb506

Browse files
authored
Merge pull request #1143 from rob0d/dev
sap_swpm: Improve SUM handling behaviour for slower systems
2 parents 3131680 + 5a25571 commit 09fb506

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

roles/sap_swpm/tasks/post_install/sum_push_to_finish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
failed_when: _sap_swpm_sum_push.status != 200
7676

7777
# Post the config XML back to SUM unchanged as we want to keep the default patch levels as per the XML file. This will move SUM to the next step.
78-
- name: Move SUM to the next step (SPAUINFO)
78+
- name: Move SUM to the next step (SPAUINFO or EXIT)
7979
ansible.builtin.uri:
8080
url: "https://localhost:1129/slp/sumabap/{{ sap_swpm_sid | upper }}/config"
8181
method: POST
@@ -96,7 +96,7 @@
9696
# At this point SUM should be running. This will take anything between 6-12 hours to complete.
9797
# Patiently check every 10 minutes to see if SUM has completed all the steps and is now in the SPAUINFO step.
9898
# Check the SUM status via SUMOBSEVER.XML
99-
- name: Checking the status of SUM (SPAUINFO) every 5 minutes
99+
- name: Checking the status of SUM (SPAUINFO or EXIT) every 5 minutes
100100
ansible.builtin.uri:
101101
url: "https://localhost:1129/lmsl/sumobserver/{{ sap_swpm_sid | upper }}/analysis/SUMOBSERVER.XML"
102102
method: GET
@@ -107,7 +107,7 @@
107107
password: "{{ sap_swpm_sap_sidadm_password }}"
108108
register: _sap_swpm_sum_push
109109
until: _sap_swpm_sum_push.status == 200 and ('<dialogId>SUM4ABAP|POST-EXECUTE|MAIN_POSTPROC|SPAUINFO|FinishSPAU</dialogId>' in _sap_swpm_sum_push.content or '<dialogId>SUM4ABAP|MAIN_POSTCLEAN|EXIT|UnitWizard</dialogId>' in _sap_swpm_sum_push.content)
110-
retries: 144 # 12 hours
110+
retries: 240 # 20 hours
111111
delay: 300 # 5 minutes
112112
failed_when: _sap_swpm_sum_push.status != 200 or ('<dialogId>SUM4ABAP|POST-EXECUTE|MAIN_POSTPROC|SPAUINFO|FinishSPAU</dialogId>' not in _sap_swpm_sum_push.content and '<dialogId>SUM4ABAP|MAIN_POSTCLEAN|EXIT|UnitWizard</dialogId>' not in _sap_swpm_sum_push.content)
113113

@@ -118,7 +118,7 @@
118118
block:
119119
# Get the config XML from SUM, repeat 3 times in case SUM is still busy and doesn't respond promptly
120120
# Need to get config XML even through we are not going to use it. This is to get the diagtime cookie.
121-
- name: Get the config XML from SUM (SPAUINFO)
121+
- name: Get the config XML from SUM (SPAUINFO or EXIT)
122122
ansible.builtin.uri:
123123
url: "https://localhost:1129/slp/sumabap/{{ sap_swpm_sid | upper }}/config"
124124
method: GET
@@ -136,7 +136,7 @@
136136
failed_when: _sap_swpm_sum_push_config2.status != 200
137137

138138
# Get the CSRF token from SUM by calling config
139-
- name: Get the CSRF token from SUM (SPAUINFO)
139+
- name: Get the CSRF token from SUM (SPAUINFO or EXIT)
140140
ansible.builtin.uri:
141141
url: "https://localhost:1129/slp/sumabap/{{ sap_swpm_sid | upper }}/config"
142142
method: GET

0 commit comments

Comments
 (0)