Usage summary not reduce when delete error instances

Bug #1683009 reported by Jiang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

I create an instance on openstack ocata, but failed. Then the instance status is Error. If I delete the instance, the usage summary should be reduce, but it unchanged. if the usage equals limit, I can not create any instances anymore.

Revision history for this message
Jiang (jiangpf) wrote :
Jiang (jiangpf)
description: updated
Sean Dague (sdague)
Changed in nova:
status: New → Incomplete
Revision history for this message
Jiang (jiangpf) wrote :

hello, maybe you can create a flavor with very big RAM. Then use the flavor to create a instance, you can get a instance with error state. Finally, delete the instance, you can get the problem.

Jiang (jiangpf)
Changed in nova:
status: Incomplete → New
Revision history for this message
Ritesh Paiboina (rsritesh) wrote :

Hi,

Tried today in the current master

The problem what you have seen in the dashboard (Horizon) cannot been seen in openstack / nova cli commands.

Seems to be specific to dashboard or old version of the projects.

Please try in the Master branch.

Changed in nova:
status: New → Incomplete
Jiang (jiangpf)
affects: nova → horizon
Changed in horizon:
status: Incomplete → New
Revision history for this message
Akihiro Motoki (amotoki) wrote :

Horizon does not store any usage data. The limit summary is based on data returned by nova API.

In the project overview, two nova API is used: tenant_absolute_limit [1] which corresponds to NOVACLIENT.limits.get(reserved=True).absolute (where NOVACLIENT is a client instance).
Note that Nova API v2.0 is used.

The corresponding command line is "nova limits --reserved".

If this happens, you need to check what limits nova returns.

[1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/usage/base.py#L201

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Horizon depends on what Nova returns, so I think this is an issue in nova. Retargeting the bug to Nova.

affects: horizon → nova
Jiang (jiangpf)
Changed in nova:
status: New → Incomplete
Jiang (jiangpf)
Changed in nova:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.