Cannot create instance from another image file
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 [[01;36mreq-dd8298ae-33d2-4177-b232-84be2d4832b7 [00;36madmin admin] [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] Build of instance 35f105b4-e4cb-4ef4-8a64-a7267c37f446 aborted: Block Device Mapping is Invalid.[00m
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00mTraceback (most recent call last):
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m 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 [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m filter_properties)
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m 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 [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m phase=fields.NotificationPhase.ERROR, exception=e)
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m 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 [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m self.force_reraise()
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m 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 [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m six.reraise(self.type_, self.value, self.tb)
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m 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 [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m block_device_mapping) as resources:
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
2017-01-27 20:32:42.909 TRACE nova.compute.manager [01;35m[instance: 35f105b4-e4cb-4ef4-8a64-a7267c37f446] [00m return self.gen.next()
2017-01-27 20:32:42.909 ...
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.