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.
Reviewed: https:/ /review. openstack. org/70518 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8fcefef5c6d b3bb7f182df62de 9c5bf986f97303
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8fcefef5c6db3bb 7f182df62de9c5b f986f97303
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: I67b7dd16a94fe6 0d873c012f6bd24 6ab24500d5a
Closes-Bug: #1275173