DNS resolution fails

Bug #2011841 reported by Marian Gasparovic
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Christian Grabowski
3.3
Fix Released
High
Christian Grabowski
charm-magpie
Fix Released
Undecided
Christian Grabowski

Bug Description

During 3.3.1 testing we hit many runs where DNS resolution for nodes did not work. We have also passing runs, so it does not happen every time

Logs from one run
https://oil-jenkins.canonical.com/artifacts/d26f3ee9-960e-47f8-906c-aedc5325d18c/generated/generated/maas/logs-2023-03-15-17.32.01.tgz

Here machine 2 (named node3) was not resolved on oam space

We have runs where it was different machine as well

Related branches

Changed in maas:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Christian Grabowski (cgrabowski)
milestone: none → 3.4.0
Changed in maas:
status: In Progress → Fix Committed
Revision history for this message
Adam Collard (adam-collard) wrote :
Revision history for this message
Marian Gasparovic (marosg) wrote :
Alberto Donato (ack)
Changed in maas:
status: Fix Committed → Triaged
Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

https://bugs.launchpad.net/maas/+bug/2012801 is probably a duplication of this.

Waiting for this fix to confirm.

Revision history for this message
Jeffrey Chang (modern911) wrote :
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.0-beta3
Alberto Donato (ack)
Changed in maas:
status: Triaged → Fix Committed
Alberto Donato (ack)
Changed in maas:
status: Fix Committed → Fix Released
Changed in charm-magpie:
assignee: nobody → Christian Grabowski (cgrabowski)
status: New → In Progress
Revision history for this message
Alberto Donato (ack) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-magpie (master)

Reviewed: https://review.opendev.org/c/openstack/charm-magpie/+/891093
Committed: https://opendev.org/openstack/charm-magpie/commit/c7ba0d9906c4cd7a6ab4fa79ed4fda4fa0644248
Submitter: "Zuul (22348)"
Branch: master

commit c7ba0d9906c4cd7a6ab4fa79ed4fda4fa0644248
Author: Christian Grabowski <email address hidden>
Date: Wed Aug 9 13:12:09 2023 -0600

    follow CNAME answers

    This resolves an issue with resolving rfc2317 glue reverse DNS records,
    which rely on CNAME DNS records.

    Related-Bug: 2011841

    Change-Id: Ib905229d20bcdc42f3f74aae208fb035ea090cc9

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to charm-magpie (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/charm-magpie/+/891725

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-magpie (master)

Reviewed: https://review.opendev.org/c/openstack/charm-magpie/+/891725
Committed: https://opendev.org/openstack/charm-magpie/commit/cc457853e973aebd709751a727fba0437e24cdd2
Submitter: "Zuul (22348)"
Branch: master

commit cc457853e973aebd709751a727fba0437e24cdd2
Author: Christian Grabowski <email address hidden>
Date: Thu Aug 17 08:14:25 2023 -0600

    gracefully handle no DNS answer

    This solves an exception being thrown when an answer is not
    returned from the dig command. Without it, a key error is raised
    for queries without an answer.

    Related-Bug: 2011841

    Closes-Bug: #2031666

    Change-Id: I987dc83d4f9b8e5c358f4341baaf5d49f8d3d128

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to charm-magpie (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/charm-magpie/+/893076

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-magpie (master)

Reviewed: https://review.opendev.org/c/openstack/charm-magpie/+/893076
Committed: https://opendev.org/openstack/charm-magpie/commit/a98c8145e98b0fa09a863fe364a84d5f88004c00
Submitter: "Zuul (22348)"
Branch: master

commit a98c8145e98b0fa09a863fe364a84d5f88004c00
Author: Christian Grabowski <email address hidden>
Date: Tue Aug 29 09:06:07 2023 -0600

    ensure cname results have a trailing new line

    This fixes an issue where multiple answers would be returned and
    one or more being an answer to a CNAME would get its trailing new line
    stripped, which should only happen for the final answer.

    Related-bug: 2011841

    Change-Id: If3337986f6d0ab94dcf2d2442e3c3e24b8b69ee4

Changed in charm-magpie:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.