Attach a volume to instance fails with following exception :
014-10-10 19:29:54.112 [00;32mDEBUG cinder.volume.drivers.vmware.vmdk [[01;36mreq-90f52202-4720-41ca-aa01-cc1bd2e1a4be [00;36m304c157ff8fe4136a279d5f157e63cfc eb53ada20d274ed8832cf46afb21636b[00;32m] [01;35m[00;32mThe instance: (Property){
value = "vm-2360"
_type = "VirtualMachine"
} for which initialize connection is called, exists.[00m [00;33mfrom (pid=10484) _initialize_connection /opt/stack/cinder/cinder/volume/drivers/vmware/vmdk.py:656[00m
2014-10-10 19:29:55.114 [00;32mDEBUG cinder.volume.drivers.vmware.vmdk [[01;36mreq-90f52202-4720-41ca-aa01-cc1bd2e1a4be [00;36m304c157ff8fe4136a279d5f157e63cfc eb53ada20d274ed8832cf46afb21636b[00;32m] [01;35m[00;32mBacking exists[00m [00;33mfrom (pid=10484) _initialize_connection /opt/stack/cinder/cinder/volume/drivers/vmware/vmdk.py:666[00m
2014-10-10 19:29:57.068 [00;32mDEBUG cinder.volume.drivers.vmware.vmdk [[01;36mreq-90f52202-4720-41ca-aa01-cc1bd2e1a4be [00;36m304c157ff8fe4136a279d5f157e63cfc eb53ada20d274ed8832cf46afb21636b[00;32m] [01;35m[00;32mDatastore: (ManagedObjectReference){
value = "datastore-34"
_type = "Datastore"
}, profile: None[00m [00;33mfrom (pid=10484) _relocate_backing /opt/stack/cinder/cinder/volume/drivers/vmware/vmdk.py:1934[00m
2014-10-10 19:29:59.015 [01;31mERROR cinder.volume.manager [[01;36mreq-90f52202-4720-41ca-aa01-cc1bd2e1a4be [00;36m304c157ff8fe4136a279d5f157e63cfc eb53ada20d274ed8832cf46afb21636b[01;31m] [01;35m[01;31mUnable to fetch connection information from backend: 'Text' object has no attribute 'value'[00m
2014-10-10 19:29:59.017 [01;31mERROR oslo.messaging.rpc.dispatcher [[01;36mreq-90f52202-4720-41ca-aa01-cc1bd2e1a4be [00;36m304c157ff8fe4136a279d5f157e63cfc eb53ada20d274ed8832cf46afb21636b[01;31m] [01;35m[01;31mException during message handling: Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: 'Text' object has no attribute 'value'[00m
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00mTraceback (most recent call last):
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m incoming.message))
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return self._do_dispatch(endpoint, method, ctxt, args)
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m result = getattr(endpoint, method)(ctxt, **new_args)
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m return f(*args, **kwargs)
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m File "/opt/stack/cinder/cinder/volume/manager.py", line 901, in initialize_connection
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m raise exception.VolumeBackendAPIException(data=err_msg)
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00mVolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: 'Text' object has no attribute 'value'
[01;31m2014-10-10 19:29:59.017 TRACE oslo.messaging.rpc.dispatcher [01;35m[00m
2014-10-10 19:29:59.021 [01;31mERROR oslo.messaging._drivers.common [[01;36mreq-90f52202-4720-41ca-aa01-cc1bd2e1a4be [00;36m304c157ff8fe4136a279d5f157e63cfc eb53ada20d274ed8832cf46afb21636b[01;31m] [01;35m[01;31mReturning exception Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: 'Text' object has no attribute 'value' to caller[00m
2014-10-10 19:29:59.022 [01;31mERROR oslo.messaging._drivers.common [[01;36mreq-90f52202-4720-41ca-aa01-cc1bd2e1a4be [00;36m304c157ff8fe4136a279d5f157e63cfc eb53ada20d274ed8832cf46afb21636b[01;31m] [01;35m[01;31m['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper\n return f(*args, **kwargs)\n', ' File "/opt/stack/cinder/cinder/volume/manager.py", line 901, in initialize_connection\n raise exception.VolumeBackendAPIException(data=err_msg)\n', "VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: 'Text' object has no attribute 'value'\n"][00m
2014-10-10 19:30:02.547 [00;32mDEBUG cinder.openstack.common.periodic_task [[00;36m-[00;32m] [01;35m[00;32mRunning periodic task VolumeManager._publish_service_capabilities[00m [00;33mfrom (pid=10484) run_periodic_tasks /opt/stack/cinder/cinder/openstack/common/periodic_task.py:193[00m
2014-10-10 19:30:02.547 [00;32mDEBUG cinder.manager [[00;36m-[00;32m] [01;35m[00;32mNotifying Schedulers of capabilities ...[00m [00;33mfrom (pid=10484) _publish_service_capabilities /opt/stack/cinder/cinder/manager.py:128[00m
2014-10-10 19:30:02.552 [00;32mDEBUG cinder.openstack.common.periodic_task [[00;36m-[00;32m] [01;35m[00;32mRunning periodic task VolumeManager._report_driver_status[00m [00;33mfrom (pid=10484) run_periodic_tasks /opt/stack/cinder/cinder/openstack/common/periodic_task.py:193[00m
2014-10-10 19:30:02.553 [00;36mINFO cinder.volume.manager [[00;36m-[00;36m] [01;35m[00;36mUpdating volume status[00m
Issue is happens only on reattachment same volume.
steps :
1) create nova instance
2) create cinder volume
3) attach volume to instance
4) detach volume from instance
5) re-attach volume to instance
exception observed