[Spacewalk-list] RHEL 4 client management

Pierre Casenove pcasenove at gmail.com
Thu May 10 20:35:36 UTC 2012


I tried that too... but with no luck: I ended up with all the client
rpm listed, but with no architecture for all packages (set to
undefined)

I didn't had the time to dug into this correctly, but I'm kind of
blind of this problem and I don't really know all the logic around:
- In spacewalk, for RH 4 clients, I do have almost all package listed,
with correct arch
- If I add a test to set the arch to none if it is empty I end up
having ALL package set to undefined arch

I try to better understand the issue, but if you have some clues, I'll
take them!

By the way, one question, When using log_error and log_debug functions
in python, where are the logs written to?

Pierre


2012/5/10 Jan Pazdziora <jpazdziora at redhat.com>:
> On Thu, May 10, 2012 at 04:41:15PM +0200, Pierre Casenove wrote:
>> The problem is that even if this package is useless, it still make
>> spacewalk fail and so, the list of rpm installed on a RedHat 4 client
>> is incomplete!
>>
>> So I need to get rid of that issue to have the complete list of rpm
>> installed on redhat 4 clients.
>>
>> I've tested to modify
>> /usr/lib/python2.4/site-packages/spacewalk/server/rhnServer/server_packages.py,
>> adding these lines
>>   +  225             if package_data['a'] == '':
>>    + 226                 package_data['a'] = None
>>
>> But no luck.
>>
>> Thanks in advance for your help
>
> The package_data contains lists, not strings, so your
>
>        if package_data['a'] == ''
>
> will likely never match.
>
> My guess is that you should look at the logic of the lambdaae and
> do the same for the .a bit.
>
> --
> Jan Pazdziora
> Principal Software Engineer, Satellite Engineering, Red Hat
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list