[Spacewalk-list] Help with error after update 2.1 to 2.2

Fabiano Stocco fabiano.stocco at nexxera.com
Tue Aug 26 12:45:13 UTC 2014


Good morning everyone 

I believe I have found the problem . 

The code was removed from the diff file below /usr/share/rhn/config_common/repository.py 

Returned code for version 2.0 and started to work as expected . 

------------------------------------------------------------------------------------------ 
32c32 
< from selinux import lgetfilecon, is_selinux_enabled 
--- 
> from selinux import lgetfilecon 
37,38d36 
< def is_selinux_enabled(): 
< return 0 
139c137 
< selinux_ctx = None 
--- 
> selinux_ctx = '' 
141,144c139 
< if is_selinux_enabled(): 
< ret['selinux_ctx'] = selinux_ctx 
< else: 
< ret['selinux_ctx'] = '' 
--- 
> ret['selinux_ctx'] = selinux_ctx 
------------------------------------------------------------------------------------------ 

regards 

Fabiano Stocco 


----- Original Message -----

From: "Fabiano Stocco" <fabiano.stocco at nexxera.com> 
To: spacewalk-list at redhat.com 
Sent: Monday, August 11, 2014 10:58:40 AM 
Subject: Help with error after update 2.1 to 2.2 


I have a problem after upgrading from version 2.1 to version 2.2 which can no longer pull configuration files of clients. 

Following execution log below. 
Our environment throughout this in version 2.2 spacewalk (PostgreSQL) with CentOS 6.5 . 


[root at client ~]# rhn_check -vvv 
D: opening db environment /var/lib/rpm cdb:mpool:joinenv 
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0 
D: locked db index /var/lib/rpm/Packages 
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key 
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key 
D: loading keyring from rpmdb 
D: opening db index /var/lib/rpm/Name rdonly mode=0x0 
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring 
D: added key gpg-pubkey-863a853d-4f55f54d to keyring 
D: added key gpg-pubkey-4785d314-4c052e29 to keyring 
D: added key gpg-pubkey-0608b895-4bd22942 to keyring 
D: added key gpg-pubkey-217521f6-45e8a532 to keyring 
D: added key gpg-pubkey-6b8d79e6-3f49313d to keyring 
D: added key gpg-pubkey-066e5810-53cfcd27 to keyring 
D: Using legacy gpg-pubkey(s) from rpmdb 
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0 
D: check_action{'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>81178</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/resolv.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 81178} 
updateLoginInfo() login info 
D: login(forceUpdate=True) invoked 
logging into up2date server 
D: rpcServer: Calling XMLRPC up2date.login 
D: writeCachedLogin() invoked 
D: Wrote pickled loginInfo at 1407765128.97 with expiration of 1407768728.97 seconds. 
successfully retrieved authentication token from up2date server 
D: logininfo:{'X-RHN-Server-Id': 1000010023, 'X-RHN-Auth-Server-Time': '1407765128.97', 'X-RHN-Auth': 'kC0oq5KuSss0ES5sgeLAA5Sc3j7PbqPR6bxkWpBYGc4=', 'X-RHN-Auth-Channels': [['centos6-base-x86_64', '20140811024752', '1', '1'], ['centos6-spacewalk-client-x86_64', '20140811013808', '0', '1'], ['centos6-updates-x86_64', '20140811013314', '0', '1'], ['centos6-epel-x86_64', '20140811022246', '0', '1'], ['centos6-intranet-base-x86_64', '20140811013201', '0', '1'], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'} 
D: handle_action{'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>configfiles.upload</methodName>\n<params>\n<param>\n<value><int>81178</int></value>\n</param>\n<param>\n<value><array><data>\n<value><string>/etc/resolv.conf</string></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 81178} 
D: handle_action actionid = 81178, version = 2 
D: do_call configfiles.upload(81178, ['/etc/resolv.conf']){'cache_only': None} 
XML-RPC error while talking to https://server.local.com/CONFIG-MANAGEMENT: cannot marshal None unless allow_none is enabled 
D: Sending back response((6,), 'Fatal error in Python code occurred', {}) 
D: do_call packages.checkNeedUpdate('rhnsd=1',){} 
D: opening db environment /var/lib/rpm cdb:mpool:joinenv 
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0 
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key 
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key 
D: loading keyring from rpmdb 
D: opening db index /var/lib/rpm/Name rdonly mode=0x0 
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring 
D: added key gpg-pubkey-863a853d-4f55f54d to keyring 
D: added key gpg-pubkey-4785d314-4c052e29 to keyring 
D: added key gpg-pubkey-0608b895-4bd22942 to keyring 
D: added key gpg-pubkey-217521f6-45e8a532 to keyring 
D: added key gpg-pubkey-6b8d79e6-3f49313d to keyring 
D: added key gpg-pubkey-066e5810-53cfcd27 to keyring 
D: Using legacy gpg-pubkey(s) from rpmdb 
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0 
D: closed db index /var/lib/rpm/Providename 
D: closed db index /var/lib/rpm/Name 
D: closed db index /var/lib/rpm/Packages 
D: closed db environment /var/lib/rpm 
Not loading "fastestmirror" plugin, as it is disabled 
Loaded plugins: priorities, refresh-packagekit, rhnplugin 
Config time: 0.025 
D: rpcServer: Calling XMLRPC up2date.listChannels 
This system is receiving updates from RHN Classic or Red Hat Satellite. 
Setting up Package Sacks 
pkgsack time: 0.058 
rpmdb time: 0.000 
repo time: 0.000 
D: local action status: (0, 'rpm database not modified since last update (or package list recently updated)', {}) 
D: rpcServer: Calling XMLRPC registration.welcome_message 
D: closed db index /var/lib/rpm/Providename 
D: closed db index /var/lib/rpm/Name 
D: closed db index /var/lib/rpm/Packages 
D: closed db environment /var/lib/rpm 

Already verjuice for the help 

Fabiano Stocco 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140826/463f02f6/attachment.htm>


More information about the Spacewalk-list mailing list