[Spacewalk-list] Spacewalk 1.4 channel and even question/challenge
Jan Huijsmans
bofh at koffie.nu
Wed May 18 10:35:26 UTC 2011
On Mon, 16 May 2011 15:30:47 +0100
Michael Gliwinski <Michael.Gliwinski at henderson-group.com> wrote:
> On Monday 16 May 2011 07:50:21 Jan Huijsmans wrote:
> Also note that I only use the --type=yumsubset option for repos which
> I have in that config file (i.e. those I want to limit), all others
> are synced without it which defaults to type=yum and gets all
> packages.
I just tested it on a clean install SL6 server with the following
result:
# spacewalk-repo-sync --channel=sl6-i386-epel6 --type=yumsubset
Error: Unknown type yumsubset
After some digging in the code I found the error was being generated by
/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py
After changing line 62 to
if options.type not in ["yum","yumsubset"]:
I get this error:
# spacewalk-repo-sync --channel=sl6-i386-epel6 --type=yumsubset
Traceback (most recent call last):
File "/usr/bin/spacewalk-repo-sync", line 69, in <module>
sys.exit(abs(main() or 0))
File "/usr/bin/spacewalk-repo-sync", line 63, in main
sync.main()
File
"/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py",
line 109, in main self.import_packages(plugin, url) File
"/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py",
line 309, in import_packages packages = plug.list_packages() File
"/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/repo_plugins/yumsubset_src.py",
line 59, in list_packages new_pack.checksums[cs[0]] = cs[1]
AttributeError: ContentPackage instance has no attribute 'checksums'
The file /etc/rhn/spacewalk-repo-sync-yum.conf has this content:
[sl6-i386-epel6]
includepkgs=PyPAM PyYAML cobbler editarea jabberd jabberpy
jakarta-commons-cli \ jcommon libapreq2 libart_lgpl libgsasl libyaml
perl-Apache-DBI \ perl-Authen-PAM perl-BerkeleyDB perl-Cache-Cache \
perl-Class-MethodMaker perl-Config-IniFiles
perl-Crypt-DES \ perl-Crypt-GeneratePassword perl-Email-Date-Format \
perl-HTML-TableExtract perl-IPC-ShareLite
perl-MIME-Lite \ perl-MIME-Types perl-NOCpulse-CLAC perl-NOCpulse-Utils
\ perl-Net-IPv4Addr perl-Net-SNMP perl-XML-Generator \
perl-libapreq2 python-debian python-gzipstream
python-hwdata \ python-netaddr udns xpp3 xpp3-minimal
I've generated the packagelist with command
yum list installed | awk -F '\.' '/@epel/ { print $1 }'
What am i missing...
---
Jan Huijsmans bofh at koffie.nu
... cannot activate /dev/brain, no response from main coffee server
More information about the Spacewalk-list
mailing list