I had also some trouble getting volume backed instances to boot. I use
xen hypervisor and found out that the instance was assigned a device
name of "vda" (which is set by default) instead of xvda, I filed a bug
report for this. Have you nova-compute.logs? I can't find them in your
link. They should give a hint about the device name or other possible
causes. Since the volume is created but immediately destroyed, I guess
nova has a problem with the block device.
Regards,
Eugen
Zitat von Turbo Fredriksson <tu...@bayour.com>:
I'm trying my newly installed Openstack system and I'm getting
problem in starting my first instance.
----- s n i p -----
Build of instance 5193c2d9-0aaf-4f84-b108-f6884d97b571 aborted:
Block Device Mapping is Invalid.
File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py",
line 1926, in _do_build_and_run_instance filter_properties) File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
2083, in _build_and_run_instance 'create.error', fault=e) File
"/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220,
in __exit__ self.force_reraise() File
"/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196,
in force_reraise six.reraise(self.type_, self.value, self.tb) File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
2048, 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
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
2206, in _build_resources reason=e.format_message())
----- s n i p -----
Cleaning up all the logs for irrelevant stuff, I see:
----- s n i p -----
INFO cinder.api.v2.volumes Create volume of 5 GB
INFO cinder.volume.api Volume created successfully.
INFO cinder.volume.flows.manager.create_volume Volume
6b1dace4-78e1-452b-a455-c0fc882374f3: being created as image with
specification: {'status': u'creating', 'image_location': (None,
None), 'volume_size': 5, 'volume_name':
'volume-6b1dace4-78e1-452b-a455-c0fc882374f3', 'image_id':
u'8c15b5e8-9a67-4784-ad7a-0b1cc7b0bdec', 'image_service':
<cinder.image.glance.GlanceImageService object at 0x7fa4f31d8ad0>,
'image_meta': {'status': u'active', 'name': u'fedora23', 'deleted':
False, 'container_format': u'docker', 'created_at':
datetime.datetime(2016, 6, 15, 20, 38, 43, tzinfo=<iso8601.Utc>),
'disk_format': u'qcow2', 'updated_at': datetime.datetime(2016, 6,
15, 20, 38, 45, tzinfo=<iso8601.Utc>), 'id':
u'8c15b5e8-9a67-4784-ad7a-0b1cc7b0bdec', 'owner':
u'd524c8dfd9e9449798ebac9b025f8de6', 'min_ram': 0, 'checksum':
u'38d62e2e1909c89f72ba4d5f5c0005d5', 'min_disk': 0, 'is_public':
True, 'deleted_at': None, 'properties': {u'hypervisor_type':
u'docker', u'architecture': u'x86_64'}, 'size': 23436
3392}}
INFO cinder.image.image_utils Image download 223.00 MB at 35.35 MB/s
WARN manila.context [-] Arguments dropped when creating context:
{u'read_only': False, u'domain': None, u'show_deleted': False,
u'user_identity': u'- - - - -', u'project_domain': None,
u'resource_uuid': None, u'user_domain': None}.
WARN manila.context [-] Arguments dropped when creating context:
{u'read_only': False, u'domain': None, u'show_deleted': False,
u'user_identity': u'- - - - -', u'project_domain': None,
u'resource_uuid': None, u'user_domain': None}.
INFO cinder.image.image_utils Converted 3072.00 MB image at 31.59 MB/s
INFO cinder.volume.flows.manager.create_volume Volume
volume-6b1dace4-78e1-452b-a455-c0fc882374f3
(6b1dace4-78e1-452b-a455-c0fc882374f3): created successfully
INFO cinder.volume.manager Created volume successfully.
INFO cinder.api.v2.volumes Delete volume with id:
6b1dace4-78e1-452b-a455-c0fc882374f3
INFO cinder.volume.api Delete volume request issued successfully.
INFO eventlet.wsgi.server 10.0.4.5 "DELETE
/v2/d524c8dfd9e9449798ebac9b025f8de6/volumes/6b1dace4-78e1-452b-a455-c0fc882374f3 HTTP/1.1" status: 202 len: 211 time:
0.1300900
INFO cinder.volume.targets.iscsi Skipping remove_export. No
iscsi_target is presently exported for volume:
6b1dace4-78e1-452b-a455-c0fc882374f3
INFO cinder.volume.utils Performing secure delete on volume:
/dev/mapper/blade_center-volume--6b1dace4--78e1--452b--a455--c0fc882374f3
----- s n i p -----
Full log at http://bayour.com/misc/openstack_instance_create-log.txt.
The web GUI say (this might be from another test, but I always
get the same):
----- s n i p -----
Error: Failed to perform requested operation on instance
"jessie-test", the instance has an error status: Please try again
later [Error: Build of instance a4e1deaa-cdf0-4fc7-8c54-579868c962c3
aborted: Block Device Mapping is Invalid.].
----- s n i p -----
I can see nothing relevant in this that would make it fail!
The only thing that bought my eye was that it isn't removing
the iSCSI target, because there isn't one..
This is (most of) my cinder.conf file:
----- s n i p -----
[DEFAULT]
my_ip = 10.0.4.1
storage_availability_zone = nova
default_availability_zone = nova
enabled_backends = lvm
iscsi_target_prefix = iqn.2010-10.org.openstack:
iscsi_ip_address = $my_ip
iscsi_port = 3260
iscsi_iotype = blockio
iscsi_write_cache = on
volume_group = blade_center
scheduler_driver = cinder.scheduler.filter_scheduler.FilterScheduler
[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = blade_center
iscsi_protocol = iscsi
iscsi_helper = tgtadm
----- s n i p -----
PS. Creating the instance from an already existing, empty
volume, didn't work either. Same message, and even less
information in the log.
--
As soon as you find a product that you really like,
they will stop making it.
- Wilson's Law
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
--
Eugen Block voice : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG fax : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg e-mail : ebl...@nde.ag
Vorsitzende des Aufsichtsrates: Angelika Mozdzen
Sitz und Registergericht: Hamburg, HRB 90934
Vorstand: Jens-U. Mozdzen
USt-IdNr. DE 814 013 983
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack