Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 488137

Summary: change spacewalk to use cobbler_xmlrpc instead of cobbler_xmlrpc_rw
Product: [Community] Spacewalk Reporter: Jesus M. Rodriguez <jesusr>
Component: ServerAssignee: Partha Aji <paji>
Status: CLOSED CURRENTRELEASE QA Contact: Jesus M. Rodriguez <jesusr>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.5CC: bperkins, dparker, mdehaan, paji
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-09-17 07:10:48 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: 456553    

Description Jesus M. Rodriguez 2009-03-02 20:51:28 UTC
This release contains numerous XMLRPC performance enhancements that will be very beneficial to spacewalk.    XMLRPC now suffers no penalty for large configurations other than at cobblerd startup, in particular, and cobblerd is now one process instead of four.   Anyway, I think I've mentioned this before, but Spacewalk /must/ be coded to know that the following XMLRPC endpoint is going away:

http://cobbler.example.org/cobbler_xmlrpc_rw

The correct process to connect to any version of cobbler is

connect first to http://cobbler.example.org/cobbler_xmlrpc

If the version call yields >=1.5,  go ahead and login against the above URL

If that version is <1.5, log in to cobbler_xmlrpc_rw

(Please do not modify the Apache configuration to keep cobbler_xmlrpc_rw pointing to the old URL, and also do not connect to an XMLRPC port number directly as the users can change these ports)

Changing spacewalk code now to anticipate this release is recommended.

(There are no API changes, this only effects the endpoint)

Future versions of Spacewalk can just require Cobbler >= 1.6 and not have the code to look for the correct endpoint.

--Michael

Comment 1 Dave Parker 2009-03-09 07:00:03 UTC
Michael,

As far as I've been able to determine, spacewalk has been talking to cobbler via this url pattern:

"http://" + cobblerServer + ":" + cobblerServerPort + "/cobbler_api_rw";

I'm unsure if this is just some configuration thing we're doing when we set up cobbler or if you've mistyped the url in the bug specification - can you (or Paji) clarify?

Comment 2 Partha Aji 2009-03-11 20:13:28 UTC
Should be resolved in the next revision of cobbler
http://git.fedorahosted.org/git/spacewalk.git?p=spacewalk.git;a=commit;h=97107baf60e5b96970b2e66d7be5b9fbab19b521

basic logic

if cobbler_version > 1.6 => use cobbler_api , else use cobbler_api_rw

Comment 3 Michael DeHaan 2009-03-11 20:25:22 UTC
The following diff looks odd to me:

-        return "http://" + cobblerServer + ":" + cobblerServerPort + "/cobbler_api_rw";

+        return "http://" + cobblerServer + ":" + cobblerServerPort;

Here you are no longer using the API endpoint, which you should be using.

Also, why not https:// ?

Comment 4 Partha Aji 2009-03-28 05:11:37 UTC
Moving to ON_QA

Comment 5 Jesus M. Rodriguez 2009-04-14 14:13:21 UTC
Spacewalk 0.5 released.

Comment 6 Miroslav Suchý 2009-09-17 07:10:48 UTC
Spacewalk 0.5 has been released for long time ago.