Comment 2 for bug 1668267

Revision history for this message
Satya Sanjibani Routray (satroutr) wrote : Re: [Bug 1668267] Re: Nova ignores to update the quota for VMs in error

Please read the step 3

Where it mentioned delete all vms

On 27-Feb-2017 7:41 PM, "John Garbutt" <email address hidden> wrote:

> Thats expected, you have to delete the instance to remove the quota
> usage.
>
> That is by design, as its very possible for an instance that is in the
> ERROR state to be running and user hypervisor resources, IPs, volumes,
> etc.
>
> You must delete to remove the quota usage.
>
> I don't believe thats a recent change. Did you see different behaviour
> on a previous release?
>
> ** Tags added: quotas
>
> ** Changed in: nova
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1668267
>
> Title:
> Nova ignores to update the quota for VMs in error
>
> Status in OpenStack Compute (nova):
> Incomplete
>
> Bug description:
> When VMs goes to ERROR state after the block device mapping nova updates
> the quota for adding the instance/CPU/RAM to the quota
> but when we delete those VMs nova forgets the release/update the
> CPU/RAM/Instance quota
>
> Steps to reproduce:
> 1. Set the quota limit for volumes to 10 and VMs to 50
> 2. create 20 VMs by using option boot from volume from horizon
> Observation:
> 10 VMs comes to active state and 10 goes to ERROR state (As expected)
>
> 3. delete all VMs
>
> Expectation: CPU/RAM/Instance used quota will come to "0"
> Actual: CPU/RAM/Instance quota is not coming to "0"
> CPU used quota shows 10 (As the VM is created from M1.SMALL flavor)
> Instance quota shows 10
> RAM quota shows 20480MB
>
> which is quite unexpected
>
> Its seems it is a blocker for Ocata release
>
> I am running from the stable/Ocata
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1668267/+subscriptions
>