Commit 91d3e59
committed
Add retries to kustomize_deploy tasks
We observe the following errors randomly occurring from
`kubernetes.core.k8s_info` module, typically just after
waiting for the openstack operators InstallPlan to be finished:
`AttributeError: ''NoneType'' object has no attribute ''status''`.
This may be because the OpenShift cluster gets overwhelmed
and sometimes the module receives the unexpected response,
so in `custom_condition()` in `plugins/module_utils/k8s/waiter.py`
there is no `status` field in `resource` [1].
As a mitigation, let's try retrying the task after some delay.
[1] https://github.com/ansible-collections/kubernetes.core/blob/main/plugins/module_utils/k8s/waiter.py#L861 parent 5486e25 commit 91d3e59
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| |||
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
| |||
192 | 200 | | |
193 | 201 | | |
194 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
195 | 207 | | |
196 | 208 | | |
197 | 209 | | |
| |||
205 | 217 | | |
206 | 218 | | |
207 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
208 | 224 | | |
209 | 225 | | |
210 | 226 | | |
| |||
0 commit comments