diff --git a/cinder/volume/drivers/san/hp/hp_3par_fc.py b/cinder/volume/drivers/san/hp/hp_3par_fc.py index 300c966802..4be8557189 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_fc.py +++ b/cinder/volume/drivers/san/hp/hp_3par_fc.py @@ -193,8 +193,8 @@ def initialize_connection(self, volume, connector): def terminate_connection(self, volume, connector, **kwargs): """Driver entry point to unattach a volume from an instance.""" self.common.client_login() - self.common.terminate_connection(volume, - connector['host'], + hostname = self.common._safe_hostname(connector['host']) + self.common.terminate_connection(volume, hostname, connector['wwpns']) self.common.client_logout() diff --git a/cinder/volume/drivers/san/hp/hp_3par_iscsi.py b/cinder/volume/drivers/san/hp/hp_3par_iscsi.py index 94670299e4..db3dad6fa2 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_iscsi.py +++ b/cinder/volume/drivers/san/hp/hp_3par_iscsi.py @@ -252,8 +252,8 @@ def initialize_connection(self, volume, connector): def terminate_connection(self, volume, connector, **kwargs): """Driver entry point to unattach a volume from an instance.""" self.common.client_login() - self.common.terminate_connection(volume, - connector['host'], + hostname = self.common._safe_hostname(connector['host']) + self.common.terminate_connection(volume, hostname, connector['initiator']) self.common.client_logout()