Hello, I migrated my spacewalk-2.5 server from old hardware with centos-6 to new hardware with centos-7. I got everything working again except for syncing my SLES repos.
My first problem was while syncing my SLES-11.4 channels from a file url (SMT server is mounted via NFS), then I get the following log: Sync started: Fri Nov 4 09:03:44 2016 ['/usr/bin/spacewalk-repo-sync', '--channel', 'sles-11.4-x86_64', '--type', 'yum', '--latest'] Repo URL: file:///smt/www/htdocs/repo/$RCE/SLES11-SP4-Updates/sle-11-x86_64 Packages in repo: 2246 Packages already synced: 614 Packages to sync: 7 1/7 : bind-9.9.6P1-0.33.1-0.x86_64 Downloaded package bind-9.9.6P1-0.33.1.x86_64, from sles-11.4-x86_64, but it was invalid. 2/7 : bind-chrootenv-9.9.6P1-0.33.1-0.x86_64 Downloaded package bind-chrootenv-9.9.6P1-0.33.1.x86_64, from sles-11.4-x86_64, but it was invalid. 3/7 : bind-doc-9.9.6P1-0.33.1-0.x86_64 Downloaded package bind-doc-9.9.6P1-0.33.1.x86_64, from sles-11.4-x86_64, but it was invalid. 4/7 : bind-libs-9.9.6P1-0.33.1-0.x86_64 Downloaded package bind-libs-9.9.6P1-0.33.1.x86_64, from sles-11.4-x86_64, but it was invalid. 5/7 : bind-libs-32bit-9.9.6P1-0.33.1-0.x86_64 Downloaded package bind-libs-32bit-9.9.6P1-0.33.1.x86_64, from sles-11.4-x86_64, but it was invalid. 6/7 : bind-utils-9.9.6P1-0.33.1-0.x86_64 Downloaded package bind-utils-9.9.6P1-0.33.1.x86_64, from sles-11.4-x86_64, but it was invalid. 7/7 : wget-1.11.4-1.35.1-0.x86_64 Downloaded package wget-1.11.4-1.35.1.x86_64, from sles-11.4-x86_64, but it was invalid. Linking packages to channel. Repo file:///smt/www/htdocs/repo/$RCE/SLES11-SP4-Updates/sle-11-x86_64 has 378 errata. 2 errata skipped because of empty package list. ERROR: 'InvalidPackageError' object has no attribute 'with_traceback' Sync completed. Total time: 0:01:53 After comparing the logs with my SLES-12.1 channels (via http url, from another SMT server) i figured out, only repos with file url have the "Downloaded ... but it was invalid" error. Perhaps there is some problem with the "$" in the path. So for this first problem I found a workaround. My second problem is: even when I can sync the rpms I get the following error: Sync started: Fri Nov 4 14:00:44 2016 ['/usr/bin/spacewalk-repo-sync', '-c', 'sles-11.4-x86_64', '--type=yum', '--latest'] Repo URL: http://SMT-SERVER/pub/SMT/SLES11-SP4-Updates/sle-11-x86_64 Packages in repo: 2255 Packages already synced: 609 Packages to sync: 13 1/13 : bind-9.9.6P1-0.33.1-0.x86_64 2/13 : bind-chrootenv-9.9.6P1-0.33.1-0.x86_64 3/13 : bind-doc-9.9.6P1-0.33.1-0.x86_64 4/13 : bind-libs-9.9.6P1-0.33.1-0.x86_64 5/13 : bind-libs-32bit-9.9.6P1-0.33.1-0.x86_64 6/13 : bind-utils-9.9.6P1-0.33.1-0.x86_64 7/13 : curl-7.19.7-1.64.1-0.x86_64 8/13 : libcurl4-7.19.7-1.64.1-0.x86_64 9/13 : libcurl4-32bit-7.19.7-1.64.1-0.x86_64 10/13 : parted-2.3-10.51.1-0.x86_64 11/13 : parted-32bit-2.3-10.51.1-0.x86_64 12/13 : shim-0.9-11.7-0.x86_64 13/13 : wget-1.11.4-1.35.1-0.x86_64 Linking packages to channel. Repo http://SMT-SERVER/pub/SMT/SLES11-SP4-Updates/sle-11-x86_64 has 381 errata. ERROR: 'InvalidPackageError' object has no attribute 'with_traceback' Sync completed. Total time: 0:01:41 I get this 'InvalidPackageError' only for repos from Suse SMT-Server, but not for rpms from opensuse-build-service repos (download.opensuse.org/repositories). I spent the day digging through the repo-sync code and I suspect the newer version of yum on centos-7 is the reason for this mess. The error message "Downloaded ... but it was invalid" appears only in /usr/lib/python2.7/site-packages/yum on centos-7 and not in /usr/lib/python2.6/site-packages/yum on centos-6. So yum on centos-7 does some extra checks on rpms/repos which centos-6 did not. Does anybody have a workaround or solution for this problem or can give me some hints where to search further in the code? I would like to avoid downgrading to centos-6... Regards, Bernhard
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list