nova/releasenotes/notes/convert-features-not-implemented-return-code-bf8beea51705271b.yaml
Ghanshyam Mann 1b6a6e3916 Convert features not supported error to HTTPBadRequest
There is inconsistency on return code nova API return
for "Feature not supported/implemented'. Current return
code are 400, 409, and 403.
- 400 case: Example: Multiattach Swap Volume Not Supported
- 403 case: Cyborg integration
- 409 case: Example: Operation Not Supported For SEV ,
  Operation Not Supported For VTPM

In xena PTG, we agreed to fix this by returning 400 in all cases
- L446: https://etherpad.opendev.org/p/nova-xena-ptg

This commit convert all the features not supported error to
HTTPBadRequest(400).

To avoid converting every NotSupported inherited exception
in API controller to HTTPBadRequest generic conversion is
added in expected_errors() decorator.

Closes-Bug: #1938093

Change-Id: I410924668a73785f1bfe5c79827915d72e1d9e03
2021-09-01 09:09:58 -05:00

9 lines
379 B
YAML

---
upgrade:
- |
A few of the APIs return code was not consistent for the operations/
features not implemented or supported. It was returned as 403, 400, or
409 (for Operation Not Supported For SEV , Operation Not Supported For
VTPM cases). Now we have made it consistent and return 400 always when
any operations/features are not implemented or supported.