|
75 | 75 | failed_when: _sap_swpm_sum_push.status != 200 |
76 | 76 |
|
77 | 77 | # 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) |
79 | 79 | ansible.builtin.uri: |
80 | 80 | url: "https://localhost:1129/slp/sumabap/{{ sap_swpm_sid | upper }}/config" |
81 | 81 | method: POST |
|
96 | 96 | # At this point SUM should be running. This will take anything between 6-12 hours to complete. |
97 | 97 | # Patiently check every 10 minutes to see if SUM has completed all the steps and is now in the SPAUINFO step. |
98 | 98 | # 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 |
100 | 100 | ansible.builtin.uri: |
101 | 101 | url: "https://localhost:1129/lmsl/sumobserver/{{ sap_swpm_sid | upper }}/analysis/SUMOBSERVER.XML" |
102 | 102 | method: GET |
|
107 | 107 | password: "{{ sap_swpm_sap_sidadm_password }}" |
108 | 108 | register: _sap_swpm_sum_push |
109 | 109 | 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 |
111 | 111 | delay: 300 # 5 minutes |
112 | 112 | 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) |
113 | 113 |
|
|
118 | 118 | block: |
119 | 119 | # Get the config XML from SUM, repeat 3 times in case SUM is still busy and doesn't respond promptly |
120 | 120 | # 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) |
122 | 122 | ansible.builtin.uri: |
123 | 123 | url: "https://localhost:1129/slp/sumabap/{{ sap_swpm_sid | upper }}/config" |
124 | 124 | method: GET |
|
136 | 136 | failed_when: _sap_swpm_sum_push_config2.status != 200 |
137 | 137 |
|
138 | 138 | # 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) |
140 | 140 | ansible.builtin.uri: |
141 | 141 | url: "https://localhost:1129/slp/sumabap/{{ sap_swpm_sid | upper }}/config" |
142 | 142 | method: GET |
|
0 commit comments