def disconnect(path): """ :type path: Path """ connector.disconnect_volume(path.connection, path.device_info) path.connected = False LOG.debug("Virtman: disconnect to path: %s", str(path))
def _destroy_snap_dev(self): LOG.debug("Virtman: deleting the snapshot for the VM instance") if self.snapshot_with_cache: self._delete_cache(self.snapshot_dev) connector.disconnect_volume(self.snapshot_connection, self.device_info) LOG.debug("Virtman: succeed to delete snapshot!") return True
def disconnect(self): connector.disconnect_volume(self.connection, self.device_info) self.connected = False LOG.debug("Virtman: disconnect to path: %s", str(self))