Bug 2233061

Summary: Designate DNS – Secondary zone is failed to be created and gets into the ERROR status
Product: Red Hat OpenStack Reporter: jiehuang
Component: openstack-designateAssignee: Nate Johnston <njohnston>
Status: CLOSED DUPLICATE QA Contact: Bruna Bonguardo <bbonguar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16.2 (Train)CC: michjohn, scohen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-22 14:55:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jiehuang 2023-08-21 09:43:57 UTC
Description of problem:
Failed to create a zone after finished the created

Version-Release number of selected component (if applicable):
16.2
root@ovn-db-01 ~]# rpm -qa |grep dns
python3-dns-1.15.0-10.el8.noarch
puppet-dns-6.2.1-2.20220110214338.2ae1cd7.el8ost.noarch

How reproducible:
deploy and create a zone

Steps to Reproduce:
1.
2.
3.

Actual results:
     2023-08-21 04:34:03.302 14 INFO designate.dnsutils [designate-manage - - - - -] Doing AXFR for example.com. from {'zone_id': '366c4b4c-6c3e-441b-9b2f-b142284441f3', 'host': '1.2.3.4', 'port': 5354, 'id': '3bc411db-6f7f-4334-a226-        4f559425d752', 'created_at': datetime.datetime(2023, 8, 21, 4, 34, 3), 'updated_at': None, 'version': 1}
         72 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils [designate-manage - - - - -] Problem doing AXFR example.com. from {'zone_id': '366c4b4c-6c3e-441b-9b2f-b142284441f3', 'host': '1.2.3.4', 'port': 5354, 'id': '3bc411db-6f7f-4334-        a226-4f559425d752', 'created_at': datetime.datetime(2023, 8, 21, 4, 34, 3), 'updated_at': None, 'version': 1}. Trying next server.: TypeError: '>' not supported between instances of 'float' and 'NoneType'
         73 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils Traceback (most recent call last):
         74 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils   File "/usr/lib/python3.6/site-packages/designate/dnsutils.py", line 359, in do_axfr
         75 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils     raw_zone = dns.zone.from_xfr(xfr, relativize=False)
         76 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils   File "/usr/lib/python3.6/site-packages/dns/zone.py", line 1066, in from_xfr
         77 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils     for r in xfr:
         78 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils   File "/usr/lib/python3.6/site-packages/dns/query.py", line 470, in xfr
         79 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils     if mexpiration is None or mexpiration > expiration:
         80 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils TypeError: '>' not supported between instances of 'float' and 'NoneType'
         81 2023-08-21 04:34:03.304 14 ERROR designate.dnsutils
         82 2023-08-21 04:34:03.306 14 WARNING designate.mdns.xfr [designate-manage - - - - -] XFR failed for example.com.. No servers in [{'zone_id': '366c4b4c-6c3e-441b-9b2f-b142284441f3', 'host': '1.2.3.4', 'port': 5354, 'id': '3bc411db-6        f7f-4334-a226-4f559425d752', 'created_at': datetime.datetime(2023, 8, 21, 4, 34, 3), 'updated_at': None, 'version': 1}] was reached.: designate.exceptions.XFRFailure: XFR failed for example.com.. No servers in [{'zone_id': '366c4b4c-        6c3e-441b-9b2f-b142284441f3', 'host': '1.2.3.4', 'port': 5354, 'id': '3bc411db-6f7f-4334-a226-4f559425d752', 'created_at': datetime.datetime(2023, 8, 21, 4, 34, 3), 'updated_at': None, 'version': 1}] was reached.
         83 2023-08-21 04:34:03.854 15 INFO designate.service [req-f37a1ba5-f0dd-45ea-9c90-ccf75b59357b - - - - -] TCP Timeout from: 1.2.3.4:34346


Expected results:
create successed

Additional info:
I found the upstream disscussion here, it seems we hits it.
https://bugs.launchpad.net/designate/+bug/1941988
https://bugs.launchpad.net/designate/+bug/1941988/comments/0