| Summary: | rhnreg_ks, rhn-profile-sync fail with "socket.error" unable to read network info | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | daniel.schindler | ||||||
| Component: | Clients | Assignee: | Milan Zázrivec <mzazrivec> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 1.6 | Keywords: | Reopened | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | rhn-client-tools-1.6.47-1 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-03-07 09:54:18 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 765736 | ||||||||
| Attachments: |
|
||||||||
Does /var/log/up2date contain any error messages / tracebacks? (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 Created attachment 550437 [details]
strace output of rhn-profile-sync
Does the problem disappear after application of the following patch? http://git.fedorahosted.org/git/?p=spacewalk.git;a=commitdiff;h=60b361bba52f028941c657eb4bef7fd41cb35a0c (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 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. spacewalk.git master: 60b361bba52f028941c657eb4bef7fd41cb35a0c spacewalk.git SPACEWALK-1.6: 72f0901650965d60b6b0e7e2dbbd3d6660ab2e64 (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. 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). Spacewalk 1.7 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes17 |
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))