Ask Your Question
2

Build of instance aborted: Block Device Mapping is Invalid.

asked 2016-04-18 14:03:48 -0500

cdavis gravatar image

updated 2016-08-18 14:07:59 -0500

rbowen gravatar image

This is the liberty version of an RDO allinone install of Openstack.

I added a cinder volume and compute node on a second server and add it in using the the add a node instructions on RDO website. I can make volumes on the new iscsi LVM storage but cant connect it to instances.

Message
    Build of instance 7fb7ebc8-3f0c-46f7-b958-ecc51023386a aborted: Block Device Mapping is Invalid.
Code
    500
Details


File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1905, in _do_build_and_run_instance filter_properties) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2025, in _build_and_run_instance 'create.error', fault=e) File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1996, 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 "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2143, in _build_resources reason=e.format_message())

in the cinder/volume.logs in see:

2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher [req-b4927e11-9a2a-4e7c-b3da-bdb237e57cdd 840095061f9943be8f154eacbc3a784d f4446d45c1bf41c2b5869873f711809c - - -] Exception during message handling: Unexpected error while running command.
Command: None
Exit code: -
Stdout: u"Unexpected error while running command.\nCommand: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target\nExit code: 96\nStdout: u''\nStderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\\n'"
Stderr: None
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher     executor_callback))
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher     executor_callback)
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 1318, in initialize_connection
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher     volume, connector)
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)
2016-04-18 14:37:21.790 6535 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-18 17:23:47 -0500

You have a configuration in cinder.conf on the storage node using tgtadm. Since you are using lvm for the backend, check this answer for lvm configuration and be sure to comment any other iscsi_helper or iser_helper in the config file.

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-04-18 14:03:48 -0500

Seen: 9,245 times

Last updated: Aug 18 '16