Designate DNS – list zone exports API, filtering results.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Confirmed
|
Medium
|
Michael Chapman |
Bug Description
According the documentation regarding "list zone exports API":
https:/
it applies filtering listed exports, for example by status, but actually it doesn’t seem to be work.
Tempest test to run the scenario is available here (see patchset1): https:/
“test_list_
designate_
2021-04-11 16:28:14.145801 | controller |
2021-04-11 16:28:14.145831 | controller | Captured traceback:
2021-04-11 16:28:14.145858 | controller | ~~~~~~~~~~~~~~~~~~~
2021-04-11 16:28:14.145884 | controller | Traceback (most recent call last):
2021-04-11 16:28:14.145910 | controller |
2021-04-11 16:28:14.145936 | controller | File "/opt/stack/
2021-04-11 16:28:14.145998 | controller | self.assertEqual(
2021-04-11 16:28:14.146024 | controller |
2021-04-11 16:28:14.146049 | controller | File "/opt/stack/
2021-04-11 16:28:14.146073 | controller | self.assertThat
2021-04-11 16:28:14.146094 | controller |
2021-04-11 16:28:14.146116 | controller | File "/opt/stack/
2021-04-11 16:28:14.146138 | controller | raise mismatch_error
2021-04-11 16:28:14.146158 | controller |
2021-04-11 16:28:14.146188 | controller | testtools.
2021-04-11 16:28:14.146212 | controller | reference = []
2021-04-11 16:28:14.146240 | controller | actual = [{'created_at': '2021-04-
2021-04-11 16:28:14.146264 | controller | 'id': '2cf20a65-
2021-04-11 16:28:14.146287 | controller | 'links': {'export': 'http://
2021-04-11 16:28:14.146351 | controller | 'self': 'http://
2021-04-11 16:28:14.146378 | controller | 'location': 'designate:
2021-04-11 16:28:14.146402 | controller | 'message': None,
2021-04-11 16:28:14.146427 | controller | 'project_id': '209b5b90d84d44
2021-04-11 16:28:14.146453 | controller | 'status': 'COMPLETE',
2021-04-11 16:28:14.146477 | controller | 'updated_at': '2021-04-
2021-04-11 16:28:14.146501 | controller | 'version': 2,
2021-04-11 16:28:14.146524 | controller | 'zone_id': '0e812f1a-
2021-04-11 16:28:14.146547 | controller | : Failed, filtered result is expected to be empty.
2021-04-11 16:28:14.146572 | controller |
Changed in designate: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
I think the criterion being replaced instead of appended to is the issue.
https:/ /opendev. org/openstack/ designate/ src/branch/ master/ designate/ central/ service. py#L2889