[dnsmasq] Default local=/<namespace>.svc/ to resolve queries locally#578
Conversation
|
Build failed (check pipeline). Post ❌ openstack-k8s-operators-content-provider FAILURE in 12m 47s |
|
recheck |
|
This change depends on a change that failed to merge. Change openstack-k8s-operators/lib-common#691 is needed. |
|
recheck |
Set local=/<namespace>.svc/ by default in DNSMasq webhook so that queries for the openstack.svc domain are resolved from hosts files rather than forwarded to upstream DNS servers. This prevents delays and SERVFAIL errors when upstream DNS is slow at resolving AAAA records for openstack.svc. The namespace is passed dynamically through the Default() chain so the domain is correct for any deployment namespace. Users can override the default by specifying their own local option. Existing CRs get the default on upgrade via controller-triggered webhook (EnsureWebhookTrigger pattern from lib-common). Closes: OSPRH-29710 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
|
Build failed (check pipeline). Post ❌ openstack-k8s-operators-content-provider FAILURE in 10m 03s |
|
recheck |
|
Build failed (check pipeline). Post ❌ openstack-k8s-operators-content-provider FAILURE in 9m 40s |
|
recheck |
|
for some reason the dns CM is not part of the rdo job must-gather, but from the pod log we see the following message that confirms that the change was added: one note: |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abays, stuggi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9c12556
into
openstack-k8s-operators:main
Set local=/.svc/ by default in DNSMasq webhook so that queries for the openstack.svc domain are resolved from hosts files rather than forwarded to upstream DNS servers. This prevents delays and SERVFAIL errors when upstream DNS is slow at resolving AAAA records for openstack.svc.
The namespace is passed dynamically through the Default() chain so the domain is correct for any deployment namespace.
Users can override the default by specifying their own local option. Existing CRs get the default on upgrade via controller-triggered webhook (EnsureWebhookTrigger pattern from lib-common).
Closes: OSPRH-29710
Depends-On: openstack-k8s-operators/openstack-operator#1917