Module 'dns' has no attribute 'resolver'

Bug #2006537 reported by Erik Olof Gunnar Andersson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Undecided
Unassigned

Bug Description

When a zone is set to SECONDARY, Designate-mdns is currently failing to properly import the resolver.

https://paste.opendev.org/show/bjqlWDLHEtLLZoZmH4KT/

ERROR designate.service [None req-9ebb1816-df66-4c8a-9cb9-596766dbeaf4 None None] Unhandled exception while processing request from 10.0.1.201:51187: AttributeError: module 'dns' has no attribute 'resolver'
ERROR designate.service Traceback (most recent call last):
ERROR designate.service File "/opt/stack/designate/designate/service.py", line 349, in _dns_handle_udp_query
ERROR designate.service for response in self.app(
ERROR designate.service File "/opt/stack/designate/designate/dnsutils.py", line 128, in __call__
ERROR designate.service for response in self.application(message):
ERROR designate.service File "/opt/stack/designate/designate/mdns/handler.py", line 84, in __call__
ERROR designate.service for response in self._handle_notify(request):
ERROR designate.service File "/opt/stack/designate/designate/mdns/handler.py", line 152, in _handle_notify
ERROR designate.service resolver = dns.resolver.Resolver()
ERROR designate.service AttributeError: module 'dns' has no attribute 'resolver'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/designate/+/873070

Changed in designate:
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.opendev.org/c/openstack/designate/+/873070
Committed: https://opendev.org/openstack/designate/commit/5cd63481c68ca5d2c8764a93dee5cbb8b45ecf63
Submitter: "Zuul (22348)"
Branch: master

commit 5cd63481c68ca5d2c8764a93dee5cbb8b45ecf63
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Tue Feb 7 19:20:31 2023 -0800

    Fix dns.resolver import for mdns

    We are currently failing with module 'dns' has no
    attribute 'resolver'.

    Closes-Bug: #2006537
    Change-Id: I31a1b1892a7112018b1261f956f51ed4eaa7cfb9

Changed in designate:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/designate/+/873136

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/designate/+/873136
Committed: https://opendev.org/openstack/designate/commit/376d5912fcf26a3b2e458ee53fdc24b2ad233592
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 376d5912fcf26a3b2e458ee53fdc24b2ad233592
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Tue Feb 7 19:20:31 2023 -0800

    Fix dns.resolver import for mdns

    We are currently failing with module 'dns' has no
    attribute 'resolver'.

    Closes-Bug: #2006537
    Change-Id: I31a1b1892a7112018b1261f956f51ed4eaa7cfb9
    (cherry picked from commit 5cd63481c68ca5d2c8764a93dee5cbb8b45ecf63)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/designate/+/873284

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/designate/+/873285

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/designate/+/873285
Committed: https://opendev.org/openstack/designate/commit/2b94cf3ca15c6521386978dfd6504d614e880e1f
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 2b94cf3ca15c6521386978dfd6504d614e880e1f
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Tue Feb 7 19:20:31 2023 -0800

    Fix dns.resolver import for mdns

    We are currently failing with module 'dns' has no
    attribute 'resolver'.

    Closes-Bug: #2006537
    Change-Id: I31a1b1892a7112018b1261f956f51ed4eaa7cfb9
    (cherry picked from commit 5cd63481c68ca5d2c8764a93dee5cbb8b45ecf63)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/designate/+/873284
Committed: https://opendev.org/openstack/designate/commit/1f30672bde3148f868fbaece8a58c20413e47b12
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 1f30672bde3148f868fbaece8a58c20413e47b12
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Tue Feb 7 19:20:31 2023 -0800

    Fix dns.resolver import for mdns

    We are currently failing with module 'dns' has no
    attribute 'resolver'.

    Closes-Bug: #2006537
    Change-Id: I31a1b1892a7112018b1261f956f51ed4eaa7cfb9
    (cherry picked from commit 5cd63481c68ca5d2c8764a93dee5cbb8b45ecf63)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 16.0.0.0rc1

This issue was fixed in the openstack/designate 16.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 14.0.2

This issue was fixed in the openstack/designate 14.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 15.0.1

This issue was fixed in the openstack/designate 15.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate xena-eom

This issue was fixed in the openstack/designate xena-eom release.

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.