Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid failures on cleaning #1749

Merged
merged 1 commit into from
May 25, 2024

Conversation

cjeanner
Copy link
Contributor

While working on integrating dnsmasq role in the reproducer, a random
issue, related to the facts, might happen.

It seems to be caused by the way ansible manages the handler - the
ansible_facts.packages isn't available anymore, and the condition
triggering the libvirt cleanup fails. While it was already done.

This condition arrises when dnsmasq role is in the game, and the handler
kicks at the end of the playbook.

In the same fashion, the handler might be triggered when the service is
already removed, leading to another crash of the cleanup playbook. The
added conditions ensure the handler will succeed even if the service is
already removed, but would still fail if there's a real issue with the
service configuration.

As a pull request owner and reviewers, I checked that:

  • getting those tested would be hard for now - dnsmasq isn't integrated yet

While working on integrating dnsmasq role in the reproducer, a random
issue, related to the facts, might happen.

It seems to be caused by the way ansible manages the handler - the
`ansible_facts.packages` isn't available anymore, and the condition
triggering the libvirt cleanup fails. While it was already done.

This condition arrises when dnsmasq role is in the game, and the handler
kicks at the end of the playbook.

In the same fashion, the handler might be triggered when the service is
already removed, leading to another crash of the cleanup playbook. The
added conditions ensure the handler will succeed even if the service is
already removed, but would still fail if there's a real issue with the
service configuration.
Copy link
Contributor

openshift-ci bot commented May 22, 2024

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

Copy link

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://review.rdoproject.org/zuul/buildset/7813c903c3a84928b5e36b26c7d5ef51

openstack-k8s-operators-content-provider FAILURE in 16m 46s
⚠️ 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
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 05s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 21s
✔️ cifmw-baremetal-nested-crc SUCCESS in 58m 45s
✔️ cifmw-molecule-dnsmasq SUCCESS in 4m 59s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 12m 20s
✔️ cifmw-molecule-reproducer SUCCESS in 12m 48s

@cjeanner
Copy link
Contributor Author

recheck

@cjeanner cjeanner marked this pull request as ready for review May 23, 2024 04:57
@openshift-ci openshift-ci bot requested review from rachael-george and viroel May 23, 2024 04:57
Copy link
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.

/approve

Copy link
Contributor

openshift-ci bot commented May 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cescgina

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

The pull request process is described here

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

@openshift-ci openshift-ci bot added the lgtm label May 25, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit e5f9d1d into main May 25, 2024
7 checks passed
@openshift-merge-bot openshift-merge-bot bot deleted the dnsmasq/handler-and-libvirt-cleanup branch May 25, 2024 02:13
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.

3 participants