Comment 2 for bug 1402502

Revision history for this message
eminjin (ming-jin) wrote :

Hi, Melanie,

From the description of "suspend", I think the occupied resource should be released:
"""When you suspend an instance, its VM state is stored on disk, all memory is written to disk, and the virtual machine is stopped. Suspending an instance is similar to placing a device in hibernation; memory and vCPUs become available to create other instances."""

http://docs.openstack.org/user-guide/content/suspend_resume.html

Imaging that there is only one compute node with 1 vcpu, and the "cpu_allocation_ratio" was set to "1.0".
Firstly you started one VM with 1 vcpu used. After a while you suspended it.
Since the resource usage are not updated, it will be failed to create a new VM.

Obviously, it violates the descriptioin "memory and vCPUs become available to create other instances".

Best Regards!
Jin Ming