I've tested with the default Devstack setup - no problem to terminate a 'Suspended' instance. No errors, all fine.
Please specify what kind of virt driver do you use, what type is the virtual instance. And even more important - is this the latest dev code(Folsom), or Essex? In the NOVA API current code we have:
# NOTE(maoy): we allow delete to be called no matter what vm_state says.
@wrap_check_policy
@check_instance_state(vm_state=None, task_state=None)
def delete(self, context, instance):
So it seems no limitation to the vm_state for termination.
I've tested with the default Devstack setup - no problem to terminate a 'Suspended' instance. No errors, all fine.
Please specify what kind of virt driver do you use, what type is the virtual instance. And even more important - is this the latest dev code(Folsom), or Essex? In the NOVA API current code we have:
# NOTE(maoy): we allow delete to be called no matter what vm_state says. check_policy instance_ state(vm_ state=None, task_state=None)
@wrap_
@check_
def delete(self, context, instance):
So it seems no limitation to the vm_state for termination.