Skip to content

Drop pre-run and post-run for kuttl_multinode#3231

Merged
danpawlik merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:drop-duplicated-playbook-execution
Aug 28, 2025
Merged

Drop pre-run and post-run for kuttl_multinode#3231
danpawlik merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:drop-duplicated-playbook-execution

Conversation

@danpawlik
Copy link
Copy Markdown
Contributor

The playbook execution is duplicated and it raises complication in some cases.

The playbook execution is duplicated and it raises complication in some
cases.

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@danpawlik danpawlik requested review from cescgina and sdatko August 28, 2025 11:00
@danpawlik danpawlik requested a review from a team as a code owner August 28, 2025 11:00
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 28, 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

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.

+1, these are duplicated from the parent job

@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/636b91208f414a708a98f164f71ebafe

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 48m 18s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 12m 03s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 32m 33s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 00s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 17s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 24s
cifmw-multinode-kuttl TIMED_OUT in 2h 39m 44s
✔️ build-push-container-cifmw-client SUCCESS in 20m 04s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

Copy link
Copy Markdown
Contributor

@dasm dasm left a comment

Choose a reason for hiding this comment

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

Yes, the execution is duplicated:
src

Zuul docs describing the behavior:

[...]
In addition to the job’s main playbook, each job may specify one or more pre- and post-playbooks. These are run, in order, before and after (respectively) the main playbook. They may be used to set up and tear down resources needed by the main playbook. When combined with inheritance, they provide powerful tools for job construction. A job only has a single main playbook, and when inheriting from a parent, the child’s main playbook overrides (or replaces) the parent’s. However, the pre- and post-playbooks are appended and prepended in a nesting fashion. So if a parent job and child job both specified pre and post playbooks, the sequence of playbooks run would be:

  • parent pre-run playbook
  • child pre-run playbook
  • child playbook
  • child post-run playbook
  • parent post-run playbook

@danpawlik danpawlik merged commit 95547e8 into openstack-k8s-operators:main Aug 28, 2025
4 checks passed
danpawlik added a commit to danpawlik/watcher-operator that referenced this pull request Sep 1, 2025
…ck-k8s-operators#251

Before moving to role, when the 99-logs.yml playbook was executed, the
variables was not set to, so it pick default value which is false, so
the playbook was executed. Now when it is in `cifmw_setup` role in
`run_logs.yml` task file, the condition is possitive, so it is skipped.

Add 'zuul_log_collection' var to overwrite other existing vars and
trigger gather facts.

Depends-On: openstack-k8s-operators/ci-framework#3208
Depends-On: openstack-k8s-operators/ci-framework#3231
danpawlik added a commit to danpawlik/watcher-operator that referenced this pull request Sep 1, 2025
…ck-k8s-operators#251

Before moving to role, when the 99-logs.yml playbook was executed, the
variables was not set to, so it pick default value which is false, so
the playbook was executed. Now when it is in `cifmw_setup` role in
`run_logs.yml` task file, the condition is possitive, so it is skipped.

Add 'zuul_log_collection' var to overwrite other existing vars and
trigger gather facts.

Depends-On: openstack-k8s-operators/ci-framework#3208
Depends-On: openstack-k8s-operators/ci-framework#3231
danpawlik added a commit to danpawlik/watcher-operator that referenced this pull request Sep 1, 2025
…ck-k8s-operators#251

Before moving to role, when the 99-logs.yml playbook was executed, the
variables was not set to, so it pick default value which is false, so
the playbook was executed. Now when it is in `cifmw_setup` role in
`run_logs.yml` task file, the condition is possitive, so it is skipped.

Add 'zuul_log_collection' var to overwrite other existing vars and
trigger gather facts.

Depends-On: openstack-k8s-operators/ci-framework#3208
Depends-On: openstack-k8s-operators/ci-framework#3231
Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
danpawlik added a commit to danpawlik/watcher-operator that referenced this pull request Sep 1, 2025
…ck-k8s-operators#251

Before moving to role, when the 99-logs.yml playbook was executed, the
variables was not set to, so it pick default value which is false, so
the playbook was executed. Now when it is in `cifmw_setup` role in
`run_logs.yml` task file, the condition is possitive, so it is skipped.

Add 'zuul_log_collection' var to overwrite other existing vars and
trigger gather facts.

Depends-On: openstack-k8s-operators/ci-framework#3208
Depends-On: openstack-k8s-operators/ci-framework#3231
Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
openshift-merge-bot Bot pushed a commit to openstack-k8s-operators/watcher-operator that referenced this pull request Sep 1, 2025
Before moving to role, when the 99-logs.yml playbook was executed, the
variables was not set to, so it pick default value which is false, so
the playbook was executed. Now when it is in `cifmw_setup` role in
`run_logs.yml` task file, the condition is possitive, so it is skipped.

Add 'zuul_log_collection' var to overwrite other existing vars and
trigger gather facts.

Depends-On: openstack-k8s-operators/ci-framework#3208
Depends-On: openstack-k8s-operators/ci-framework#3231
Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
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.

4 participants