'Gets list of all SIO volumes in PD and SP'

def _get_all_scaleio_volumes(self):

    all_volumes = []
    for sp_name in self.storage_pools:
        splitted_name = sp_name.split(':')
        domain_name = splitted_name[0]
        pool_name = splitted_name[1]
        sp_id = self._get_storage_pool_id(domain_name, pool_name)
        req_vars = {'server_ip': self.server_ip, 'server_port': self.server_port, 'storage_pool_id': sp_id}
        request = ('https://%(server_ip)s:%(server_port)s/api/instances/StoragePool::%(storage_pool_id)s/relationships/Volume' % req_vars)
        (r, volumes) = self._execute_scaleio_get_request(request)
        if (r.status_code != http_client.OK):
            msg = (_('Error    calling    api    status    code:    %d') % r.status_code)
            raise exception.VolumeBackendAPIException(data=msg)
        all_volumes.extend(volumes)
    return all_volumes
