Cannot create instance from another image file

asked 2017-01-27 13:40:04 -0500

Oleksandr_M gravatar image

updated 2017-02-02 09:17:30 -0500

rbowen gravatar image

I installed openstack with devstack on Ubuntu 16.04 Server LTS. From here docs.openstack.org .

When i want to create standart instance from cirros image that works, but when i try to create instance from any different image like Ubuntu cloud 14.04 or Ubuntu Desktop 16.04 i get the following error:

Build of instance 35f105b4-e4cb-4ef4-8a64-a7267c37f446 aborted: Block Device Mapping is Invalid.

Details:

File "/opt/stack/nova/nova/compute/manager.py", line 1774, 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/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/usr/local/lib/python2.7/dist-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/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/opt/stack/nova/nova/compute/manager.py", line 2106, in _build_resources reason=e.format_message())

Log file:

2017-01-27 20:32:42.909 ERROR nova.compute.manager [req-dd8298ae-33d2-4177-b232-84be2d4832b7 admin admin] [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] Build of instance 35f105b4-e4cb-4ef4-8a64-a7267c37f446 aborted: Block Device Mapping is Invalid.
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] Traceback (most recent call last):
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]   File "/opt/stack/nova/nova/compute/manager.py", line 1774, in _do_build_and_run_instance
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]     filter_properties)
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]   File "/opt/stack/nova/nova/compute/manager.py", line 1955, in _build_and_run_instance
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]     phase=fields.NotificationPhase.ERROR, exception=e)
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]     self.force_reraise()
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]     six.reraise(self.type_, self.value, self.tb)
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]   File "/opt/stack/nova/nova/compute/manager.py", line 1908, in _build_and_run_instance
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]     block_device_mapping) as resources:
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
2017-01-27 20:32:42.909 TRACE nova.compute.manager [instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446]     return self.gen.next()
2017-01-27 20:32:42.909 ...
(more)
edit retag flag offensive close merge delete

Comments

1

Are you booting from volume? If you use the GUI to launch the instance, clear the checkbox that selects volume boot.

Cloud images need several GBs for the root disk. Perhaps you have no space in the tiny volume group that devstack creates for Cinder. Check for errors in the Cinder logs.

Bernd Bausch gravatar imageBernd Bausch ( 2017-01-28 17:18:41 -0500 )edit