Bug 769176
| Summary: | traceback when spacewalk-repo-sync synces package into incompatible arch channel | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> |
| Component: | Server | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 541 | CC: | jpazdziora, mminar, mmraka |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-backend-1.2.13-69 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-04-05 12:26:30 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: | 677498, 819081 | ||
It's already been fixed in Spacewalk, see bug 679109. Adding to errata https://errata.devel.redhat.com/errata/stateview/13014. Cherry picked to SATELLITE-5.4, 8a6d81d32d501df84f7098d84683a916731fcb74. 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. http://rhn.redhat.com/errata/RHBA-2012-0457.html |
Description of problem: When you have channel with arch X and repo with packages of arch Y and you attempt to sync that repo to the channel, you obtain error message (good) and traceback (bad) and spacewalk-repo-sync ends on first error like this (bad). Version-Release number of selected component (if applicable): In both these versions: spacewalk-backend-tools-1.2.13-58.el5sat spacewalk-backend-tools-1.2.13-61.el5sat How reproducible: always Steps to Reproduce: 1. Have repo "myrepo" with x86_64 packages configured on satellite 2. Assign that repo to channel "myrepo-channel" 3. Run the sync: # spacewalk-repo-sync -c myrepo-channel Repo http://<fqdn>/pub/myrepo/ has 3 packages. 1/3 : libreoffice-langpack-el-3.4.3.2-11.fc16-1.x86_64 Package arch x86_64 incompatible with channel myrepo-channel Traceback (most recent call last): File "/usr/bin/spacewalk-repo-sync", line 72, in ? sys.exit(abs(main() or 0)) File "/usr/bin/spacewalk-repo-sync", line 66, in main sync.main() File "/usr/share/rhn/satellite_tools/reposync.py", line 103, in main self.import_packages(plugin, url) File "/usr/share/rhn/satellite_tools/reposync.py", line 192, in import_packages finally_remove(localpath) UnboundLocalError: local variable 'localpath' referenced before assignment Actual results: Traceback Expected results: Error message should be shown but s-r-c should try to sync next package.