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

@evallesp evallesp commented Apr 15, 2026

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"

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Signed-off-by: Enrique Vallespi Gil evallesp@redhat.com

@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

@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from 7c7d077 to e50df31 Compare April 15, 2026 10:28
@evallesp
Copy link
Copy Markdown
Contributor Author

Not tested yet timeout behaviour.
No regression found.

@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from e50df31 to 4d97eee Compare April 17, 2026 14:33
@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from 4d97eee to 0bc37ce Compare April 17, 2026 14:37
@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from 0bc37ce to d55a7be Compare April 29, 2026 09:41
@evallesp
Copy link
Copy Markdown
Contributor Author

Log information at: https://redhat.atlassian.net/browse/OSPCIFMW-95
We've ran a mocked task to raise a timeout. It excecuted the code properly.

@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from d55a7be to 16dee34 Compare April 29, 2026 14:02
@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from 16dee34 to ecd37f5 Compare April 29, 2026 14:03
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"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Enrique Vallespi Gil <evallesp@redhat.com>
@evallesp evallesp force-pushed the os-must-gather-add-return-error branch from ecd37f5 to 2791232 Compare April 29, 2026 14:04
@TristanCacqueray
Copy link
Copy Markdown
Contributor

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/86b6e304e6c545959f82ba51bf9daf44

✔️ openstack-k8s-operators-content-provider SUCCESS in 14m 21s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 28s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 28s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 27s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 29s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 11s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 45s
cifmw-molecule-os_must_gather RETRY_LIMIT in 52s

@evallesp
Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/e4574b14d24342fb9f2edfa23279d226

✔️ openstack-k8s-operators-content-provider SUCCESS in 42m 45s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 29s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 27s
cifmw-crc-podified-edpm-baremetal-minor-update RETRY_LIMIT in 31s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 53s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 59s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 57s
cifmw-molecule-os_must_gather RETRY_LIMIT in 24s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants