Error in log when performing volume to image upload

Solution Unverified - Updated -

Issue

When trying to upload a volume as an image with following command, the command works - but errors are present in the cinder volume logs:

$ cinder upload-to-image vol45 vol45-image

2016-04-05 12:00:23.208 24325 ERROR cinder.volume.manager [req-9f97e29d-c755-1a32-a169-13ca248735e5 e5e0290aa8fe40409f1468385c23b739 8d16977e647648e387e80e3c1e30922e - - -] Error occurred while uploading volume 67a62ab6-1a32-43e5-9e07-2db9fe664691 to image 8aa48b7d-1a32-408f-8dad-9a905fd0bacf.
2016-04-05 12:00:23.535 24325 ERROR oslo_messaging.rpc.dispatcher [req-9f97e29d-c755-1a32-a169-13ca248735e5 e5e0290aa8fe40409f1468385c23b739 8d16977e647648e387e80e3c1e30922e - - -] Exception during message handling: 'NoneType' object has no attribute 'keys'
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 972, in copy_volume_to_image
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     payload['message'] = six.text_type(error)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 958, in copy_volume_to_image
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     image_meta)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/driver.py", line 584, in copy_volume_to_image
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     attach_info['device']['path'])
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 341, in upload_volume
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     image_service.update(context, image_id, {}, image_file)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/image/glance.py", line 333, in update
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     return self._translate_from_glance(context, image_meta)
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/image/glance.py", line 366, in _translate_from_glance
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher     for key in image.keys()
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher AttributeError: 'NoneType' object has no attribute 'keys'
2016-04-05 12:00:23.535 24325 TRACE oslo_messaging.rpc.dispatcher

Environment

  • Red Hat Enterprise Linux OpenStack Platform 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content