Log message "fetching image %s from glance" is written in wrong place
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In nova.image.glance:
def get_remote_
"""Create an image_service and parse the id from the given image_href.
The image_href param can be an href of the form
'http://
or just an id such as 'b8b2c6f7-
image_href is a standalone id, then the default image service is returned.
:param image_href: href that describes the location of an image
:returns: a tuple of the form (image_service, image_id)
"""
# Calling out to another service may take a while, so lets log this
LOG.
#NOTE(
# standalone image ID
if '/' not in str(image_href):
return image_service, image_href
try:
(image_id, glance_host, glance_port, use_ssl) = \
except ValueError:
raise exception.
image_service = GlanceImageServ
return image_service, image_id
Clearly the LOG.debug() message above is incorrect. The method does not fetch an image at all. It just returns an ImageService object.
Changed in nova: | |
assignee: | nobody → Santiago Baldassin (santiago-b-baldassin) |
Changed in nova: | |
assignee: | Santiago Baldassin (santiago-b-baldassin) → nobody |
Changed in nova: | |
milestone: | none → icehouse-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-rc1 → 2014.1 |
Reviewed: https:/ /review. openstack. org/80834 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8d2b2501055 64bc3288bf01881 dfdc7f48012708
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8d2b250105564bc 3288bf01881dfdc 7f48012708
Author: Jay Pipes <email address hidden>
Date: Sun Mar 16 09:14:21 2014 -0400
Remove bad log message in get_remote_ image_service
There was a LOG.debug() message in the image.glance. get_remote_ image_service( ) call that was incorrect and
nova.
misleading:
LOG. debug(_ ("fetching image %s from glance") % image_href)
This function actually does not fetch any image from Glance -- rather,
it is just used to get the default image service object or an image
service object for use with a remote Glance server.
Change-Id: I2b71c2c52d6593 ad4677767a6f2bb 40c399fe9eb
Closes-bug: #1292984