Skip to content

[os_must_gather] Add exit rc to os-must-gather main task#3857

Open
evallesp wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
evallesp:os-must-gather-add-return-error
Open

[os_must_gather] Add exit rc to os-must-gather main task#3857
evallesp wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
evallesp:os-must-gather-add-return-error

Conversation

@evallesp
Copy link
Copy Markdown
Contributor

With this we allow to run the rescue block. Previously any timeout in the main task would return the code from the echo which was always success.

Also, we're removing from the rescue block the always block. And we've create a always section for finding existing os-must-gather directories and the symlink creation.

Also we've changed the dest-dir for the generic fallback command to match the same folder of the symlink.

Removed oc inspect as we're not getting so many errors from oc adm must-gather so probably this wouldn't be usefull.

Finally, we've parametriced SOS_EDPM as cifmw_os_must_gather_sos_edpm and we've added default value to "all"

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 15, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign juliakreger for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@evallesp
Copy link
Copy Markdown
Contributor Author

Reopened from: #3643

With this we allow to run the rescue block. Previously any timeout
in the main task would return the code from the echo which was
always success.

Also, we're removing from the rescue block the always block.
And we've create a always section for finding existing os-must-gather
directories and the symlink creation.

Also we've changed the dest-dir for the generic fallback command
to match the same folder of the symlink.

Removed oc inspect as we're not getting so many errors from oc adm must-gather
so probably this wouldn't be usefull.

Finally, we've parametriced SOS_EDPM as cifmw_os_must_gather_sos_edpm
and we've added default value to "all"

Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>
@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from 7c7d077 to e50df31 Compare April 15, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant