Fix rosa deprovision#180
Conversation
|
@rhopp: The following matrix E2E test has Failed, say /retest to rerun failed tests. Total child pipelines: 2 Failed child pipelines
|
|
/retest |
|
@rhopp: The following matrix E2E test has Failed, say /retest to rerun failed tests. Total child pipelines: 2 Failed child pipelines
|
|
@rhopp: The following matrix E2E test has Failed, say /retest to rerun failed tests. Total child pipelines: 2 Failed child pipelines
|
|
|
||
| aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID | ||
| aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY | ||
| aws configure set region "$REGION" |
There was a problem hiding this comment.
I would avoid aws configure, this writes to file system. I think using env vars in memory should be enough: https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html
|
@rhopp Looks fine to me, but the CI is failing. |
|
/retest |
|
@rhopp: The following matrix E2E test has Failed, say /retest to rerun failed tests. Total child pipelines: 2 Failed child pipelines
|
|
I think we just need one-line fix in rosa-hcp-provision task. The fix: add a fallback at the end of the provision step script, after the main function call. Since the step uses onError: continue, Tekton will continue even if main fails — so code after it will execute. Current (end of the provision step script): Proposed (add fallback after the main call): |
|
@xinredhat That's indeed much simpler, but I don't think it will work in the timeout scenario. When the taskrun runs for more than an hour, tekton just "kills" it, so no "dummy" result will get written. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8ad896d to
7f7d5ee
Compare
when rosa provisioning task times out, the task result (ocp login) is empty - preventing the finalize task to deprovision the cluster. That leaves orphan clusters and once they accumulate, it prevents starting new ones.