Open rnc opened 1 year ago
Question - what is the for loop for (added in https://github.com/redhat-cop/osia/commit/7077f5a2287c6440353a4c0ba2021d85950629ec ) ?
@rnc the reason for the reattempt to execute delete is due to the instability of openshift-install especially in the openstack environment. It tends to happen, that the cluster removal fails and leaves behind some residue resources, the re-execution mitigates vast majority of these cases - yes it still can happen that the second attempt will fail, then the resulting terraform files are left intact, but it can solves the issue in many situations.
I noticed this when accidentally running clean twice.
The trace looks like:
I think this is due to the perhaps slightly confusing try/catch in
delete_cluster
. If that try/catch is removed then i getwhich seems a bit easier to understand.