'Prepare the volume for removing it from Cinder management.'

def unmanage(self, volume):

    ldev = utils.get_ldev(volume)
    if (ldev is None):
        utils.output_log(MSG.INVALID_LDEV_FOR_DELETION, method='unmanage', id=volume['id'])
        return
    if self.check_vvol(ldev):
        utils.output_log(MSG.INVALID_LDEV_TYPE_FOR_UNMANAGE, volume_id=volume['id'], volume_type=utils.NORMAL_LDEV_TYPE)
        raise exception.VolumeIsBusy(volume_name=volume['name'])
    try:
        self.delete_pair(ldev)
    except exception.VSPBusy:
        raise exception.VolumeIsBusy(volume_name=volume['name'])
