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

dnsmasq - use dhcp-hostdir #1801

Conversation

hjensas
Copy link
Contributor

@hjensas hjensas commented May 31, 2024

The restart done by the handler happens only at the very end of the play. By using dhcp-hostsdir we get the benefit of dnsmasq reading any new or changed file in the hosts dir, automatically applying the new dhcp host config on the fly.

Since adding a host is loaded on-the-fly - we don't need to notify the handler when adding hosts.

Removing hosts however, reqires s SIGHUP - so for that case notify the handler.

Also change the computation of _host_entry - it should include both ipv4 and ipv6 address if both are configured.

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

  • Appropriate testing is done and actually running
  • Appropriate documentation exists and/or is up-to-date:
    • README in the role
    • Content of the docs/source is reflecting the changes

Copy link

Thanks for the PR! ❤️
I'm marking it as a draft, once your happy with it merging and the PR is passing CI, click the "Ready for review" button below.

@github-actions github-actions bot marked this pull request as draft May 31, 2024 10:34
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/59aed376b88148db9db4aa488a6f66cc

✔️ noop SUCCESS in 0s
cifmw-pod-ansible-test FAILURE in 6m 06s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 04s
✔️ cifmw-molecule-dnsmasq SUCCESS in 6m 04s

@hjensas
Copy link
Contributor Author

hjensas commented May 31, 2024

recheck

@hjensas hjensas marked this pull request as ready for review May 31, 2024 13:09
@hjensas
Copy link
Contributor Author

hjensas commented May 31, 2024

/retest

@hjensas hjensas force-pushed the dnsmasq-use-dhcp-hosts-opts-dir branch from 76d93e6 to c18602e Compare June 19, 2024 08:58
@hjensas hjensas force-pushed the dnsmasq-use-dhcp-hosts-opts-dir branch from c18602e to 7f84b99 Compare June 19, 2024 09:00
The restart done by the handler happens only at the very
end of the play. By using dhcp-hostsdir we get the benefit
of dnsmasq reading any new or changed file in the hosts dir,
automatically applying the new dhcp host config on the fly.

Since adding a host is loaded on-the-fly - we don't need to
notify the handler when adding hosts.

Removing hosts however, reqires s SIGHUP - so for that case
notify the handler.

Also change the computation of _host_entry - it should include
both ipv4 and ipv6 address if both are configured.
@cjeanner
Copy link
Collaborator

/approve

Copy link
Contributor

openshift-ci bot commented Jun 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cjeanner

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 Jun 19, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 9bf7bb6 into openstack-k8s-operators:main Jun 19, 2024
5 checks passed
@hjensas hjensas deleted the dnsmasq-use-dhcp-hosts-opts-dir branch June 20, 2024 22:09
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