Bug 1173376
| Summary: | system_recipe_map is not being cleared for Aborted/Cancelled recipes | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Dan Callaghan <dcallagh> |
| Component: | scheduler | Assignee: | matt jia <mjia> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | aigao, asaha, dcallagh, dowang, mjia |
| Target Milestone: | 20.0 | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-04-20 02:22:45 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: | |||
|
Description
Dan Callaghan
2014-12-12 01:32:37 UTC
(In reply to Dan Callaghan from comment #0) > A recipe should only have rows in system_recipe_map while it is still > New/Processed/Queued. Once it is Scheduled the rows are removed. The cleanest solution might be to make update_status() or one of those related methods enforce this invariant. We will also need to find a way to clean out existing leftover rows from system_recipe_map. On gerrit: http://gerrit.beaker-project.org/#/c/3967/ Matt Jia (In reply to matt jia from comment #2) > On gerrit: > > http://gerrit.beaker-project.org/#/c/3967/ > > Matt Jia Have uploaded a new patch: http://gerrit.beaker-project.org/#/c/3971/ Matt Jia Verify steps: 1. Creat a job 2. cancel it from WEB UI or using bkr job-cancel 3. login to the database and check if rows in the system_recipe_map are cleared the check sql statement could be sth like this: select * from system_recipe_map where recipe_id = <any recipe id in your job> it should return 0 as expected. Cheers,Matt Jia Beaker 20.0 has been released. |