'Checks whether project exists.'

def verify_project(self, pool, project):

    svc = ((('/api/storage/v1/pools/' + pool) + '/projects/') + project)
    ret = self.rclient.get(svc)
    if (ret.status != restclient.Status.OK):
        exception_msg = (_('Error    Verifying    Project:    %(project)s    on    Pool:    %(pool)s    Return    code:    %(ret.status)d    Message:    %(ret.data)s.') % {'project': project, 'pool': pool, 'ret.status': ret.status, 'ret.data': ret.data})
        LOG.error(exception_msg)
        raise exception.VolumeBackendAPIException(data=exception_msg)
