Previously an over-quota condition would be exposed via the EC2 API,
but hidden in the corresponding call via the native API (in the sense
of the exception detail being replaced with a generic 500 Server Error
response).
We now report any NovaException declared to be safe. In this patch,
the set of safe exception types includes any subclass of QuotaError,
but in subsequent patches the net should be widened to include
exceptions that do not expose senstive information.
Reviewed: https:/ /review. openstack. org/9430 github. com/openstack/ nova/commit/ 4c49df742d1730b 124f81e30f12e61 602966a819
Committed: http://
Submitter: Jenkins
Branch: stable/essex
commit 4c49df742d1730b 124f81e30f12e61 602966a819
Author: Eoghan Glynn <email address hidden>
Date: Fri Jul 6 10:10:28 2012 +0000
Expose over-quota exceptions via native API.
Fixes bug LP 1021373.
Previously an over-quota condition would be exposed via the EC2 API,
but hidden in the corresponding call via the native API (in the sense
of the exception detail being replaced with a generic 500 Server Error
response).
We now report any NovaException declared to be safe. In this patch,
the set of safe exception types includes any subclass of QuotaError,
but in subsequent patches the net should be widened to include
exceptions that do not expose senstive information.
Change-Id: I3cc36337c7e67c f487ca49de646c4 37c217ae538