'Gets the ids and self links for all compute elements.'

def list_all(self, tenant_name):

    restapi = self.URI_COMPUTE_HOST
    tenant_obj = tenant.Tenant(self.ipaddr, self.port)
    if (tenant_name is None):
        tenant_uri = tenant_obj.tenant_getid()
    else:
        tenant_uri = tenant_obj.tenant_query(tenant_name)
    restapi = ((restapi + '?tenant=') + tenant_uri)
    (s, h) = common.service_json_request(self.ipaddr, self.port, 'GET', restapi, None)
    o = common.json_decode(s)
    return o['host']
