Bug 1979044 - Designate DNS - “BadRequest” is not raised for set quota, If some quota value is invalid.
Summary: Designate DNS - “BadRequest” is not raised for set quota, If some quota value...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-designate
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ga
: 17.0
Assignee: Michael Johnson
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-04 13:48 UTC by Arkady Shtempler
Modified: 2022-09-21 12:16 UTC (History)
4 users (show)

Fixed In Version: openstack-designate-12.0.2-0.20220529170342.2e55c3e.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:16:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1934596 0 None None None 2021-07-04 13:48:31 UTC
OpenStack gerrit 842219 0 None master: MERGED designate: Improve quota API validations (I474bdd988a6cc3a9bcce1b65c2f49216dd85addf) 2022-06-13 17:56:47 UTC
OpenStack gerrit 843179 0 None stable/wallaby: MERGED designate: Improve quota API validations (I474bdd988a6cc3a9bcce1b65c2f49216dd85addf) 2022-06-13 17:57:01 UTC
Red Hat Issue Tracker OSP-5817 0 None None None 2021-11-23 16:08:58 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:16:45 UTC

Description Arkady Shtempler 2021-07-04 13:48:32 UTC
Scenario:
Try to set quota for a project using invalid quotas, for example:

2021-07-04 16:42:13.331 1169274 INFO tempest.lib.common.rest_client [req-036ef900-3e94-4821-9633-be79f88ceddc ] Request (QuotasV2Test:test_admin_sets_invalid_quota_values): 500 PATCH http://10.35.64.8/dns/v2/quotas/81f5b609f64e40799aad57228c6bec6c 0.321s
2021-07-04 16:42:13.332 1169274 DEBUG tempest.lib.common.rest_client [req-036ef900-3e94-4821-9633-be79f88ceddc ] Request - Headers: {'X-Auth-All-Projects': True, 'content-type': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"zones": "tempest-1326507445", "zone_records": 468095, "zone_recordsets": 307092, "recordset_records": 498799, "api_export_size": 968527}

Actual result:
500 Unknown is raised:
    Response - Headers: {'date': 'Sun, 04 Jul 2021 13:42:13 GMT', 'server': 'Apache/2.4.41 (Ubuntu)', 'content-length': '90', 'x-openstack-request-id': 'req-036ef900-3e94-4821-9633-be79f88ceddc', 'connection': 'close', 'content-type': 'application/json', 'status': '500', 'content-location': 'http://10.35.64.8/dns/v2/quotas/81f5b609f64e40799aad57228c6bec6c'}
        Body: b'{"code": 500, "type": "unknown", "request_id": "req-036ef900-3e94-4821-9633-be79f88ceddc"}' _log_request_full /opt/stack/tempest/tempest/lib/common/rest_client.py:450

Expected result:
400 Bad Request with proper Error message.

Comment 10 errata-xmlrpc 2022-09-21 12:16:04 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


Note You need to log in before you can comment on or make changes to this bug.