a90fe19512
When shelving a server and saving its new SHELVING task state, we expect the current task state to be None and do not handle any UnexpectedTaskStateError exceptions that the database layer may throw at us. In those cases, we return an error 500 to the user, when in actuality an error 409 conflict would be more appropriate. This patch makes the API layer handle UnexpectedTaskStateError exceptions and return a 409 to the user. NOTE(artom) Conflict in imports in nova/tests/unit/api/openstack/compute/test_shelve.py due to using oslo's uuidsentinel as of |
||
---|---|---|
.. | ||
ec2 | ||
metadata | ||
openstack | ||
validation | ||
__init__.py | ||
auth.py | ||
compute_req_id.py | ||
manager.py | ||
wsgi.py |