The following tests fail when there are 8 or more endpoints registered with keystone
tempest.api.compute.test_auth_token.AuthTokenTestJSON.test_v3_token
tempest.api.compute.test_auth_token.AuthTokenTestXML.test_v3_token
Steps to reproduce:
- run devstack with the following services (the heat h-* apis push the endpoint count over the threshold
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-sch,horizon,mysql,rabbit,sysstat,tempest,s-proxy,s-account,s-container,s-object,cinder,c-api,c-vol,c-sch,n-cond,heat,h-api,h-api-cfn,h-api-cw,h-eng,n-net
- run the failing tempest tests, eg
testr run test_v3_token
- results in the following errors:
ERROR: tempest.api.compute.test_auth_token.AuthTokenTestJSON.test_v3_token
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
File "tempest/api/compute/test_auth_token.py", line 48, in test_v3_token
self.servers_v3.list_servers()
File "tempest/services/compute/json/servers_client.py", line 138, in list_servers
resp, body = self.get(url)
File "tempest/common/rest_client.py", line 269, in get
return self.request('GET', url, headers)
File "tempest/common/rest_client.py", line 394, in request
resp, resp_body)
File "tempest/common/rest_client.py", line 443, in _error_checker
resp_body = self._parse_resp(resp_body)
File "tempest/common/rest_client.py", line 327, in _parse_resp
return json.loads(body)
File "/usr/lib64/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
======================================================================
ERROR: tempest.api.compute.test_auth_token.AuthTokenTestXML.test_v3_token
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
File "tempest/api/compute/test_auth_token.py", line 48, in test_v3_token
self.servers_v3.list_servers()
File "tempest/services/compute/xml/servers_client.py", line 181, in list_servers
resp, body = self.get(url, self.headers)
File "tempest/common/rest_client.py", line 269, in get
return self.request('GET', url, headers)
File "tempest/common/rest_client.py", line 394, in request
resp, resp_body)
File "tempest/common/rest_client.py", line 443, in _error_checker
resp_body = self._parse_resp(resp_body)
File "tempest/common/rest_client.py", line 519, in _parse_resp
return xml_to_json(etree.fromstring(body))
File "lxml.etree.pyx", line 2993, in lxml.etree.fromstring (src/lxml/lxml.etree.c:63285)
File "parser.pxi", line 1617, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:93571)
File "parser.pxi", line 1495, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:92370)
File "parser.pxi", line 1011, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:89010)
File "parser.pxi", line 577, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:84711)
File "parser.pxi", line 676, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:85816)
File "parser.pxi", line 627, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:85308)
XMLSyntaxError: None
Ran 2 tests in 2.497s (+0.278s)
FAILED (id=214, failures=2)
- run keystone endpoint-delete on endpoints until there is 7 endpoints
- failing tests should now pass
This bug is currently blocking heat from being enabled in tempest gating https:/ /review. openstack. org/#/c/ 32002