nova usage-list doesn't show all instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Nalini Varshney |
Bug Description
nova usage-list (os-simple-
it will return 2 kinds of instances:
query = query.filter(
in my devstack environment, query from db I see there are some instance which
mysql> select count(*) from instances where launched_at is NULL;
+----------+
| count(*) |
+----------+
| 3 |
+----------+
1 row in set (0.00 sec)
mysql> select count(*) from instances ;
+----------+
| count(*) |
+----------+
| 22 |
+----------+
but usage-list doesn't show 22, it doesn't count the instance which launched_at is NULL
(I don't know why they are NULL , maybe live-migration failed)
Usage from 2015-02-26 to 2015-03-27:
+------
| Tenant ID | Servers | RAM MB-Hours | CPU Hours | Disk GB-Hours |
+------
| 0d028ada663f41c
+------
do we need to count launched_at instances ?
Changed in nova: | |
assignee: | nobody → Eli Qiao (taget-9) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | Eli Qiao (taget-9) → Abhishek Talwar (abhishek-talwar) |
Changed in nova: | |
assignee: | Abhishek Talwar (abhishek-talwar) → nobody |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | nobody → Abhishek Talwar (abhishek-talwar) |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | Abhishek Talwar (abhishek-talwar) → nobody |
Changed in nova: | |
assignee: | nobody → puja (pujachowdhary) |
Changed in nova: | |
assignee: | PujaChowdhary (pujachowdhary) → nobody |
Changed in nova: | |
assignee: | nobody → Nalini Varshney (varshneyg) |
Fix proposed to branch: master /review. openstack. org/168232
Review: https:/