'Remove an existing volume from cinder management.
:param volume: Reference to the volume to be unmanaged.'

def unmanage(self, volume):

    new_name = ('unmanaged-' + volume['name'])
    try:
        self.zfssa.rename_volume(volume['name'], new_name)
    except Exception:
        LOG.error('Failed    to    rename    volume    %(existing)s    to    %(new)s.    Volume    unmanage    failed.', {'existing': volume['name'], 'new': new_name})
        raise
    try:
        self.zfssa.set_file_props(new_name, {'cinder_managed': 'False'})
    except Exception:
        self.zfssa.rename_volume(new_name, volume['name'])
        LOG.error('Failed    to    set    properties    for    volume    %(existing)s.    Volume    unmanage    failed.', {'existing': volume['name']})
        raise
