Bug 869455
| Summary: | submitting job with <package/> results in database error: (OperationalError) (1048, "Column 'job_id' cannot be null") | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Dan Callaghan <dcallagh> |
| Component: | scheduler | Assignee: | Dan Callaghan <dcallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Amit Saha <asaha> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 0.9 | CC: | asaha, dcallagh, ebaak, mishin, rglasz, rmancy |
| Target Milestone: | 0.11 | Keywords: | Regression, Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | Misc | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-17 04:34:41 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
2012-10-24 00:35:57 UTC
Workaround is to manually insert the offending task_package row:
INSERT INTO task_package (package) VALUES ('new-package-name');
Actually I think this affects any job which includes any <package/> element, which makes this quite a serious regression... still investigating. This was a regression in 0.8.2 and affects any job containing a <package/> element. Like all the other lazy_create bugs we have had, it is due to this change introducing nested transactions: http://git.beaker-project.org/cgit/beaker/diff/Server/bkr/server/model.py?id=bb12ed97 The workaround in comment 1 is not valid either. The only workaround is to avoid using <package/>. One possibility is to use a <ks_append/> containing a second %packages section, although I think this breaks in very old Anaconda versions. Another option is to pass ks_meta="packages=onepackage:anotherpackage" inside <recipe/>. On Gerrit: http://gerrit.beaker-project.org/1436 Verified to be fixed. Ran the test case against the release-0.10 branch and against the master branch. It fails in the latter. Also submitted a simple Job with additional <package> specification. The kickstart file was generated correctly. This has now been released This bug still exists. My fix only works in the case with one recipeset and one recipe and no guestrecipes. I also just discovered the reason why nobody has hit this bug in our production Beaker instance. There is one very small but very important difference in the production schema vs our source code (and tests): recipe.recipe_set_id and recipe_set.job_id are NULLable in production. That will also need to be fixed: bug 881563. On Gerrit: http://gerrit.beaker-project.org/1525 Beaker 0.11.0 has been released. |