Why nova fails to communicate with an ssl based glance end-point?

Solution Unverified - Updated -

Issue

While configuring nova-compute to work with glance using https, it fails with below error.

2014-01-24 16:51:53.739 38629 AUDIT nova.compute.manager 
[req-c5df468d-ee4f-4f48-a659-2e27faf678fd ama480 
0bd15fa59ff34f8d8acadbbf46f28350] [instance: 
01ce1221-7f11-4b41-9096-526ed26ed53c] Starting
instance...
2014-01-24 16:51:54.200 38629 ERROR nova.openstack.common.rpc.amqp 
[req-c5df468d-ee4f-4f48-a659-2e27faf678fd ama480 
0bd15fa59ff34f8d8acadbbf46f28350] Exception during message handling
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
Traceback (most recent call last):
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", 
line 461, in _process_data
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp **args)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", 
line 172, in dispatch
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
result = getattr(proxyobj, method)(ctxt, **kwargs)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/exception.py", line 90, in wrapped
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp payload)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/exception.py", line 73, in wrapped
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
return f(self, context, *args, **kw)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 243, in 
decorated_function
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp pass
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 229, in 
decorated_function
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
return function(self, context, *args, **kwargs)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 294, in 
decorated_function
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
function(self, context, *args, **kwargs)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 271, in 
decorated_function
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp e, 
sys.exc_info())
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 258, in 
decorated_function
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
return function(self, context, *args, **kwargs)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1623, 
in run_instance
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
do_run_instance()
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", 
line 246, in inner
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
return f(*args, **kwargs)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1622, 
in do_run_instance
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
legacy_bdm_in_spec)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 962, in 
_run_instance
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
notify("error", msg=unicode(e)) # notify that build failed
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 937, in 
_run_instance
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
image_meta = self._prebuild_instance(context, instance)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 976, in 
_prebuild_instance
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
image_meta = _get_image_meta(context, instance['image_ref'])
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 361, in 
_get_image_meta
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
return image_service.show(context, image_id)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/image/glance.py", line 290, in show
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
_reraise_translated_image_exception(image_id)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/image/glance.py", line 288, in show
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp image 
= self._client.call(context, 1, 'get', image_id)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/nova/image/glance.py", line 212, in call
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
return getattr(client.images, method)(*args, **kwargs)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 114, 
in get
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp % 
urllib.quote(str(image_id)))
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 
289, in raw_request
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
return self._http_request(url, method, **kwargs)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 
241, in _http_request
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
body_str = ''.join([chunk for chunk in body_iter])
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 
495, in __iter__
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp chunk 
= self.next()
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 
511, in next
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp chunk 
= self._resp.read(CHUNKSIZE)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib64/python2.6/httplib.py", line 518, in read
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
self.close()
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib64/python2.6/httplib.py", line 499, in close
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
self.fp.close()
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib64/python2.6/socket.py", line 279, in close
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
self._sock.close()
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp File 
"/usr/lib/python2.6/site-packages/eventlet/greenio.py", line 145, in 
__getattr__
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp attr 
= getattr(self.fd, name)
2014-01-24 16:51:54.200 38629 TRACE nova.openstack.common.rpc.amqp 
AttributeError: 'GreenSocket' object has no attribute 'close'
2014-01-24 16:51:54.200 38629 TRACE

Environment

  • Red Hat Enterprise Linux Openstack Platform v4.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In