Designate DNS – NS type recordset is not created for Secondary type zone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
In Progress
|
Undecided
|
Mitya Eremeev |
Bug Description
### Scenario ###
Create a Secondary type zone
Note: it's possible to use Bind fpr AXFR
Once Zone is active list zones with:"openstack zone list"
### Expected result ###
NS and SOA type records are automatically created.
Note: this is how it works for a Primary zone and it expected to be the same for a Secondary zone.
### Actual Result ###
Only SOA recordset is created.
(openstack) zone show ecea85da-
+------
| Field | Value |
+------
| action | NONE |
| attributes | |
| created_at | 2021-08-
| description | None |
| email | <email address hidden> |
| id | ecea85da-
| masters | 10.35.64.8 |
| name | debuntu.foo. |
| pool_id | 794ccc2c-
| project_id | 814452a9efd84ce
| serial | 1 |
| status | ACTIVE |
| transferred_at | None |
| ttl | 3600 |
| type | SECONDARY |
| updated_at | 2021-08-
| version | 2 |
+------
(openstack) recordset list ecea85da-
+------
| id | name | type | records | status | action |
+------
| 95fe4824-
+------
I suppose you use Openstack version before Yoga.
Reproduced the bug in Victoria version.
Found error messages in designate mdns log:
2022-05-13 10:33:27.859 11 INFO designate.dnsutils [req-c8db1305- c9be-4f82- 9191-0d30792319 f4 4d81fe6db2cc473 082ff2590e36365 1f 094a78d8bd52449 884839b0c51a97e 65 - - -] Doing AXFR for example.ru. from {'zone_id': '12cf8890- 252f-4115- ad6c-1f9bc853e2 ca', 'host': '100.66.48.209', 'port': 53, 'id': 'ce6c35f4- 3293-4e17- 82b7-4a06bf1d75 3d', 'created_at': datetime. datetime( 2022, 5, 13, 10, 33, 27), 'updated_at': None, 'version': 1} c9be-4f82- 9191-0d30792319 f4 4d81fe6db2cc473 082ff2590e36365 1f 094a78d8bd52449 884839b0c51a97e 65 - - -] Problem doing AXFR example.ru. from {'zone_id': '12cf8890- 252f-4115- ad6c-1f9bc853e2 ca', 'host': '100.66.48.209', 'port': 53, 'id': 'ce6c35f4- 3293-4e17- 82b7-4a06bf1d75 3d', 'created_at': datetime. datetime( 2022, 5, 13, 10, 33, 27), 'updated_at': None, 'version': 1}. Trying next server.: TypeError: '>' not supported between instances of 'float' and 'NoneType' openstack/ lib/python3. 8/site- packages/ designate/ dnsutils. py", line 359, in do_axfr from_xfr( xfr, relativize=False) openstack/ lib/python3. 8/site- packages/ dns/zone. py", line 1106, in from_xfr openstack/ lib/python3. 8/site- packages/ dns/query. py", line 611, in xfr c9be-4f82- 9191-0d30792319 f4 4d81fe6db2cc473 082ff2590e36365 1f 094a78d8bd52449 884839b0c51a97e 65 - - -] XFR failed for example.ru.. No servers in [{'zone_id': '12cf8890- 252f-4115- ad6c-1f9bc853e2 ca', 'host': '100.66.48.209', 'port': 53, 'id': 'ce6c35f4- 3293-4e17- 82b7-4a06bf1d75 3d', 'created_at': datetime. datetime( 2022, 5, 13, 10, 33, 27), 'updated_at': None, 'version': 1}] was reached.: designate. exceptions. XFRFailure: XFR failed for example.ru.. No servers in [{'zone_id': '12cf8890- 252f-4115- ad6c-1f9bc853e2 ca', 'host': '100.66.48.209', 'port': 53, 'id': 'ce6c35f4- 3293-4e17- 82b7-4a06bf1d75 3d', 'created_at': datetime. datetime( 2022, 5, 13, 10, 33, 27), 'updated_at': None, 'version': 1}] was reached.
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils [req-c8db1305-
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils Traceback (most recent call last):
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils File "/var/lib/
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils raw_zone = dns.zone.
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils File "/var/lib/
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils for r in xfr:
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils File "/var/lib/
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils if mexpiration is None or mexpiration > expiration:
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils TypeError: '>' not supported between instances of 'float' and 'NoneType'
2022-05-13 10:33:27.885 11 ERROR designate.dnsutils
2022-05-13 10:33:27.888 11 WARNING designate.mdns.xfr [req-c8db1305-
This error in dnspython was fixed in version 2: /github. com/rthalley/ dnspython/ commit/ 9fbf9b223dc2626 2b1cf23f623f892 83ee9c8375
https:/
Openstack bumped dnspython to version 2 in Yoga.
Need some workaround for openstack version prior Yoga.