diff options
author | Andrew Laski <andrew.laski@rackspace.com> | 2013-05-08 15:59:55 -0400 |
---|---|---|
committer | Andrew Laski <andrew.laski@rackspace.com> | 2013-05-08 15:59:55 -0400 |
commit | 662a793056d4544c9c9d73fc21b99d77404537cc (patch) | |
tree | 949a3e81865c225a446963865d7638015252091c /nova/utils.py | |
parent | 4ce8f2a6a9d4644153b4ba532ca1b78665507d6a (diff) | |
download | nova-662a793056d4544c9c9d73fc21b99d77404537cc.tar.gz nova-662a793056d4544c9c9d73fc21b99d77404537cc.tar.xz nova-662a793056d4544c9c9d73fc21b99d77404537cc.zip |
Raise InstanceInvalidState for double hard reboot
A hard reboot is not allowed if the instance task_state is
REBOOTING_HARD so check for that state and raise InstanceInvalidState.
This returns the correct status of 409 to the caller.
Previously the hard reboot would fail the the expected_task_state check
on db.instance_update_and_get_original which would log a traceback and
return a 500 to the caller.
Bug 1157237
Change-Id: Ifb6111790352da5c404289b218c50d8104384301
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions