nova/nova/api/openstack
Dan Smith 72058b7a40 Join quota exception family trees
For some reason, we have two lineages of quota-related exceptions in
Nova. We have QuotaError (which sounds like an actual error), from
which all of our case-specific "over quota" exceptions inhert, such
as KeypairLimitExceeded, etc. In contrast, we have OverQuota which
lives outside that hierarchy and is unrelated. In a number of places,
we raise one and translate to the other, or raise the generic
QuotaError to signal an overquota situation, instead of OverQuota.
This leads to places where we have to catch both, signaling the same
over quota situation, but looking like there could be two different
causes (i.e. an error and being over quota).

This joins the two cases, by putting OverQuota at the top of the
hierarchy of specific exceptions and removing QuotaError. The latter
was only used in a few situations, so this isn't actually much change.
Cleaning this up will help with the unified limits work, reducing the
number of potential exceptions that mean the same thing.

Related to blueprint bp/unified-limits-nova

Change-Id: I17a3e20b8be98f9fb1a04b91fcf1237d67165871
2022-02-08 07:52:01 -08:00
..
compute Join quota exception family trees 2022-02-08 07:52:01 -08:00
__init__.py conf: Remove deprecated 'project_id_regex' opt 2019-09-27 18:59:02 +09:00
api_version_request.py api: Introduce microversion 2.89 adjusting os-volume_attachments 2021-08-24 12:07:41 +01:00
auth.py Noauth should also use request_id from compute_req_id.py 2018-04-04 14:21:01 -04:00
common.py Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
identity.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
requestlog.py api: Log correct client IP if load balancer in use 2021-06-09 22:20:38 +00:00
urlmap.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
versioned_method.py Implement microversion support on api methods 2014-12-05 09:54:41 +08:00
wsgi_app.py Add service version check workaround for FFU 2022-01-24 08:45:58 -08:00
wsgi.py Convert features not supported error to HTTPBadRequest 2021-09-01 09:09:58 -05:00