Skip to content

Drop nested ansible execution - e2e-collect-logs#3242

Merged
evallesp merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:drop-nested-ansible-99-logs
Sep 25, 2025
Merged

Drop nested ansible execution - e2e-collect-logs#3242
evallesp merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:drop-nested-ansible-99-logs

Conversation

@danpawlik
Copy link
Copy Markdown
Contributor

@danpawlik danpawlik commented Sep 2, 2025

We want to drop nested Ansible execution where it is possible. It is wrong, to execute sometimes 4 or 5 time nested Ansible. It makes debugging difficult, raise more complication and sometimes variable overwrite is just problematic.

Depends-On: #3235
Depends-On: #3287

More: OSPRH-20006

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 2, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Sep 2, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

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

@softwarefactory-project-zuul
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a5cef1925ccc44fbbeb1d7b72522340e

openstack-k8s-operators-content-provider FAILURE in 11m 38s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 38s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 14s
✔️ build-push-container-cifmw-client SUCCESS in 17m 00s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 1m 52s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9def48b56c4940b9a90647f6b609efb6

openstack-k8s-operators-content-provider FAILURE in 12m 38s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 35s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 15s
✔️ build-push-container-cifmw-client SUCCESS in 18m 47s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 2m 16s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3242,5d94aa55e442bd2626764fcf626faa0884533cf4

@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 5d94aa5 to 628facc Compare September 2, 2025 08:42
@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3242,628facc3bcf2c9abdbcf2083893d8dabc635d8c4

@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3242,8507a0d140a99c4312f7bbdd825bcf11832bd62e

@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 8507a0d to 791c271 Compare September 2, 2025 08:48
@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3242,791c2717ef8c55a4e3ca3190c6713d84e9bc1983

@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 791c271 to 01a035b Compare September 2, 2025 08:48
@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3242,01a035b826799ff01dadbf3c9bfb85f26e55eb98

@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 01a035b to 88d17b2 Compare September 2, 2025 08:57
@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3242,88d17b27dd632959f6b44e2ee40c0d1c798aeb3c

@softwarefactory-project-zuul
Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #3235 is needed.

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/2bd893357b5446f6a67fcc14525e62c7

openstack-k8s-operators-content-provider FAILURE in 12m 15s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 01s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 13s
✔️ build-push-container-cifmw-client SUCCESS in 18m 38s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 2m 25s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #3235 is needed.

@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 43d2f5b to 2e397e3 Compare September 8, 2025 08:56
@softwarefactory-project-zuul
Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #3255 is needed.

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@danpawlik danpawlik changed the title WIP Drop nested ansible execution - e2e-collect-logs Drop nested ansible execution - e2e-collect-logs Sep 12, 2025
@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 2e397e3 to 03aea95 Compare September 12, 2025 12:32
@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/2ecfe44ac24441b6ad87e64c2d27c508

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 42m 30s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 22m 59s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT Host unreachable in 1h 15m 37s
adoption-standalone-to-crc-ceph-provider RETRY_LIMIT Host unreachable in 2h 22m 03s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 13s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 21s
✔️ build-push-container-cifmw-client SUCCESS in 16m 17s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 2m 29s

@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 03aea95 to 1c64830 Compare September 12, 2025 16:49
@softwarefactory-project-zuul
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9714735f1a904bfaaa2e7353ba2d17a2

openstack-k8s-operators-content-provider TIMED_OUT in 33m 31s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 59s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 26s
build-push-container-cifmw-client TIMED_OUT in 1h 31m 33s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 30m 00s

We want to drop nested Ansible execution where it is possible.
It is wrong, to execute sometimes 4 or 5 time nested Ansible. It
makes debugging difficult, raise more complication and sometimes
variable overwrite is just problematic.

Depends-On: openstack-k8s-operators#3235
Depends-On: openstack-k8s-operators#3287

More: OSPRH-20006

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@danpawlik danpawlik force-pushed the drop-nested-ansible-99-logs branch from 1c64830 to 5b164f3 Compare September 17, 2025 07:55
@softwarefactory-project-zuul
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://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/f29dd04738ca466aa62d7c164dbaccd9

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 28m 07s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 13m 13s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 26m 18s
✔️ adoption-standalone-to-crc-ceph-provider SUCCESS in 3h 14m 15s
✔️ noop SUCCESS in 0s
cifmw-pod-ansible-test POST_FAILURE in 7m 44s
cifmw-pod-pre-commit POST_FAILURE in 7m 39s
✔️ build-push-container-cifmw-client SUCCESS in 19m 12s
cifmw-molecule-cifmw_setup POST_FAILURE in 2m 29s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

danpawlik added a commit to danpawlik/watcher-operator that referenced this pull request Sep 17, 2025
There was exception done for run_logs tasks in cifmw_setup role, that
calling that role was used in e2e-collect-logs using ansible binary
(not ansible-playbook as it is in multiple places).
There is no need to run as nested ansible, if it can be called directly.

Depends-On: openstack-k8s-operators/ci-framework#3242
Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
Comment thread ci/playbooks/e2e-collect-logs.yml
Copy link
Copy Markdown
Contributor

@cescgina cescgina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logs are collected, change is working fine

@danpawlik danpawlik marked this pull request as ready for review September 25, 2025 12:14
@danpawlik danpawlik requested a review from a team as a code owner September 25, 2025 12:14
Copy link
Copy Markdown
Contributor

@evallesp evallesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@evallesp evallesp merged commit d2e1f18 into openstack-k8s-operators:main Sep 25, 2025
5 of 8 checks passed
@danpawlik danpawlik deleted the drop-nested-ansible-99-logs branch September 25, 2025 15:59
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.

5 participants