### Scenario ### Try to import zone that is already exists. You can use: https://review.opendev.org/c/openstack/designate-tempest-plugin/+/832215 ### Actual Result ### Zone gets into the ERROR status as expected, but the error message: “An undefined error occurred” should be improved. API Response: 2022-03-07 14:45:44.796 232983 INFO tempest.lib.common.rest_client [req-c3cd4dce-7fc4-4589-9089- https://192.168.122.200/dns/ 0.022s 2022-03-07 14:45:44.796 232983 DEBUG tempest.lib.common.rest_client [req-c3cd4dce-7fc4-4589-9089- Body: None Response - Headers: {'date': 'Mon, 07 Mar 2022 14:45:44 GMT', 'server': 'Apache/2.4.41 (Ubuntu)', 'content-length': '384', 'content-type': 'application/json', 'x-openstack-request-id': 'req-c3cd4dce-7fc4-4589-9089-https://192.168.122.200/dns/'} Body: b'{"id": "7306e40d-6753-43bd-8551-message": "An undefined error occurred. ", "zone_id": null, "project_id": "https://127.0.0.1:60053/v2/"}}
Have developed a patch for the fix, working on unit test at the moment. This patch defines the situation where the exception handler produces the message 'An undefined error occurred' to the exception during the zone import where an underlying exception occurs from the rpc dispatcher at the same time as a duplicate zone exception. Added an exception to clarify the error msg and exception message to the rpc ExpectedException.
https://review.opendev.org/c/openstack/designate/+/835651
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2022:6543