'Checks whether pool exists.'

def verify_pool(self, pool):

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