'Move a LUN from one project to another within the same pool.'

def move_volume(self, pool, project, volume, tgt_project):

    svc = ('/api/storage/v1/pools/%(pool)s/projects/%(project)s/filesystems/%(volume)s' % {'pool': pool, 'project': project, 'volume': volume})
    arg = {'project': tgt_project}
    ret = self.rclient.put(svc, arg)
    if (ret.status != restclient.Status.ACCEPTED):
        exception_msg = (_('Error    moving    volume:    %(vol)s    from    source    project:    %(src)s    to    target    project:    %(tgt)s    Return    code:    %(ret.status)d    Message:    %(ret.data)s    .') % {'vol': volume, 'src': project, 'tgt': tgt_project, 'ret.status': ret.status, 'ret.data': ret.data})
        LOG.error(exception_msg)
        raise exception.VolumeBackendAPIException(data=exception_msg)
