Analysis :- terminate_connection calls with an empty connector dictionary and failed with below mentioned error
Log :-
---------------------------------------
Dec 13 01:07:18.228501 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager [None req-68489563-a6c8-4507-82b0-df098b6af495 tempest-AttachVolumeShelveTestJSON-1044675265 None] Terminate volume connection failed: 'host': KeyError: 'host'
Dec 13 01:07:18.228869 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager Traceback (most recent call last):
Dec 13 01:07:18.229392 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager File "/opt/stack/new/cinder/cinder/volume/manager.py", line 4432, in _connection_terminate
Dec 13 01:07:18.229723 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager force=force)
Dec 13 01:07:18.230094 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager File "/opt/stack/new/cinder/cinder/utils.py", line 883, in trace_logging_wrapper
Dec 13 01:07:18.230393 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager result = f(*args, **kwargs)
Dec 13 01:07:18.230581 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager File "/opt/stack/new/cinder/cinder/zonemanager/utils.py", line 104, in decorator
Dec 13 01:07:18.230761 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager conn_info = terminate_connection(self, *args, **kwargs)
Dec 13 01:07:18.230939 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager File "/opt/stack/new/cinder/cinder/volume/drivers/hpe/hpe_3par_fc.py", line 212, in terminate_connection
Dec 13 01:07:18.231202 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager hostname = common._safe_hostname(connector['host'])
Dec 13 01:07:18.231501 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager KeyError: 'host'
Dec 13 01:07:18.231813 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR cinder.volume.manager
Dec 13 01:07:18.332173 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server [None req-68489563-a6c8-4507-82b0-df098b6af495 tempest-AttachVolumeShelveTestJSON-1044675265 None] Exception during message handling: VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Terminate volume connection failed: 'host'
Dec 13 01:07:18.332686 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server Traceback (most recent call last):
Dec 13 01:07:18.333009 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming
Dec 13 01:07:18.333325 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
Dec 13 01:07:18.333642 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 220, in dispatch
Dec 13 01:07:18.334018 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
Dec 13 01:07:18.334212 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 190, in _do_dispatch
Dec 13 01:07:18.334398 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
Dec 13 01:07:18.334618 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server File "/opt/stack/new/cinder/cinder/volume/manager.py", line 4468, in attachment_delete
Dec 13 01:07:18.334832 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server self._do_attachment_delete(context, vref, attachment_ref)
Dec 13 01:07:18.335020 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server File "/opt/stack/new/cinder/cinder/volume/manager.py", line 4475, in _do_attachment_delete
Dec 13 01:07:18.335216 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server attachment)
Dec 13 01:07:18.335396 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server File "/opt/stack/new/cinder/cinder/volume/manager.py", line 4440, in _connection_terminate
Dec 13 01:07:18.335582 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server raise exception.VolumeBackendAPIException(data=err_msg)
Dec 13 01:07:18.335810 d-p-c-fc-p227fc-879394 cinder-volume[5580]: ERROR oslo_messaging.rpc.server VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Terminate volume connection failed: 'host'
Fix proposed to branch: master /review. openstack. org/528028
Review: https:/