Comment 4 for bug 1275173

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/70518
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8fcefef5c6db3bb7f182df62de9c5bf986f97303
Submitter: Jenkins
Branch: master

commit 8fcefef5c6db3bb7f182df62de9c5bf986f97303
Author: Chris Buccella <email address hidden>
Date: Sat Feb 1 07:05:11 2014 +0000

    _translate_from_glance() can cause an unnecessary HTTP request

    After returning from a get() call to python-glanceclient, nova runs a
    translation function on the returned Image to get the data it wants. Part of
    this process is checking for an expected set of attributes, one of which is
    the deletion time ('deleted_at'). However, if the image has not been deleted,
    deleted_at key will not exist. This forces another call to glance to occur for
    the same image. A similar problem exists for the checksum attribute, which does
    not exist before an image is active. The fix here is to only consider
    deleted_at and checksum if they are expected to be present.

    Change-Id: I67b7dd16a94fe60d873c012f6bd246ab24500d5a
    Closes-Bug: #1275173