InstanceIsLocked Exception didn't raise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
jichenjc |
Bug Description
When VM is locked by nova, VM API should not execute.
There are so many api that cannot be executed when vm is locked.
But When API is tried, nova raise inappropriate InstanceInvalidSate exception instead of InstanceIsLocked exception.
example)
$ nova reboot 9b4a0687-
ERROR: Instance is in an invalid state for 'reboot' (HTTP 409) (Request-ID: req-8407d42d-
$ nova delete 9b4a0687-
Instance is in an invalid state for 'delete' (HTTP 409) (Request-ID: req-f1b144b6-
This case is occured from so many compute api.
delete
reboot
rebuild
resize
shelve
pause
unpause
suspend
resume
rescue
unrescue
attach_volume
detach_volume
update_
InstanceInvalid
but InstanceIsLocked inherited InstanceInvalid
So I suggest modify InstanceIsLocked inherit Invalid instead of InstanceInvalid
InstanceIsLocke
tags: | added: api |
Changed in nova: | |
status: | New → Opinion |
Changed in nova: | |
assignee: | nobody → jichencom (jichenjc) |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
this bug is already commited,the Bug #1256873