Ask Your Question

devstack: cannot launch cirros-0.3.4-x86_64-uec image: Block Device Mapping is Invalid.

asked 2016-12-14 09:44:21 -0600

twotwo gravatar image

updated 2016-12-14 09:45:49 -0600

Hi, I am trying to launch the pre-installed demo image (cirros-0.3.4-x86_64-uec) in devstack, using an m1.tiny flavor via Horizon but I see this error:

Build of instance 61753ef9-ae4d-405f-976a-0b6a910a5205 aborted: Block Device Mapping is Invalid.
File "/opt/stack/nova/nova/compute/", line 1779, in _do_build_and_run_instance filter_properties) File "/opt/stack/nova/nova/compute/", line 1955, in _build_and_run_instance phase=fields.NotificationPhase.ERROR, exception=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 "/opt/stack/nova/nova/compute/", line 1908, in _build_and_run_instance block_device_mapping) as resources: File "/usr/lib64/python2.7/", line 17, in __enter__ return File "/opt/stack/nova/nova/compute/", line 2105, in _build_resources reason=e.format_message())
Dec. 14, 2016, 3:39 p.m.
edit retag flag offensive close merge delete


I am getting same error..were you able to solve it ?

chiragtayal gravatar imagechiragtayal ( 2016-12-15 15:00:53 -0600 )edit

So that should be about attaching of Cinder volume when you use boot from volume. Your backend is likely to be LVM, look into LVM configuration/physical&logical volumes. Check cinder logs, /var/log/messages...

volenbovsky gravatar imagevolenbovsky ( 2016-12-16 04:27:12 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-20 06:26:02 -0600

twotwo gravatar image

The root cause was that /dev/loop1 didn't exist. I don't know why that happened...

I could restore /dev/loop1 via these commands, note the placeholders

# cd /opt/stack/data/
# dd if=/dev/zero of=s2.img bs=1024 count=11M
# losetup /dev/loop1 /opt/stack/data/s2.img
# pvcreate --uuid < entry from .vg file> /dev/loop1 --restorefile=/etc/lvm/archive/stack-volumes-lvmdriver-<version>.vg
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2016-12-14 09:44:21 -0600

Seen: 252 times

Last updated: Dec 20 '16