Congress faild to start using devstack deployment.
[stack.sh.log]
2015-10-11 15:45:25.431 | ++ _configure_service glance glancev2
2015-10-11 15:45:25.432 | ++ is_service_enabled glance
2015-10-11 15:45:25.434 | ++ return 0
2015-10-11 15:45:25.434 | ++ openstack congress datasource create glancev2 glancev2 --config poll_time=10 --config username=admin --config tenant_name= --config password=123456 --config auth_url=http://10.0.2.15:5000/v2.0
2015-10-11 15:45:26.971 | Datasource could not be created on the DSE: glancev2 (HTTP 400) (Request-ID: req-22b34898-6d3c-44fa-8c8d-87c50f30c22e)
[congress.log]
2015-10-11 15:46:15.423 INFO congress.dse.deepsix [-] keystone:: polling
2015-10-11 15:46:15.424 ERROR congress.datasources.datasource_driver [-] Datasource driver raised exception
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver Traceback (most recent call last):
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 1045, in poll
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver self.update_from_datasource() # sets self.state
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/keystone_driver.py", line 100, in update_from_datasource
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver users = self.client.users.list()
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/users.py", line 126, in list
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver return self._list("/users%s" % query, "users")
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneclient/base.py", line 124, in _list
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver resp, body = self.client.get(url, **kwargs)
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in get
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver return self.request(url, 'GET', **kwargs)
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 206, in request
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 95, in request
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver return self.session.request(url, method, **kwargs)
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver return func(*args, **kwargs)
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py", line 328, in request
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver raise exceptions.EndpointNotFound()
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver EndpointNotFound
2015-10-11 15:46:15.424 TRACE congress.datasources.datasource_driver
2015-10-11 15:46:15.424 INFO congress.dse.deepsix [-] keystone:: finished polling
2015-10-11 15:46:17.033 INFO congress.dse.deepsix [-] nova:: polling
2015-10-11 15:46:17.047 ERROR congress.datasources.datasource_driver [-] Datasource driver raised exception
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver Traceback (most recent call last):
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 1045, in poll
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver self.update_from_datasource() # sets self.state
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/nova_driver.py", line 157, in update_from_datasource
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver detailed=True, search_opts={"all_tenants": 1})
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 608, in list
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver "servers")
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 72, in _list
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver _resp, body = self.api.client.get(url)
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 446, in get
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver return self._cs_request(url, 'GET', **kwargs)
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 402, in _cs_request
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver self.authenticate()
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 555, in authenticate
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver auth_url = self._v2_auth(auth_url)
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 646, in _v2_auth
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver return self._authenticate(url, body)
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 661, in _authenticate
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver return self._extract_service_catalog(url, resp, respbody)
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 493, in _extract_service_catalog
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver raise exceptions.AuthorizationFailure()
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver AuthorizationFailure
2015-10-11 15:46:17.047 TRACE congress.datasources.datasource_driver
2015-10-11 15:46:17.048 INFO congress.dse.deepsix [-] nova:: finished polling
Reviewed: https:/ /review. openstack. org/233506 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=6474767b17b 128b583c9758d69 c878873685f7a1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6474767b17b128b 583c9758d69c878 873685f7a1
Author: Yingxin Cheng <email address hidden>
Date: Mon Oct 12 14:58:03 2015 +0800
Change devstack to OS_PROJECT_NAME and avoid mocking oslo.policy internals
To pass the tests in gate, this commit has 2 separate changes
1) OS_TENANT_NAME is no longer used in the latest devstack, it causes all
datasource driver fail, as well as jenkins gate failure.
This fix changes devstack to use OS_PROJECT_NAME
2) Previously, we tested oslo.policy by mocking out one of the internals
of oslo.policy, just like Neutron. Besides being improper, the newest
release of oslo.policy broke that test, which is what is blocking
the tip of master currently.
This fix shamelessly copies the fix out of Neutron, mocking out
at the layer of HTTPCheck.
Change-Id: I2a4eae714946ce 98a060a43dd501b 9b3619aa68e
Closes-Bug: #1505057
Closes-bug: #1505750