quota is always in-use after delete the ERROR instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Matt Riedemann | ||
Ocata |
Fix Released
|
Critical
|
Matt Riedemann |
Bug Description
1. stop nova-compute
2. boot an instance
3. the instance is in ERROR
4. delete the instance
5. repeat 1-4 for several times(actually, I create the instance by heat, heat will retry to create the instance 5 times by default and will delete the error instance before every retrying)
6. I can't boot instance after nova-compute back, the reason is "Quota exceeded for instances: Requested 1, but already used 10 of 10 instances"
7. but in fact, there is no instance return by cmd nova-list
8. I find that the quota is still in-use, see table 'quota_usages':
mysql> select *from quota_usages;
+------
| created_at | updated_at | deleted_at | id | project_id | resource | in_use | reserved | until_refresh | deleted | user_id |
+------
| 2017-03-07 06:26:08 | 2017-03-07 08:48:09 | NULL | 1 | 2b623ba1dddc476
| 2017-03-07 06:26:08 | 2017-03-07 08:48:09 | NULL | 2 | 2b623ba1dddc476
| 2017-03-07 06:26:08 | 2017-03-07 08:48:09 | NULL | 3 | 2b623ba1dddc476
| 2017-03-07 09:17:37 | 2017-03-07 09:35:14 | NULL | 4 | 12bdc74d666d4f7
| 2017-03-07 09:17:37 | 2017-03-07 09:35:14 | NULL | 5 | 12bdc74d666d4f7
| 2017-03-07 09:17:37 | 2017-03-07 09:35:14 | NULL | 6 | 12bdc74d666d4f7
+------
Changed in nova: | |
assignee: | nobody → huangtianhua (huangtianhua) |
tags: | added: cells ocata-backport-potential quotas |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
importance: | High → Critical |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Dan Smith (danms) |
Changed in nova: | |
assignee: | Dan Smith (danms) → Matt Riedemann (mriedem) |
Fix proposed to branch: master /review. openstack. org/443003
Review: https:/