| Summary: | Nova does not clean up deleted instances which severely impacts horizon performance | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Jon Jozwiak <jjozwiak> | ||||
| Component: | python-django-horizon | Assignee: | Itxaka <iserrano> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Ido Ovadia <iovadia> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 7.0 (Kilo) | CC: | aortega, athomas, berrange, dasmith, david.costakos, eglynn, iserrano, jduncan, jjozwiak, kchamart, mrunge, rdopiera, sbauza, sferdjao, sgordon, srevivo, vromanso | ||||
| Target Milestone: | --- | Keywords: | ZStream | ||||
| Target Release: | 8.0 (Liberty) | Flags: | mrunge:
needinfo?
(jjozwiak) iserrano: needinfo? (jjozwiak) iserrano: needinfo? (jjozwiak) |
||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-04-22 08:21:56 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Jon Jozwiak
2016-03-23 20:09:12 UTC
I think this is a Horizon bug. Soft-deleted instances should have no effect on displaying information about existing instances, as the filtering would happen on the database side. It certainly shouldn't take more than a minute to filter 45k entries on a boolean field. For the soft-deleted instances to negatively affect the performance of Horizon, it would have to specifically ask Nova to provide the list of deleted instances. If Horizon indeed does that, this is a bug that should be solved in Horizon. I'm re-categorizing this bug to Horizon, so that the developers can check for such queries. Which page are you visiting in Horizon, where you were spotting the timeout? Can confirm that with around 45000 deleted instances and accessing the admin->overview page, the request takes around 21 seconds in a local network (so no network delays that could affect the timing) Main issue seems to come from a call that we do to novaclient.usage.list in which we ask a detailed vies, which includes all the deleted instances. Unfortunately, the overview of the admin needs this data to provide a proper view. There is a patch upstream for Neutron that allows to configure the overview range to 1 day, thus diminishing the issues that occurs with a large number of deleted instances. https://review.openstack.org/#/c/238204/ But in the end, this looks like its the intended output, a display of all instances, even deleted ones. Im closing this and following this issue on bz 1329414 that has opened the issue upstream. *** This bug has been marked as a duplicate of bug 1329414 *** |