Bug 1057265

Summary: satellite-sync from dump throws: InvalidPackageError
Product: [Community] Spacewalk Reporter: Jan Hutař <jhutar>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: mzazrivec, sherr
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.1.45-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 22:28:51 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:    
Bug Blocks: 1484117    

Description Jan Hutař 2014-01-23 17:48:27 UTC
Description of problem:
satellite-sync from some oldish channel dump throws InvalidPackageError exception


Version-Release number of selected component (if applicable):
spacewalk-backend-tools-2.1.44-1.el6.noarch


How reproducible:
2 of 2 SWnightly@PostgreSQL


Steps to Reproduce:
1. # satellite-sync -m <some_dump> -c clone-rhel-x86_64-server-5


Actual results:
InvalidPackageError("Could not find object [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'channels': {262: 'clone-rhel-x86_64-server-5'}, 'package_arch_id': 119, 'name': 'xorg-x11-xtrans-devel', 'checksum': 'f1ebdf75493a3ce31b2364dcfee2ad83', 'org_id': None, 'package_id': 'rhn-package-1660', 'package_size': 68009, 'nevra_id': 7446, 'epoch': '', 'last_modified': '2010-10-26 05:07:41', 'name_id': 6673, 'version': '1.0.1', 'checksums': {'md5': 'f1ebdf75493a3ce31b2364dcfee2ad83'}, 'release': '1.1.fc6', 'checksum_type': 'md5', 'arch': 'x86_64', 'evr_id': 1343, 'checksum_id': 68834}] in table rhnPackage",)
Could not find object [<spacewalk.server.importlib.importLib.IncompletePackage instance; attributes={'channels': {262: 'clone-rhel-x86_64-server-5'}, 'package_arch_id': 119, 'name': 'xorg-x11-xtrans-devel', 'checksum': 'f1ebdf75493a3ce31b2364dcfee2ad83', 'org_id': None, 'package_id': 'rhn-package-1660', 'package_size': 68009, 'nevra_id': 7446, 'epoch': '', 'last_modified': '2010-10-26 05:07:41', 'name_id': 6673, 'version': '1.0.1', 'checksums': {'md5': 'f1ebdf75493a3ce31b2364dcfee2ad83'}, 'release': '1.1.fc6', 'checksum_type': 'md5', 'arch': 'x86_64', 'evr_id': 1343, 'checksum_id': 68834}] in table rhnPackage


Expected results:
Should work

Comment 5 Eric Herget 2017-09-28 18:06:40 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.