yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66369
[Bug 1676420] Re: displaying instance with django-debug-toolbar results in a lot of glance calls
Reviewed: https://review.openstack.org/450200
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=1faf8c2dd9554b9bd2d2c0b483bc1b7d697ef394
Submitter: Jenkins
Branch: master
commit 1faf8c2dd9554b9bd2d2c0b483bc1b7d697ef394
Author: Guillaume Espanel <guillaume.espanel@xxxxxxxxxxxxxxxxxx>
Date: Mon Mar 27 14:49:42 2017 +0200
Save image name in Server.image_name method
The api.nova.Server.image_name @property can be called multiple times
for a given server. It can result in so many calls to glance.get_image.
This patch saves the result of the image name as returned by the
glance.get_image call in the Server.image dict, so that subsequent calls
to image_name can return faster.
Change-Id: I38993f13619f1725bcc7c763fe364f415e88eb62
Closes-bug: #1676420
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1676420
Title:
displaying instance with django-debug-toolbar results in a lot of
glance calls
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
Displaying the instance details "/project/instances/instance_id" with
django-debug-tool-bar results in many useless calls to glance image
list. This might be due to the fact that ddtb tries to read image_name
multiple times which then proceeds to call glance.image_get. I think
we should save the result of glance.image_get in the Server.image
dict.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1676420/+subscriptions
References