SM:R3.0.3 build62kilo: HA: test_svc_creation_with_heat fails with HTTPInternalServerError: ERROR: Remote error: AuthorizationFailure Authorization failed: Bad Gateway (HTTP 502) (HTTP 502)
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Fix Committed
|
High
|
Dheeraj Gautam | |||
R3.0.3.x |
Won't Fix
|
High
|
Dheeraj Gautam | |||
R3.1 |
Fix Committed
|
High
|
Dheeraj Gautam | |||
R3.2 |
Fix Committed
|
High
|
Dheeraj Gautam | |||
Trunk |
Fix Committed
|
High
|
Dheeraj Gautam |
Bug Description
SM:R3.0.3 build62kilo: HA: test_svc_
1) Provision a Openstack HA setup using SM
2) test_svc_
Traceback (most recent call last):
File "tcutils/
result = function(self, *args, **kwargs)
File "scripts/
right_net_fix, r_hs_obj = self.config_
File "scripts/
vn_hs_obj = self.config_
File "scripts/
inputs=self.inputs, stack_name=
File "/usr/local/
reraise(*exc_info)
File "/usr/local/
fixture.setUp()
File "/contrail-
stack_obj = self.heat_
File "/usr/lib/
data=kwargs, headers=headers)
File "/usr/lib/
resp = self._http_
File "/usr/lib/
raise exc.from_
HTTPInternalSer
heat stack-list
+----+-
| id | stack_name | stack_status | creation_time |
+----+-
+----+-
root@nodeg21:~#
In Juno, the error is
<class 'heatclient. exc.HTTPInterna lServerError' >: ERROR: Remote error: DBConnectionError (OperationalError) (2006, 'MySQL server has gone away') 'SELECT stack.status_reason AS stack_status_ reason, stack.created_at AS stack_created_at, stack.deleted_at AS stack_deleted_at, stack.action AS stack_action, stack.status AS stack_status, stack.id AS stack_id, stack.name AS stack_name, stack.raw_ template_ id AS stack_raw_ template_ id, stack.username AS stack_username, stack.tenant AS stack_tenant, stack.parameters AS stack_parameters, stack.user_creds_id AS stack_user_ creds_id, stack.owner_id AS stack_owner_id, stack.timeout AS stack_timeout, stack.disable_ rollback AS stack_disable_ rollback, stack.stack_ user_project_ id AS stack_stack_ user_project_ id, stack.backup AS stack_backup, stack.updated_at AS stack_updated_at \nFROM stack \nWHERE stack.deleted_at IS NULL AND stack.owner_id IS NULL AND stack.tenant = %s ORDER BY stack.created_at DESC, stack.id DESC' ('137b98f5d1974 edb81700d97a4c4 23b0',)
[u'Traceback (most recent call last):\n', u' File "/usr/lib/ python2. 7/dist- packages/ oslo/messaging/ rpc/dispatcher. py", line 134, in _dispatch_ and_reply\ n incoming. message) )\n', u' File "/usr/lib/ python2. 7/dist- packages/ oslo/messaging/ rpc/dispatcher. py", line 177, in _dispatch\n return self._do_ dispatch( endpoint, method, ctxt, args)\n', u' File "/usr/lib/ python2. 7/dist- packages/ oslo/messaging/ rpc/dispatcher. py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', u' File "/usr/lib/ python2. 7/dist- packages/ heat/engine/ service. py", line 69, in wrapped\n return func(self, ctx, *args, **kwargs)\n', u' File "/usr/lib/ python2. 7/dist- packages/ heat/engine/ service. py", line 499, in list_stacks\n return [api.format_ stack(stack) for stack in stacks]\n', u' File "/usr/lib/ python2. 7/dist- packages/ heat/engine/ stack.py" , line 268, in load_all\n show_deleted, show_nested) or []\n', u' File "/usr/lib/ python2. 7/dist- packages/ heat/db/ api.py" , line 130, in stack_get_all\n show_deleted, show_nested)\n', u' File "/usr/lib/ python2. 7/dist- packages/ heat/db/ sqlalchemy/ api.py" , line 368, in stack_get_all\n marker, sort_dir, filters).all()\n', u' File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ orm/query. py", line 2300, in all\n return list(self)\n', u' File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ orm/query. py", line 2412, in __iter__\n return self._execute_ and_instances( context) \n', u' File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ orm/query. py", line 2427, in _execute_ and_instances\ n result = conn.execute( querycontext. statement, self._params)\n', u' File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 729, in execute\n return meth(self, multiparams, params)\n', u' File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ sql/elements. py", line 321, in _execute_ on_connection\ n return connection. _execute_ clauseelement( self, multiparams, params)\n', u' File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , line 826, in _execute_ clauseelement\ n compiled_sql, distilled_ params\ n', u' File "/usr/lib/ python2. 7/dist- packages/ sqlalchemy/ engine/ base.py" , li...