Ask Your Question

Block Device Mapping is Invalid.

asked 2017-02-20 11:52:25 -0500

updated 2017-02-20 19:27:19 -0500

Recently, I've installed OpenStack and Using the Horizon I tried to create the instance. Server responding with following error. However, only Cirros is working perfectly, when I try to create the instance and other any image uploaded file is getting failed.

If I try to create the instance using same image file which is getting failed at Horizon but it works at command prompt. So I was able to create instance using command prompt but not form the Horizon.

    Build of instance 5a583a47-1f53-462f-8199-4efabcad5144 aborted: Block Device Mapping is Invalid.
Code        500
    File "/usr/lib/python2.7/site-packages/nova/compute/", line 1779, in _do_build_and_run_instance filter_properties) File "/usr/lib/python2.7/site-packages/nova/compute/", line 1939, in _build_and_run_instance 'create.error', fault=e) File "/usr/lib/python2.7/site-packages/oslo_utils/", line 220, in __exit__ self.force_reraise() File "/usr/lib/python2.7/site-packages/oslo_utils/", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/", line 1904, in _build_and_run_instance block_device_mapping) as resources: File "/usr/lib64/python2.7/", line 17, in __enter__ return File "/usr/lib/python2.7/site-packages/nova/compute/", line 2066, in _build_resources reason=e.format_message()) 
    Feb. 20, 2017, 5:44 p.m.

What would be the issues ? I tried couple of things but it is not working.

edit retag flag offensive close merge delete


Perhaps your Horizon launches the instance from a volume (SOURCE tab of LAUNCH dialog). Launching an instance from the CLI doesn't use a volume by default, but ephemeral storage. This may explain the difference. Now, to understand why your block device mapping fails, perhaps Cinder logs help.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-20 21:17:27 -0500 )edit

I found three log files in /var/log/cinder/

api.log  backup.log  cinder-manage.log  scheduler.log  volume.log

Which one you would like me to check.

SSK gravatar imageSSK ( 2017-02-20 21:57:38 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2017-02-21 02:46:35 -0500

harshal gravatar image

This can be resolved by two way.

1) You can define Volume size more than your image size

2) To avoid creation of new volume you can simply click on NO for Create New Volume Option

edit flag offensive delete link more


Perfect!! Working :-)

SSK gravatar imageSSK ( 2017-02-21 03:01:00 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2017-02-20 11:52:25 -0500

Seen: 17,421 times

Last updated: Feb 21 '17