Ask Your Question
1

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

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

twotwo gravatar image

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

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:

Message
Build of instance 61753ef9-ae4d-405f-976a-0b6a910a5205 aborted: Block Device Mapping is Invalid.
Code
500
Details
File "/opt/stack/nova/nova/compute/manager.py", line 1779, in _do_build_and_run_instance filter_properties) File "/opt/stack/nova/nova/compute/manager.py", line 1955, in _build_and_run_instance phase=fields.NotificationPhase.ERROR, exception=e) File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/opt/stack/nova/nova/compute/manager.py", line 1908, in _build_and_run_instance block_device_mapping) as resources: File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/opt/stack/nova/nova/compute/manager.py", line 2105, in _build_resources reason=e.format_message())
Created
Dec. 14, 2016, 3:39 p.m.
edit retag flag offensive close merge delete

Comments

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

chiragtayal gravatar imagechiragtayal ( 2016-12-15 15:00:53 -0500 )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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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 <pv0.id 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

Stats

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

Seen: 276 times

Last updated: Dec 20 '16