Unable to create volumes from images

Solution Verified - Updated -

Issue

  • Instances and volumes are unable to be created from images other than the cirros image
  • This fails with Block Device Mapping is Invalid
  • An error like the one below is seen in /var/log/cinder/volume.log:
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server [req-a9826360-cd00-4bb3-b964-ed9af1e1fd4a 0552eac88c654aea8796f2c859bb5cbd 885067dc6b1c406ea853b60d03f382d3 - default default] Exception during message handling
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 133, in _process_incoming
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 150, in dispatch
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 121, in _do_dispatch
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 4367, in create_volume
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     allow_reschedule=allow_reschedule, volume=volume)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 635, in create_volume
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     _run_flow()
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 627, in _run_flow
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     flow_engine.run()
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     for _state in self.run_iter(timeout=timeout):
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     failure.Failure.reraise_if_any(er_failures)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 336, in reraise_if_any
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     failures[0].reraise()
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/types/failure.py", line 343, in reraise
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     six.reraise(*self._exc_info)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     result = task.execute(**arguments)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 842, in execute
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     **volume_spec)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 767, in _create_from_image
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     data.virtual_size, volume.size, image_id)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server   File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 431, in check_virtual_size
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server     reason=reason)
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server ImageUnacceptable: Image 8a1180af-75ec-418e-b86f-53805092ffcd is unacceptable: Image virtual size is 10GB and doesn't fit in a volume of size 1GB.
2017-03-06 15:17:27.917 14735 ERROR oslo_messaging.rpc.server

Environment

  • Red Hat OpenStack Platform 10.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