heat stack failed to create due to "DBReferenceError (IntegrityError)"

Bug #1561404 reported by jz
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
New
High
Unassigned

Bug Description

heat stack failed to create due to "DBReferenceError (IntegrityError)" when do heat stress tess in scalability testbed.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/rally/task/runner.py", line 64, in _run_scenario_once method_name)(**kwargs) or scenario_output
File "/root/.rally/plugins/scenario/stack_seeding.py", line 15, in populate_stacks self._create_stack(template_path, parameters, files, environment)
File "/usr/local/lib/python2.7/dist-packages/rally/task/atomic.py", line 84, in func_atomic_actions f = func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/scenarios/heat/utils.py", line 143, in _create_stack stack_id = self.clients("heat").stacks.create(**kw)["stack"]["id"]
File "/usr/local/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line 136, in create data=kwargs, headers=headers)
File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 287, in post return self.client_request("POST", url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 277, in client_request resp, body = self.json_request(method, url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 266, in json_request resp = self._http_request(url, method, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 221, in _http_request raise exc.from_response(resp) HTTPInternalServerError: ERROR: Remote error: DBReferenceError (IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails (`heat`.`stack_lock`, CONSTRAINT `stack_lock_ibfk_1` FOREIGN KEY (`stack_id`) REFERENCES `stack` (`id`))') 'INSERT INTO stack_lock (created_at, updated_at, stack_id, engine_id) VALUES (%s, %s, %s, %s)' (datetime.datetime(2016, 1, 14, 11, 53, 37, 303071), None, 'accce34f-f938-4243-8b0f-23e3bc3f5db7', '18960d6f-cfac-4340-805a-0ad0c9aff4d9')

Tags: gate-failure
Thomas Herve (therve)
Changed in heat:
importance: Undecided → Medium
milestone: none → next
Revision history for this message
Sergey Kraynev (skraynev) wrote :

I have met the same bug with enabled convergence. There is the following error:
http://paste.openstack.org/show/593337/

Changed in heat:
milestone: next → ocata-3
importance: Medium → High
Rabi Mishra (rabi)
Changed in heat:
milestone: ocata-3 → next
Zane Bitter (zaneb)
tags: added: gate-failure
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.