Could not attach volume to instance[solved]
I can smoothly create | delete volume,But I can not attach them to the exist instance
[root@controller-128 ~]# cinder create --display-name TEST_VOLUME_05 1
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-11-11T16:18:24.095813 |
| display_description | None |
| display_name | TEST_VOLUME_05 |
| encrypted | False |
| id | e0e5882e-4ddb-4b3e-929d-3d4dd6973f50 |
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+
[root@controller-128 ~]# cinder list
+--------------------------------------+-----------+-----------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+-----------------+------+-------------+----------+-------------+ |
| e0e5882e-4ddb-4b3e-929d-3d4dd6973f50 | available | TEST_VOLUME_05 | 1 | None | false | |
[root@controller-128 ~]# nova list
+--------------------------------------+------------+--------+------------+-------------+---------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------------+--------+------------+-------------+---------------------------------------------+
| 247d95f0-86cb-4295-9d0c-87871083751e | vlanTest01 | ACTIVE | - | Running | WAN_NET=42.xx.xx.180
[root@controller-128 ~]# nova volume-attach 247d95f0-86cb-4295-9d0c-87871083751e e0e5882e-4ddb-4b3e-929d-3d4dd6973f50 auto
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb |
| id | e0e5882e-4ddb-4b3e-929d-3d4dd6973f50 |
| serverId | 247d95f0-86cb-4295-9d0c-87871083751e |
| volumeId | e0e5882e-4ddb-4b3e-929d-3d4dd6973f50 |
+----------+--------------------------------------+
but It does not really attached to the instance
[root@controller-128 ~]# cinder show e0e5882e-4ddb-4b3e-929d-3d4dd6973f50
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-11-11T16:18:24.000000 |
| display_description | None |
| display_name | TEST_VOLUME_05 |
| encrypted | False |
| id | e0e5882e-4ddb-4b3e-929d-3d4dd6973f50 |
| metadata | {} |
| os-vol-host-attr:host | KG-TEST-10_1_2_131 |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | a174481a86f04181b0283a558c80b24e |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| volume_type | None |
+--------------------------------+--------------------------------------+
The log shows up:
2014-11-12 00:19:54.821 25365 WARNING cinder.context [-] Arguments dropped when creating context: {'user': u'e0ba83d0903f4a368bd9869898e41256', 'tenant': u'a174481a86f04181b02}
2014-11-12 00:19:55.215 25365 ERROR cinder.brick.iscsi.iscsi [req-e6dadbe4-b9b4-4d44-babc-0916a45bdf2f e0ba83d0903f4a368bd9869898e41256 a174481a86f04181b0283a558c80b24e - - -].
2014-11-12 00:19:55.216 25365 ERROR oslo.messaging.rpc.dispatcher [req-e6dadbe4-b9b4-4d44-babc-0916a45bdf2f e0ba83d0903f4a368bd9869898e41256 a174481a86f04181b0283a558c80b24e -.
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 790, in initialize_connection
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher volume)
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 525, in create_export
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher return self._create_export(context, volume)
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 534, in _create_export
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher data = self.target_helper.create_export(context, volume, volume_path)
2014-11-12 00:19:55.216 25365 TRACE oslo.messaging.rpc.dispatcher File "/usr ...