Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2062141

Summary: Designate DNS – not informative error message on zone import
Product: Red Hat OpenStack Reporter: Arkady Shtempler <ashtempl>
Component: openstack-designateAssignee: Don Kehn <dkehn>
Status: CLOSED ERRATA QA Contact: Toni Freger <tfreger>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.0 (Wallaby)CC: jschluet, lavraham, michjohn, scohen
Target Milestone: gaKeywords: Triaged
Target Release: 17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-designate-12.0.2-0.20220614212615.f255747.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:19:32 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 Arkady Shtempler 2022-03-09 09:31:18 UTC
### 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/"}}

Comment 3 Don Kehn 2022-04-11 19:45:29 UTC
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.

Comment 12 errata-xmlrpc 2022-09-21 12:19:32 UTC
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