[Spacewalk-list] Spacewalk 1.4 channel and even question/challenge

Michael Gliwinski Michael.Gliwinski at henderson-group.com
Wed May 18 12:08:24 UTC 2011


On Wednesday 18 May 2011 11:35:26 Jan Huijsmans wrote:
> I just tested it on a clean install SL6 server with the following
> result:

Note that I've written this for Spacewalk 1.1 on CentOS 5 (still works for me 
on 1.2, had no time to upgrade further yet).  It looks like some 
implementation/API changed in some newer version.

> # 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"]:

Uhm, hardcoded types?  I wonder why.  I added another type because I didn't 
want to have to patch the builtin type with each new release.  Could any devs 
comment on that change?

> 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/yu
> msubset_src.py", line 59, in list_packages new_pack.checksums[cs[0]] =
> cs[1]
> AttributeError: ContentPackage instance has no attribute 'checksums'

Yip, looks like at least the implementation of ContentPackage has changed.

> What am i missing...

No, the rest seems fine, just the changes to reposync broke it.  When I have 
some time I'll try to find the relevant code in on-line repo browser and see 
if I can do anything to fix it.

In the meantime, you could maybe check if there's already a request in 
bugzilla for having that functionality built in?


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee and access to the email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed  in the governing client engagement leter or contract.
If you have received this email in error please notify support at henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************




More information about the Spacewalk-list mailing list