[Openstack] Create instance fails on creating block device - Block Device Mapping is Invalid

Turbo Fredriksson turbo at bayour.com
Thu Jun 23 16:27:22 UTC 2016


On Jun 23, 2016, at 4:30 PM, Eugen Block wrote:

> They are running because you didn't stop the services, you just disabled them.

I kind'a expected a disable to stop the service.. But what if I wanted to
stop only ONE service (of several)? For example the "nfs" backend but leave
the "lvm" online. I can't shutdown cinder-volume, that would stop all of them..

> You could stop them for now if you don't intend using cinder until you get an instance up and running, but I would take care of cinder after that. It doesn't affect you if you while trying to boot an instance on local storage because cinder is not required for that.

Well. I can create Cinder volumes without any problems it seems:

bladeA01b:~# openstack volume list
+--------------------------------------+--------------+-----------+------+-------------+
| ID                                   | Display Name | Status    | Size | Attached to |
+--------------------------------------+--------------+-----------+------+-------------+
| 0a0929e6-cf4d-40b3-9ba3-9575290993e6 | test2        | available |    5 |             |
| c16975ad-dd45-41d7-b0a9-cbd0849f80e4 | test         | available |    5 |             |
+--------------------------------------+--------------+-----------+------+-------------+
bladeA01b:~# openstack volume show test | grep host
| os-vol-host-attr:host          | bladeA01b at lvm#LVM_iSCSI
bladeA01b:~# openstack volume show test2 | grep host
| os-vol-host-attr:host          | bladeA01b at nfs#nfsbackend

> From your latest logs I assume that you are still trying to boot from volume, I recommend to ignore cinder for now and focus on launching an instance at all.

That doesn't seem to be possible. I've looked over some of the code for
Cinder, and if you don't configure "enabled_backends", then no volume
can be created. Well, they can be created, but they end up in Error state
right away!

> Have you fixed your glance issue?

I don't know. I don't know what's wrong with it :(


But I touch one thing and two other things break :( :( :(. Dang, dang, dang,
I'm getting really tired of this s**t!

----- s n i p -----
2016-06-23 17:00:21.511 18347 INFO cinder.api.openstack.wsgi [req-35b7eb35-997c-4149-a975-aba921d86182 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] HTTP exception thrown: Volume test2 could not be found.
2016-06-23 17:00:21.513 18347 INFO cinder.api.openstack.wsgi [req-35b7eb35-997c-4149-a975-aba921d86182 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] http://10.0.4.1:8776/v2/2985b96e27f048cd92a18db0dd03aa23/volumes/test2 returned with HTTP 404
2016-06-23 17:00:21.514 18347 INFO eventlet.wsgi.server [req-35b7eb35-997c-4149-a975-aba921d86182 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] 10.0.4.1 "GET /v2/2985b96e27f048cd92a18db0dd03aa23/volumes/test2 HTTP/1.1" status: 404  len: 419 time: 0.6278081
2016-06-23 17:00:21.524 18347 INFO cinder.api.openstack.wsgi [req-a37ee53f-6910-4411-8260-dd615a722318 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] GET http://10.0.4.1:8776/v2/2985b96e27f048cd92a18db0dd03aa23/volumes/detail?all_tenants=1&name=test2
2016-06-23 17:00:21.600 18347 INFO cinder.volume.api [req-a37ee53f-6910-4411-8260-dd615a722318 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] Get all volumes completed successfully.
2016-06-23 17:00:21.609 18347 INFO cinder.api.openstack.wsgi [req-a37ee53f-6910-4411-8260-dd615a722318 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] http://10.0.4.1:8776/v2/2985b96e27f048cd92a18db0dd03aa23/volumes/detail?all_tenants=1&name=test2 returned with HTTP 200
2016-06-23 17:00:21.611 18347 INFO eventlet.wsgi.server [req-a37ee53f-6910-4411-8260-dd615a722318 0b7e5b0653084efdad5d67b66f2cf949 2985b96e27f048cd92a18db0dd03aa23 - - -] 10.0.4.1 "GET /v2/2985b96e27f048cd92a18db0dd03aa23/volumes/detail?all_tenants=1&name=test2 HTTP/1.1" status: 200  len: 1607 time: 0.0912130
----- s n i p -----

And yet it's right there! See top of email.
--
Att inse sin egen betydelse är som att få ett kvalster att
fatta att han bara syns i mikroskop
- Arne Anka





More information about the Openstack mailing list