Ask Your Question
0

unable to attach volume to instance

asked 2015-04-02 04:36:09 -0500

Udayendu Kar gravatar image

Fail to attach a volume to an instance with the below error in cinder/volume.log:

==--== 2015-04-02 04:25:06.632 1912 INFO cinder.brick.iscsi.iscsi [req-4c820b3c-22f9-4ccc-a55a-c5667e13add9 d79bc23a6d4a4fe1bebe157a528096ba 23bd19f140ef4c99aa2f88d5da70b7c3 - - -] Creating iscsi_target for volume: volume-386d1ee9-2593-4885-a5b7-0483d98bae8e 2015-04-02 04:25:08.337 1912 ERROR cinder.brick.iscsi.iscsi [req-4c820b3c-22f9-4ccc-a55a-c5667e13add9 d79bc23a6d4a4fe1bebe157a528096ba 23bd19f140ef4c99aa2f88d5da70b7c3 - - -] Failed to create iscsi target for volume id:volume-386d1ee9-2593-4885-a5b7-0483d98bae8e. 2015-04-02 04:25:08.338 1912 ERROR oslo.messaging.rpc.dispatcher [req-4c820b3c-22f9-4ccc-a55a-c5667e13add9 d79bc23a6d4a4fe1bebe157a528096ba 23bd19f140ef4c99aa2f88d5da70b7c3 - - -] Exception during message handling: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead. 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher incoming.message)) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, *new_args) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher return f(args, *kwargs) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 875, in initialize_connection 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher volume) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher return f(args, *kwargs) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 548, in create_export 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher return self._create_export(context, volume) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 560, in _create_export 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher self.configuration) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/volume/iscsi.py", line 61, in create_export 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher conf.iscsi_write_cache) 2015-04-02 04:25:08.338 1912 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/cinder/brick/iscsi/iscsi.py", line 544, in create_iscsi_target 2015-04-02 04:25:08 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-02 10:08:42 -0500

updated 2015-04-02 10:08:51 -0500

Can you provide the output from attempting to attach the volume using the CLI and debug output

cinder show $volumeid
nova --debug volume-attach $serverid  $volumeid /dev/vdc
nova show $serverid
cinder show $volumeid
edit flag offensive delete link more

Comments

Hi,

Thanks for the reply but it seems like a bug. Please take a look into:

https://bugzilla.redhat.com/show_bug.cgi?id=1207701 (https://bugzilla.redhat.com/show_bug....)

Udayendu Kar gravatar imageUdayendu Kar ( 2015-04-03 01:00:15 -0500 )edit

http://fpaste.org/206867/

Check all the require command's out put here.

Udayendu Kar gravatar imageUdayendu Kar ( 2015-04-03 04:52:37 -0500 )edit

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

1 follower

Stats

Asked: 2015-04-02 04:36:09 -0500

Seen: 640 times

Last updated: Apr 02 '15