With build 17 issue is different from what seen in build 15 ------------------------------------------------------------ With R3.1 build 17 mitaka, svc creation using heat test cases fails with following trace Traceback (most recent call last): File "tcutils/wrappers.py", line 73, in wrapper result = function(self, *args, **kwargs) File "scripts/heat/test_heat.py", line 61, in test_svc_creation_with_heat right_net_fix, r_hs_obj = self.config_vn(stack_name='right_net') File "scripts/heat/base.py", line 103, in config_vn vn_hs_obj = self.config_heat_obj(stack_name, template, env) File "scripts/heat/base.py", line 117, in config_heat_obj inputs=self.inputs, stack_name=stack_name, project_fq_name=self.inputs.project_fq_name, template=template, env=env)) File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 679, in useFixture reraise(*exc_info) File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 666, in useFixture fixture.setUp() File "/contrail-test/fixtures/heat_test.py", line 120, in setUp stack_obj = self.heat_client_obj.stacks.create(**fields) File "/usr/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line 162, in create data=kwargs, headers=headers) File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 281, in post return self.client_request("POST", url, **kwargs) File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 271, in client_request resp, body = self.json_request(method, url, **kwargs) File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 260, in json_request resp = self._http_request(url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 215, in _http_request raise exc.from_response(resp) HTTPInternalServerError: ERROR: Authorization failed. Heat-api.log ------------------- essaging/_drivers/amqpdriver.py:302 2016-08-06 23:54:36.334 15872 DEBUG heat.common.serializers [req-281ec965-6f3d-45bb-97be-c2461fb6718a - ctest-TestHeatv2-67516137 - 3cc68fecba8c4ef7b3179aef9f3e54ea 3cc68fecba8c4ef7b3179aef9f3e54ea] JSON response : {"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "Authorization failed.", "traceback": "Traceback (most recent call last):\n\n File \"/usr/lib/python2.7/dist-packages/heat/common/context.py\", line 329, in wrapped\n return func(self, ctx, *args, **kwargs)\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 802, in create_stack\n stack_id = stack.store()\n\n File \"/usr/lib/python2.7/dist-packages/osprofiler/profiler.py\", line 117, in wrapper\n return f(*args, **kwargs)\n\n File \"/usr/lib/python2.7/dist-packages/heat/engine/stack.py\", line 597, in store\n trust_ctx = keystone.create_trust_context()\n\n File \"/usr/lib/python2.7/dist-packages/heat/common/heat_keystoneclient.py\", line 201, in create_trust_context\n raise exception.AuthorizationFailure()\n\nAuthorizationFailure: Authorization failed.\n", "type": "AuthorizationFailure"}, "title": "Internal Server Error"} to_json /usr/lib/python2.7/dist-packages/heat/common/serializers.py:40 2016-08-06 23:54:36.335 15872 INFO eventlet.wsgi.server [req-281ec965-6f3d-45bb-97be-c2461fb6718a - ctest-TestHeatv2-67516137 - 3cc68fecba8c4ef7b3179aef9f3e54ea 3cc68fecba8c4ef7b3179aef9f3e54ea] 172.17.0.2 - - [06/Aug/2016 23:54:36] "POST /v1/1a39d39d3e424dd1a3c0413715b2fa97/stacks HTTP/1.1" 500 1222 1.418896 root@nodeg37:~# keystone role-list /usr/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient. 'python-keystoneclient.', DeprecationWarning) /usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:145: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. 'the 2.0.0 release.', DeprecationWarning) /usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:147: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead super(Client, self).__init__(**kwargs) /usr/lib/python2.7/dist-packages/debtcollector/renames.py:45: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead return f(*args, **kwargs) /usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py:371: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. 'the 2.0.0 release.', DeprecationWarning) /usr/lib/python2.7/dist-packages/keystoneclient/session.py:140: DeprecationWarning: keystoneclient.session.Session is deprecated as of the 2.1.0 release in favor of keystoneauth1.session.Session. It will be removed in future releases. DeprecationWarning) /usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py:56: DeprecationWarning: keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases. 'in future releases.', DeprecationWarning) +----------------------------------+------------------+ | id | name | +----------------------------------+------------------+ | 1a82badc54a741afb61cd33c4b54e348 | ResellerAdmin | | 9fe2ff9ee4384b1894a90878d3e92bab | _member_ | | 2f781d9d085242a7a9c59a3fbc8dfa11 | admin | | 8d1e3313711049d2aa85d3453ce148de | heat_stack_owner | | 77d2ba343e19428ca9be62481c30a3a9 | heat_stack_user | +----------------------------------+------------------+ root@nodeg37:~# heat stack-list +----+------------+--------------+---------------+--------------+ | id | stack_name | stack_status | creation_time | updated_time | +----+------------+--------------+---------------+--------------+ +----+------------+--------------+---------------+--------------+ root@nodeg37:~# ~ The above mentioned trace with build 17 is slightly different than the one mentioned in 1609683 (which was : AuthorizationFailure: Authorization failed: The resource could not be found. (HTTP 404) (HTTP 404))