delete a resize instance change quota_usages incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
guolidong |
Bug Description
Description
===========
After a resize instance in finish_resize step fault, the quota rollback but instance has changed to new flavor, then delete the instance use new flavor to reduce quota usage.
Steps to reproduce
==================
1、execute 'nova limits --tenant <tenant>' to show quota usages.
2、create an instance with m1.tiny flavor.
3、create a new flavor with same config to m1.tiny, except add vcpus to 2.
4、make finish resize error, like port binding failed, and use new flavor to resize instance.
5、after delete the instance, use 'nova limits --tenant <tenant>' to show quota usages.
Expected result
===============
The second quota_usages cores used as same as the first.
Actual result
=============
The second quota_usages cores used less than the first.
Environment
===========
Newton
libvirt & KVM
Logs & Configs
==============
resize error:
2018-01-30 16:19:37.137 8378 INFO nova.compute.
2018-01-30 16:19:37.255 8378 INFO nova_patch.
2018-01-30 16:19:46.994 8378 WARNING nova.context [req-9e11622b-
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
2018-01-30 16:19:47.890 8378 ERROR nova.compute.
quota_usages:
[root@NAIL2SHEL
+------
| Verb | URI | Value | Remain | Unit | Next_Available |
+------
+------
+------
| Name | Used | Max |
+------
| Cores | -1 | 20 |
| FloatingIps | 0 | 10 |
| ImageMeta | - | 128 |
| Instances | 0 | 10 |
| Keypairs | - | 100 |
| Personality | - | 5 |
| Personality Size | - | 10240 |
| RAM | 0 | 51200 |
| SecurityGroupRules | - | 20 |
| SecurityGroups | 1 | 10 |
| Server Meta | - | 128 |
| ServerGroupMembers | - | 10 |
| ServerGroups | 2 | 10 |
+------
Changed in nova: | |
assignee: | nobody → guolidong (guolidong) |
tags: | added: openstack-version.newton quotas resize |
Quotas had big changes since Newton and now it's hard to know whether the problem you identified is still present. Could you please try to spin a devstack install and reproduce your scenario against the master branch ?
Thanks.