Nova cache is constantly being re-created, causing 5s delay per item listing.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Cloud Controller Charm |
New
|
Undecided
|
Unassigned |
Bug Description
A strange bug in my deployment, when cache is enabled I've noticed each instance created is adding about about 5sec when trying to list them, which lead to Horizon timeout if you get more then 6 instances. e.g.
openstack --timing server list
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| 1ec25121-
| d1321873-
| 80dd005b-
| 9b3068db-
+------
+------
| URL | Seconds |
+------
| GET https:/
| POST https:/
| POST https:/
| GET https:/
| GET https:/
| Total | 26.761333000000004 |
+------
I've managed to work around it with config change in nova-cc
[cache]
enabled = false
And I've also traced it down to the following piece of code:
/usr/lib/
196 cache = _get_cache()
197 -> az = cache.get(
What happens is nova is checking if cache exists and somehow it always returns not and tries to create a cache entry per item, which takes about 5s in my environment hence the timeout in Horizon if I get more than 6 instances. My OpenStack is a 3 Zone dMAAS deployment and then the same 3 zones are created in Nova. Never tried to re-created in single zone deployment so don't know if it's an AZ issue or not. My deployment file is attached.