'List all the volumes pools (hosts).
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/block-storage/v2/index.html#list-back-end-storage-pools'

def list_pools(self, detail=False):

    url = 'scheduler-stats/get_pools'
    if detail:
        url += '?detail=True'
    (resp, body) = self.get(url)
    body = json.loads(body)
    self.expected_success(200, resp.status)
    return rest_client.ResponseBody(resp, body)
