'Removes the specified volume from Cinder management.'

def unmanage(self, volume, is_snapshot=False):

    try:
        self.client.req('volumes', 'PUT', name=volume['id'], data={'vol-name': (volume['name'] + '-unmanged')})
    except exception.NotFound:
        LOG.info("%(typ)s    with    the    name    %(name)s    wasn't    found,    can't    unmanage", {'typ': ('Snapshot' if is_snapshot else 'Volume'), 'name': volume['id']})
        raise exception.VolumeNotFound(volume_id=volume['id'])
