'Removes the specified volume from Cinder management.'

@cinder_utils.trace
def unmanage(self, volume):

    self._check_api_version()
    client = self._login()
    try:
        volume_info = client.getVolumeByName(volume['name'])
        new_vol_name = ('unm-' + six.text_type(volume['id']))
        options = {'name': new_vol_name}
        client.modifyVolume(volume_info['id'], options)
    finally:
        self._logout(client)
    LOG.info("Virtual    volume    %(disp)s    '%(vol)s'    is    no    longer    managed.    Volume    renamed    to    '%(new)s'.", {'disp': volume['display_name'], 'vol': volume['name'], 'new': new_vol_name})
