Oracle OpenStack 4.0.1: Creating a Volume from Image "Oracle Linux 7.4 Virtual Machine Image for OpenStack" Fails if Volume Size is Less Than Image's Virtual Size

(Doc ID 2403276.1)

Last updated on MAY 30, 2018

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 4.0.1 and later
Linux x86-64

Symptoms

Create a volume from uploaded image "Oracle Linux 7.4 Virtual Machine Image for OpenStack", V968325-01.zip from eDelivery, with default settings shown on Horizon GUI (Size (GiB) is 4),

volume creation fails.

Error in cinder-volume log:

# cat /var/lib/docker/volumes/kolla_logs/_data/cinder/cinder-volume.log
(snip)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server [req-092cd2ad-9e51-46ce-9950-ba618d71eb4e 1a08a0dfedbf4704b5af0788e06a327d a30e963736c747c694a9998060459c40 - default default] Exception during message handling: ImageUnacceptable: Image 848c3fd9-77f0-4f0f-a882-58517f1c0119 is unacceptable: Image virtual size is 15GB and doesn't fit in a volume of size 4GB.
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 160, in _process_incoming
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "<decorator-gen-237>", line 2, in create_volume
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/objects/cleanable.py", line 207, in wrapper
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server result = f(*args, **kwargs)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/manager.py", line 651, in create_volume
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server _run_flow()
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/manager.py", line 643, in _run_flow
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server flow_engine.run()
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 247, in run
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server for _state in self.run_iter(timeout=timeout):
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", line 340, in run_iter
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server failure.Failure.reraise_if_any(er_failures)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/taskflow/types/failure.py", line 336, in reraise_if_any
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server failures[0].reraise()
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/taskflow/types/failure.py", line 343, in reraise
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server six.reraise(*self._exc_info)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server result = task.execute(**arguments)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 951, in execute
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server **volume_spec)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 898, in _create_from_image
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server image_service)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "<decorator-gen-236>", line 2, in _create_from_image_cache_or_download
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/coordination.py", line 176, in _synchronized
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server return f(*a, **k)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 786, in _create_from_image_cache_or_download
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server data.virtual_size, volume.size, image_id)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python2.7/site-packages/cinder/image/image_utils.py", line 502, in check_virtual_size
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server reason=reason)
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server ImageUnacceptable: Image 848c3fd9-77f0-4f0f-a882-58517f1c0119 is unacceptable: Image virtual size is 15GB and doesn't fit in a volume of size 4GB.
2018-05-25 14:06:10.993 32 ERROR oslo_messaging.rpc.server 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms