'Driver entry point to unattach a volume from an instance.'

@utils.trace
def terminate_connection(self, volume, connector, **kwargs):

    common = self._login()
    try:
        hostname = common._safe_hostname(connector['host'])
        common.terminate_connection(volume, hostname, iqn=connector['initiator'])
        self._clear_chap_3par(common, volume)
    finally:
        self._logout(common)
