Bug 1596866
| Summary: | Heat database error: 'Cannot delete or update a parent row: a foreign key constraint fails ... | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Zane Bitter <zbitter> |
| Component: | openstack-heat | Assignee: | Zane Bitter <zbitter> |
| Status: | CLOSED ERRATA | QA Contact: | Ronnie Rasouli <rrasouli> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 13.0 (Queens) | CC: | astupnik, ebarrera, joflynn, jschluet, lars, mburns, rrasouli, sbaker, shardy, srevivo, therve, zbitter |
| Target Milestone: | z2 | Keywords: | Triaged, ZStream |
| Target Release: | 13.0 (Queens) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-heat-10.0.1-2.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
When a stack has more than 1,000 past events associated with it, Heat begins to purge a portion of existing events from the database, with some probability of this occurring each time a new event is created. However, if the stack has had previous updates with convergence disabled (the default on the overcloud prior to OSP10, and on the undercloud prior to OSP13) some events might reference resource properties data from the backup stack.
Purging events may fail with a foreign key constraint error:
'Cannot delete or update a parent row: a foreign key constraint fails (`heat`.`event`, CONSTRAINT `ev_rsrc_prop_data_ref` FOREIGN KEY (`rsrc_prop_data_id`) REFERENCES `resource_properties_data` (`id`))'
or
'Cannot delete or update a parent row: a foreign key constraint fails (`heat`.`resource`, CONSTRAINT `rsrc_rsrc_prop_data_ref` FOREIGN KEY (`rsrc_prop_data_id`) REFERENCES `resource_properties_data` (`id`))'
This prevents the new event from being stored and the stack update fails as a result.
Heat now ignores foreign key constraint errors when attempting to purge events. If this situation occurs, events are not purged until any backup stacks that hold common references have been purged. New events are stored and the operation of the stack continues.
|
Story Points: | --- |
| Clone Of: | 1577874 | Environment: | |
| Last Closed: | 2018-08-29 16:21:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1577874 | ||
| Bug Blocks: | |||
|
Description
Zane Bitter
2018-06-29 20:22:33 UTC
modified the config.py as https://review.openstack.org/#/c/577432/13/heat/common/config.py Scaled out compute node successfully Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2590 |