Ask Your Question
1

Cannot attach volume to instances

asked 2012-08-20 07:47:37 -0500

gala-1989 gravatar image

updated 2014-09-15 10:17:50 -0500

mpetason gravatar image

When I attache a volume to a instance, the log of nova-compute output that:

2012-08-20 15:00:58 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_context_request_id': u'req-93276a9b-b6eb-40c2-b2ba-25895c134c7d', u'_context_read_deleted': u'no', u'args': {u'instance_uuid': u'bda89a99-f804-4328-9a4b-bfd2a20b9da0', u'mountpoint': u'/dev/vdc', u'volume_id': u'7'}, u'_context_auth_token': '<SANITIZED>', u'_context_is_admin': True, u'_context_project_id': u'1e2db3adadea44fe97e04724798f067e', u'_context_timestamp': u'2012-08-20T08:00:58.690349', u'_context_user_id': u'fa643eb3b0f14edb901ab6143b925d09', u'method': u'attach_volume', u'_context_remote_address': u'10.30.22.110'} from (pid=12572) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
2012-08-20 15:00:58 DEBUG nova.rpc.amqp [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] unpacked context: {'user_id': u'fa643eb3b0f14edb901ab6143b925d09', 'roles': [u'admin'], 'timestamp': '2012-08-20T08:00:58.690349', 'auth_token': '<SANITIZED>', 'remote_address': u'10.30.22.110', 'is_admin': True, 'request_id': u'req-93276a9b-b6eb-40c2-b2ba-25895c134c7d', 'project_id': u'1e2db3adadea44fe97e04724798f067e', 'read_deleted': u'no'} from (pid=12572) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
2012-08-20 15:00:58 INFO nova.compute.manager [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] check_instance_lock: decorating: |<function attach_volume at 0x231dde8>|
2012-08-20 15:00:58 INFO nova.compute.manager [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] check_instance_lock: arguments: |<nova.compute.manager.ComputeManager object at 0x7f6f9f4e8b90>| |<nova.rpc.amqp.RpcContext object at 0x3e26210>| |bda89a99-f804-4328-9a4b-bfd2a20b9da0|
2012-08-20 15:00:58 DEBUG nova.compute.manager [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] instance bda89a99-f804-4328-9a4b-bfd2a20b9da0: getting locked state from (pid=12572) get_lock /usr/lib/python2.7/dist-packages/nova/compute/manager.py:1603
2012-08-20 15:00:58 INFO nova.compute.manager [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] check_instance_lock: locked: |False|
2012-08-20 15:00:58 INFO nova.compute.manager [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] check_instance_lock: admin: |True|
2012-08-20 15:00:58 INFO nova.compute.manager [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] check_instance_lock: executing: |<function attach_volume at 0x231dde8>|
2012-08-20 15:00:58 AUDIT nova.compute.manager [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] [instance: bda89a99-f804-4328-9a4b-bfd2a20b9da0] Attaching volume 7 to /dev/vdc
2012-08-20 15:00:58 DEBUG nova.rpc.amqp [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] Making asynchronous call on volume.WT-Openstack-22 ... from (pid=12572) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:326
2012-08-20 15:00:58 DEBUG nova.rpc.amqp [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] MSG_ID is 6c8cdaebd5b345508c11839775ab7b37 from (pid=12572) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:329
2012-08-20 15:00:59 DEBUG nova.utils [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] Attempting to grab semaphore "connect_volume" for method "connect_volume"... from (pid=12572) inner /usr/lib/python2.7/dist-packages/nova/utils.py:927
2012-08-20 15:00:59 DEBUG nova.utils [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] Got semaphore "connect_volume" for method "connect_volume"... from (pid=12572) inner /usr/lib/python2.7/dist-packages/nova/utils.py:931
2012-08-20 15:00:59 DEBUG nova.utils [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] Running cmd (subprocess): sudo nova-rootwrap iscsiadm -m node -T iqn.2010-10.org.openstack:volume-00000007 -p 10.30.22.110:3260 from (pid=12572) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
2012-08-20 15:00:59 DEBUG nova.virt.libvirt.volume [req-93276a9b-b6eb-40c2-b2ba-25895c134c7d fa643eb3b0f14edb901ab6143b925d09 1e2db3adadea44fe97e04724798f067e] iscsiadm (): stdout=# BEGIN RECORD 2.0-871
node.name = iqn.2010-10.org.openstack:volume-00000007
node.tpgt = -1
node.startup = automatic
iface.hwaddress = <empty>
iface.ipaddress = <empty>
iface.iscsi_ifacename = default
iface.net_ifacename = <empty>
iface.transport_name = tcp ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2012-08-23 10:04:17 -0500

gala-1989 gravatar image

I found the error of my problem. Because I followed different instruction, so I installed 2 packet: tgt and iscsitarget. Both of them are packets which used to manage the connections between the iSCSI storage subsystems in your storage area network. We must choose just one of them. It's will catch error if we install both.

ps: I have read a lot of article about this problem: if you install the volume node in another host from compute node, you must have this options in nova.conf: iscsi_ip_address={compute host IP}. If not, it catch this problem too

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

1 follower

Stats

Asked: 2012-08-20 07:47:37 -0500

Seen: 158 times

Last updated: Sep 15 '14