'Remove the specified volume from Cinder management.'

def unmanage(self, volume):

    ldev = self.get_ldev(volume)
    if (ldev is None):
        return
    self.add_volinfo(ldev, volume['id'])
    if (not self.volume_info[ldev]['in_use'].lock.acquire(False)):
        desc = self.volume_info[ldev]['in_use'].desc
        basic_lib.output_err(660, desc=desc)
        raise exception.HBSDVolumeIsBusy(volume_name=volume['name'])
    is_vvol = self.get_volume_is_vvol(volume)
    if is_vvol:
        basic_lib.output_err(706, volume_id=volume['id'], volume_type=basic_lib.NORMAL_VOLUME_TYPE)
        raise exception.HBSDVolumeIsBusy(volume_name=volume['name'])
    try:
        self._unmanage(volume, ldev)
    except exception.HBSDBusy:
        raise exception.HBSDVolumeIsBusy(volume_name=volume['name'])
    else:
        LOG.info(basic_lib.set_msg(5, volume_id=volume['id'], ldev=ldev))
    finally:
        if (ldev in self.volume_info):
            self.volume_info[ldev]['in_use'].lock.release()
