** Also affects: nova/icehouse Importance: Undecided Status: New ** Changed in: nova/icehouse Importance: Undecided => Low
** Changed in: nova/icehouse Status: New => Fix Committed ** Changed in: nova/icehouse Milestone: None => 2014.1.3 -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1275173 Title: _translate_from_glance() can cause an unnecessary HTTP request Status in Cinder: Fix Released Status in OpenStack Compute (Nova): Fix Released Status in OpenStack Compute (nova) icehouse series: Fix Committed Bug description: I noticed when performing a "nova image-show" on a current (not deleted) image, two HTTP requests were issued. Why isn't the Image retrieved on the first GET request? In fact, it is. The problem lies in _extract_attributes(), called by _translate_from_glance(). This function loops through a list of expected attributes, and extracts them from the passed-in Image. The problem is that if the attribute 'deleted' is False, there won't be a 'deleted_at' attribute in the Image. Not finding the attribute results in getattr() making another GET request (to try to find the "missing" attribute?). This is unnecessary of course, since it makes sense for the Image to not have that attribute set. To manage notifications about this bug go to: https://bugs.launchpad.net/cinder/+bug/1275173/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp