Broken instances quota check in Liberty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Andrew Bogott |
Bug Description
I have recently upgraded my cluster to Liberty for all projects. Now, when I create new instances, I frequently get an incorrect quota warning from the instance creation workflow, despite having plenty of available quota:
"The requested instance cannot be launched as you only have 0 of your quota available."
The issue is happening within the _get_tenant_
"GET /v2/<tenantid>
Nova replies with a list of every instance in my entire cloud, 719 at last count. The call is very slow and, of course, 719 is many more than my instance quota for the current project, so Horizon determines that I am over quota.
Note that this issue didn't appear when I was running Liberty Horizon with Kilo Nova (so maybe this is a bug or change in the nova-api) Best I can tell, the offending code in Horizon is still present in the git head.
It appears that this was broken due to this change in nova:
https:/ /github. com/openstack/ nova/commit/ 55e63f83a7caec5 a8d85b7532c501e 1b846295ba