Bug 771353 - rhnreg_ks, rhn-profile-sync fail with "socket.error" unable to read network info
Summary: rhnreg_ks, rhn-profile-sync fail with "socket.error" unable to read network info
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 1.6
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space17
TreeView+ depends on / blocked
 
Reported: 2012-01-03 13:21 UTC by daniel.schindler
Modified: 2012-03-07 09:54 UTC (History)
0 users

Fixed In Version: rhn-client-tools-1.6.47-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-07 09:54:18 UTC


Attachments (Terms of Use)
Updated packages (10.10 KB, text/plain)
2012-01-03 13:21 UTC, daniel.schindler
no flags Details
strace output of rhn-profile-sync (3.03 MB, text/plain)
2012-01-03 14:35 UTC, daniel.schindler
no flags Details

Description daniel.schindler 2012-01-03 13:21:36 UTC
Created attachment 550417 [details]
Updated packages

Description of problem:
After updating sapcewalk client tools on a host (from 1.5 to 1.6) rhn-profile-sync fails to collect network information and exits with socket.error. Same when trying to reregister system with rhnreg_ks. Client tools seem to be unable to collect hardware info.

Error is not seen with 1.5 tools after uninstalling 1.6 tools

Please see debug output under additional info.

Version-Release number of selected component (if applicable):
1.6

How reproducible:
update client tools and run rhn-profile-sync or delete profile from spacewalk server and try to run rhnreg_ks

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

[root@s18ap01 reginst-oel5]# rhn-profile-sync -vvvvvv
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1325596161.28 with expiration of 1325599761.28 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010402, 'X-RHN-Auth-Server-Time': '1325596161.3', 'X-RHN-Auth': '3DWKOC6C3SEavU0pHM/5oA==', 'X-RHN-Auth-Channels': [['ol5_u7_base-x86_64', '20110826133006', '1', '1'], ['el5_u7_addons-x86_64', '20110905125627', '0', '1'], ['spacewalk_client_1.6_el5_u7-x86_64', '20120102153751', '0', '1'], ['epel_el5_u7-x86_64', '20111018232140', '0', '1'], ['el5_u7_oracle_addons-x86_64', '20110905125552', '0', '1'], ['ol5_u7_patch-x86_64', '20120103021538', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
Aktualisiere das Paket Profil...
Updating package profile
D: rpcServer: Calling XMLRPC registration.welcome_message
D: rpcServer: Calling XMLRPC registration.update_packages
Hardware-Profil aktualisieren...
Fehler beim Lesen der Netzwerk-Informationen: socket.error
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: May free Score board((nil))

Comment 1 Milan Zázrivec 2012-01-03 13:44:03 UTC
Does /var/log/up2date contain any error messages / tracebacks?

Comment 2 daniel.schindler 2012-01-03 13:53:58 UTC
(In reply to comment #1)
> Does /var/log/up2date contain any error messages / tracebacks?

I don't see any :(

[Tue Jan  3 14:50:57 2012] up2date Updating package profile
[Tue Jan  3 14:51:07 2012] up2date updateLoginInfo() login info
[Tue Jan  3 14:51:07 2012] up2date logging into up2date server
[Tue Jan  3 14:51:07 2012] up2date successfully retrieved authentication token from up2date server
[Tue Jan  3 14:51:07 2012] up2date Updating package profile
[Tue Jan  3 14:51:42 2012] up2date updateLoginInfo() login info
[Tue Jan  3 14:51:42 2012] up2date D: login(forceUpdate=True) invoked
[Tue Jan  3 14:51:42 2012] up2date logging into up2date server
[Tue Jan  3 14:51:42 2012] up2date D: rpcServer: Calling XMLRPC up2date.login
[Tue Jan  3 14:51:42 2012] up2date D: writeCachedLogin() invoked
[Tue Jan  3 14:51:42 2012] up2date D: Wrote pickled loginInfo at 1325598702.94 with expiration of 1325602302.94 seconds.
[Tue Jan  3 14:51:42 2012] up2date successfully retrieved authentication token from up2date server
[Tue Jan  3 14:51:42 2012] up2date D: logininfo:{'X-RHN-Server-Id': 1000010403, 'X-RHN-Auth-Server-Time': '1325598702.95', 'X-RHN-Auth': 'oOcOBlz/D7boVr+VksoCtg==', 'X-RHN-Auth-Channels': [['ol5_u7_base-x86_64', '20110826133006', '1', '1'], ['el5_u7_addons-x86_64', '20110905125627', '0', '1'], ['spacewalk_client_1.6_el5_u7-x86_64', '20120102153751', '0', '1'], ['epel_el5_u7-x86_64', '20111018232140', '0', '1'], ['el5_u7_oracle_addons-x86_64', '20110905125552', '0', '1'], ['ol5_u7_patch-x86_64', '20120103021538', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
[Tue Jan  3 14:51:42 2012] up2date Updating package profile
[Tue Jan  3 14:51:43 2012] up2date D: rpcServer: Calling XMLRPC registration.welcome_message
[Tue Jan  3 14:51:43 2012] up2date D: rpcServer: Calling XMLRPC registration.update_packages

Comment 3 daniel.schindler 2012-01-03 14:35:06 UTC
Created attachment 550437 [details]
strace output of rhn-profile-sync

Comment 4 Milan Zázrivec 2012-01-03 15:34:28 UTC
Does the problem disappear after application of the following patch?

http://git.fedorahosted.org/git/?p=spacewalk.git;a=commitdiff;h=60b361bba52f028941c657eb4bef7fd41cb35a0c

Comment 5 daniel.schindler 2012-01-04 08:43:54 UTC
(In reply to comment #4)
> Does the problem disappear after application of the following patch?
> 
> http://git.fedorahosted.org/git/?p=spacewalk.git;a=commitdiff;h=60b361bba52f028941c657eb4bef7fd41cb35a0c

Hi Milan.

That worked out fine :) Thanks for the advice.

Regards,
Daniel

Comment 6 Milan Zázrivec 2012-01-04 12:49:24 UTC
Thanks for the feedback, nevertheless this bug report cannot be closed just
yet, since there's no package build nor Spacewalk release containing this
fix.

Comment 7 Milan Zázrivec 2012-01-04 12:49:48 UTC
spacewalk.git master: 60b361bba52f028941c657eb4bef7fd41cb35a0c
spacewalk.git SPACEWALK-1.6: 72f0901650965d60b6b0e7e2dbbd3d6660ab2e64

Comment 8 daniel.schindler 2012-01-04 13:43:31 UTC
(In reply to comment #6)
> Thanks for the feedback, nevertheless this bug report cannot be closed just
> yet, since there's no package build nor Spacewalk release containing this
> fix.

Sorry I'm pretty new to all this bugzilla/git stuff :) I'll leave it up to you guys to close this request.

Comment 9 Milan Zázrivec 2012-01-04 14:08:03 UTC
Problem will be also fixed in Spacewalk 1.6 in rhn-client-tools-1.6.47-1
(which should appear in the 1.6 client repos soon).

Comment 10 Jan Pazdziora 2012-03-07 09:54:18 UTC
Spacewalk 1.7 has been released:

https://fedorahosted.org/spacewalk/wiki/ReleaseNotes17


Note You need to log in before you can comment on or make changes to this bug.