Package: python3-dnspython
Version: 1.16.0-1
Severity: normal

Dear Maintainer,

Python3-dnspython breaking usage of Openstack designate when creating secondary 
zone as you can see below:

openstack zone create --type SECONDARY --masters 192.168.205.100 --description 
"test" example.com.

Error log: 

2021-04-08 16:31:28.546 20 ERROR designate.dnsutils 
[req-5088dc1a-c227-4064-9fa3-db198643bf42 a46ec7fcb985450aaf0d040f327d4d4e 
62eead7f1b944408828e8c64130a1e0d - - -] Problem doing AXFR example.com. from 
{'zone_id': '56fae69a-a91f-454a-a7ce-e7045604f6c3', 'host': '192.168.205.100', 
'port': 53, 'id': 'bcab70a2-7905-4e1a-b840-47117a97a53c', 'created_at': 
datetime.datetime(2021, 4, 8, 16, 31, 28), 'updated_at': None, 'version': 1}. 
Trying next server.: TypeError: '>' not supported between instances of 'float' 
and 'NoneType'
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils Traceback (most recent call 
last):
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils   File 
"/usr/lib/python3/dist-packages/designate/dnsutils.py", line 359, in do_axfr
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils     raw_zone = 
dns.zone.from_xfr(xfr, relativize=False)
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils   File 
"/usr/lib/python3/dist-packages/dns/zone.py", line 1106, in from_xfr
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils     for r in xfr:
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils   File 
"/usr/lib/python3/dist-packages/dns/query.py", line 611, in xfr
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils     if mexpiration is None 
or mexpiration > expiration:
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils TypeError: '>' not 
supported between instances of 'float' and 'NoneType'
2021-04-08 16:31:28.546 20 ERROR designate.dnsutils 

Following patch from higher version is fixing this issue: 
Report >> https://github.com/rthalley/dnspython/issues/390
Patch >> 
https://github.com/nrhall/dnspython/commit/9403c1bdbdf562cb01ee492b207b1f26191976ca



-- System Information:
Debian Release: 10.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-dnspython depends on:
ii  netbase  5.6
ii  python3  3.7.3-1

Versions of packages python3-dnspython recommends:
ii  ca-certificates            20190110
ii  python3-cryptography       2.6.1-3+deb10u2
ii  python3-idna               2.6-1
ii  python3-requests           2.21.0-1
pn  python3-requests-toolbelt  <none>

Versions of packages python3-dnspython suggests:
pn  python3-sniffio  <none>
pn  python3-trio     <none>

Reply via email to