Bug 458858

Summary: rhn-client-tools should be sanitized to not hit rhn.redhat.com
Product: [Community] Spacewalk Reporter: Mike McCune <mmccune>
Component: ClientsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Mike McCune <mmccune>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.2CC: bperkins, cperry, jesusr, msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-07 12:02:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 507670    

Description Mike McCune 2008-08-12 17:49:53 UTC
If we patch rhnlib to not hit rhn.redhat.com for updates this library will be more generically useful to other distributions of Linux (CentOS and Fedora).

Comment 1 Pradeep Kilambi 2008-09-26 19:17:43 UTC
hmm not sure I completely understand what this bug is intended for, rhnlib gets the serverUrl info directly from what the update client sends it. rhnlib is a generic wrapper around python xmlrpclib which has no info of rhn.redhat.com (code wise). So up2date/yum reads the /etc/sysconfig/rhn/up2date and creates an rhnserver object thats being referenced to talk to the xmlrpc layer on the server through rhnlib.

unless you're referring to the url comment references pointing rhn.redhat.com in the spec file and other setup info?

Comment 2 Mike McCune 2008-10-16 23:43:19 UTC
ok, so by default if you install:

yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin

from our spacewalk Fedora repo you get:

# grep rhn.redhat.com /etc/sysconfig/rhn/*
/etc/sysconfig/rhn/up2date:serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC

and rhnreg_ks will default to talking to xmlrpc.rhn.redhat.com

We should make it so we do NOT default that to xmlrpc.rhn.redhat.com so our client bits can be included in CentOS and other distros.

that make sense?

Comment 3 Pradeep Kilambi 2008-10-17 00:21:30 UTC
ah thats rhn-client-tools not rhnlib. ok I'll look into it.

Thanks

Comment 4 Jesus M. Rodriguez 2008-11-25 19:21:39 UTC
changed summary to be 'rhn-client-tools should be sanitized to not hit rhn.redhat.com' instead of 'rhnlib should be sanitized to not hit rhn.redhat.com'

Comment 5 Miroslav Suchý 2009-12-02 16:06:14 UTC
Done in commit cd925d940357d145c7106c1c3ed6ed12dff29e9d

Changed url from xmlrpc.rhn.redhat.com to enter.your.server.url.here

Comment 6 Miroslav Suchý 2009-12-07 12:02:36 UTC
Spacewalk 0.7 released.