Bug 523760
| Summary: | If /usr/bin/update-packages fails between rename and commit, 404 Package not found errors appear | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Jan Pazdziora (Red Hat) <jpazdziora> |
| Component: | Upgrades | Assignee: | Jan Pazdziora (Red Hat) <jpazdziora> |
| Status: | CLOSED ERRATA | QA Contact: | Brandon Perkins <bperkins> |
| Severity: | high | Docs Contact: | |
| Priority: | low | ||
| Version: | 530 | CC: | cperry, jhutar, mzazrivec, tscherf |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-10-06 14:36:20 UTC | Type: | --- |
| 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: | |||
| Bug Blocks: | 518256, 523386 | ||
Taking for now. Fix to just use the file found on the final location committed to Spacewalk master: 82afbb68ef1af1f87ba2a9e9466f14e67fbb053b. Additional fix (to the previous fix) in Spacewalk master: c95a6b21b9d41d3dbfa80a52e956142120763026. We shall read from the new file, even if we did not rename; Spacewalk master: 9f9f5476724c48bb87d52e5d9bcefbbfd91a2c39. satellite.git, SATELLITE-5.3: 18585b473f0e69af1704d2557c1aa946ff4a30a1 rhn-upgrade-5.3.0.24-1.el4sat & rhn-upgrade-5.3.0.23-1.el5sat An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1479.html |
Description of problem: If there is a database issue (UNDO_TBS full, DATA_TBS full, network down), file can get renamed but the new path is not stored in database. Then, errors similar to RHN 28350 2009/09/10 14:04:22 +02:00: ('Package not found', '/var/satellite/redhat/NULL/dhclient/12:3.0.5-18.el5/i386/dhclient-3.0.5-18.e l5.i386.rpm') will appear in /var/log/httpd/error_log during yum operation. Version-Release number of selected component (if applicable): Satellite pre-5.3.0, upgraded to 5.3.0. How reproducible: It's hard to reproduce in deterministic fashion. Steps to Reproduce: 1. Run the /usr/bin/updated-packages during Satellite upgrade to 5.3, and kill the database in the middle. 2. But: see Additional info for alternative test plan. Actual results: Then, yum will fail for one or more packages. Expected results: The /usr/bin/update-packages should be self-healing. Additional info: We've seen the same problem when after a complete upgrade to Satellite 5.3.0, the database was restored from backup and schema upgrade rerun. Running update-packages with --debug then produces Missing Path message for every package. The script should realize that the file was already renamed.